2 lines
596 KiB
JavaScript
2 lines
596 KiB
JavaScript
!function(){var e,t,i,r,s,n={6901:function(e,t,i){"use strict";i.d(t,{z:function(){return b}});var r=i(55),s=i(8777),n=i(7142),a=i(5829),o=i(7144),l=i(6245),h=i(8054),u=i(1479),c=i(5071),d=i(5040),p=i(3540),g=i(256),f=i(7652),m=i(751);class b extends a.j{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new o.dn}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new o.dn}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(s.W.new(this._root,{width:l.AQ,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(s.W.new(this._root,{width:l.AQ,height:l.AQ,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(s.W.new(this._root,{width:l.AQ,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(s.W.new(this._root,{height:l.AQ,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(s.W.new(this._root,{width:l.AQ,height:l.AQ,maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(s.W.new(this._root,{width:l.AQ,height:l.AQ}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(s.W.new(this._root,{width:l.AQ,height:l.AQ}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(s.W.new(this._root,{width:l.AQ,height:l.AQ,isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:s.W.new(this._root,{width:l.AQ,height:l.AQ,isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(s.W.new(this._root,{height:l.AQ,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(s.W.new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(h.z.new(this._root,{themeTags:["zoom"],icon:u.T.new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(r.l.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",(()=>{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",n.A.new(e,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",(e=>{this._handlePlotDown(e)}))),this._disposers.push(s.events.on("globalpointerup",(e=>{this._handlePlotUp(e)}))),this._disposers.push(s.events.on("globalpointermove",(e=>{this._handlePlotMove(e)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(c.remove(t.series,e),t.markDirtyExtremes());const i=e.get("yAxis");i&&(c.remove(i.series,e),i.markDirtyExtremes());const r=this.get("cursor");if(r){const t=r.get("snapToSeries");t&&c.remove(t,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),i=this.get("wheelY"),r=this.plotContainer,s=e.originalEvent;let n=!1;if(!f.isLocalEvent(s,this))return;n=!0;const a=r.toLocal(e.point),o=this.get("wheelStep",.2),l=s.deltaY/100,h=s.deltaX/100,u=this.get("wheelZoomPositionX"),c=this.get("wheelZoomPositionY");"zoomX"!==t&&"zoomXY"!==t||0==h||this.xAxes.each((e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),s=e.fixPosition(a.x/r.width());null!=u&&(s=u);let l=e.get("maxDeviation",0),c=Math.min(1+l,Math.max(-l,t-o*(i-t)*h*s)),d=Math.max(-l,Math.min(1+l,i+o*(i-t)*h*(1-s)));c==t&&d==i&&(n=!1),1/(d-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(c,d)):n=!1}})),"zoomX"!==i&&"zoomXY"!==i||0==l||this.xAxes.each((e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),s=e.fixPosition(a.x/r.width());null!=u&&(s=u);let h=e.get("maxDeviation",0),c=Math.min(1+h,Math.max(-h,t-o*(i-t)*l*s)),d=Math.max(-h,Math.min(1+h,i+o*(i-t)*l*(1-s)));c==t&&d==i&&(n=!1),1/(d-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(c,d)):n=!1}})),"zoomY"!==t&&"zoomXY"!==t||0==h||this.yAxes.each((e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),s=e.fixPosition(a.y/r.height());null!=c&&(s=c);let l=e.get("maxDeviation",0),u=Math.min(1+l,Math.max(-l,t-o*(i-t)*h*s)),d=Math.max(-l,Math.min(1+l,i+o*(i-t)*h*(1-s)));u==t&&d==i&&(n=!1),1/(d-u)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(u,d)):n=!1}})),"zoomY"!==i&&"zoomXY"!==i||0==l||this.yAxes.each((e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),s=e.fixPosition(a.y/r.height());null!=c&&(s=c);let h=e.get("maxDeviation",0),u=Math.min(1+h,Math.max(-h,t-o*(i-t)*l*s)),d=Math.max(-h,Math.min(1+h,i+o*(i-t)*l*(1-s)));u==t&&d==i&&(n=!1),1/(d-u)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(u,d)):n=!1}})),"panX"!==t&&"panXY"!==t||0==h||this.xAxes.each((e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),r=this._getWheelSign(e)*o*(i-t)*h,s=t+r,a=i+r,l=this._fixWheel(s,a);s=l[0],a=l[1],s==t&&a==i&&(n=!1),this._handleWheelAnimation(e.zoom(s,a))}})),"panX"!==i&&"panXY"!==i||0==l||this.xAxes.each((e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),r=this._getWheelSign(e)*o*(i-t)*l,s=t+r,a=i+r,h=this._fixWheel(s,a);s=h[0],a=h[1],s==t&&a==i&&(n=!1),this._handleWheelAnimation(e.zoom(s,a))}})),"panY"!==t&&"panXY"!==t||0==h||this.yAxes.each((e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),r=this._getWheelSign(e)*o*(i-t)*h,s=t+r,a=i+r,l=this._fixWheel(s,a);s=l[0],a=l[1],s==t&&a==i&&(n=!1),this._handleWheelAnimation(e.zoom(s,a))}})),"panY"!==i&&"panXY"!==i||0==l||this.yAxes.each((e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),r=this._getWheelSign(e)*o*(i-t)*l,s=t-r,a=i-r,h=this._fixWheel(s,a);s=h[0],a=h[1],s==t&&a==i&&(n=!1),this._handleWheelAnimation(e.zoom(s,a))}})),n&&s.preventDefault()}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;"none"!==e||"none"!==t?(this._wheelDp=i.events.on("wheel",(i=>{const r=i.originalEvent;("none"!==e&&0!=Math.abs(r.deltaX)||"none"!==t&&0!=Math.abs(r.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const i=t-e;return e<0&&(t=(e=0)+i),t>1&&(e=(t=1)-i),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(2==t.button)return;const i=this.plotContainer;let r=i.toLocal(e.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&t.pointerId&&g.keys(i._downPoints).length>0){const e=this.xAxes.getIndex(0),t=this.yAxes.getIndex(0);e&&(this._downStartX=e.get("start",0),this._downEndX=e.get("end",1)),t&&(this._downStartY=t.get("start",0),this._downEndY=t.get("end",1))}if((this.get("panX")||this.get("panY"))&&r.x>=0&&r.y>=0&&r.x<=i.width()&&r.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const i=this.get("panX"),r=this.get("panY");i&&this.xAxes.each((e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")})),r&&this.yAxes.each((e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")}));const s="panstarted";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){const t="pancancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each((e=>{e._isPanning=!1})),this.yAxes.each((e=>{e._isPanning=!1}))}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=e.originalEvent.pointerId;if(i&&(this._movePoints[i]=e.point,g.keys(t._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=t.toLocal(this._root.documentPointToRoot(i));let r=t.toLocal(e.point);const s=this.get("panX"),n=this.get("panY");if(s){let e=this.get("scrollbarX");e&&e.events.disableType("rangechanged"),this.xAxes.each((e=>{if(e.get("panX")){e._isPanning=!0;let s=e._panStart,n=e._panEnd,a=(n-s)*(i.x-r.x)/t.width();e.get("renderer").get("inversed")&&(a*=-1);let o=s+a,l=n+a;l-o<1+2*e.get("maxDeviation",1)&&(e.set("start",o),e.set("end",l))}})),e&&e.events.enableType("rangechanged")}if(n){let e=this.get("scrollbarY");e&&e.events.disableType("rangechanged"),this.yAxes.each((e=>{if(e.get("panY")){e._isPanning=!0;let s=e._panStart,n=e._panEnd,a=(n-s)*(i.y-r.y)/t.height();e.get("renderer").get("inversed")&&(a*=-1);let o=s-a,l=n-a;l-o<1+2*e.get("maxDeviation",1)&&(e.set("start",o),e.set("end",l))}})),e&&e.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,i=[],r=[];if(g.each(e._downPoints,((e,s)=>{i[t]=s;let n=this._movePoints[e];n&&(r[t]=n),t++})),i.length>1&&r.length>1){const t=e.width(),s=e.height();let n=i[0],a=i[1],o=r[0],l=r[1];if(n&&a&&o&&l){if(o=e.toLocal(o),l=e.toLocal(l),n=e.toLocal(n),a=e.toLocal(a),this.get("pinchZoomX")){const e=this._downStartX,i=this._downEndX;if(null!=e&&null!=i){n.x>a.x&&([n,a]=[a,n],[o,l]=[l,o]);let r=e+n.x/t*(i-e),s=e+a.x/t*(i-e),h=e+o.x/t*(i-e),u=e+l.x/t*(i-e),c=Math.max(.001,s-r)/Math.max(.001,u-h),d=e*c+r-h*c,p=i*c+s-u*c;this.xAxes.each((e=>{let t=e.fixPosition(d),i=e.fixPosition(p);e.zoom(t,i,0)}))}}if(this.get("pinchZoomY")){const e=this._downStartY,t=this._downEndY;if(null!=e&&null!=t){n.y<a.y&&([n,a]=[a,n],[o,l]=[l,o]);let i=e+(1-n.y/s)*(t-e),r=e+(1-a.y/s)*(t-e),h=e+(1-o.y/s)*(t-e),u=e+(1-l.y/s)*(t-e),c=Math.max(.001,r-i)/Math.max(.001,u-h),d=e*c+i-h*c,p=t*c+r-u*c;this.yAxes.each((e=>{let t=e.fixPosition(d),i=e.fixPosition(p);e.zoom(t,i,0)}))}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){const r=e.get("snapToSeriesBy"),s=[];c.each(i,(e=>{if(!e.isHidden()&&!e.isHiding())if("x!"!=r&&"y!"!=r){const t=e.startIndex(),i=e.endIndex();for(let r=t;r<i;r++){const t=e.dataItems[r];t&&!t.isHidden()&&s.push(t)}}else{const t=e.get("tooltipDataItem");t&&s.push(t)}}));let n,a=1/0;if(c.each(s,(e=>{const i=e.get("point");if(i){let s=0;s="x"==r||"x!"==r?Math.abs(t.x-i.x):"y"==r||"y!"==r?Math.abs(t.y-i.y):Math.hypot(t.x-i.x,t.y-i.y),s<a&&(a=s,n=e)}})),c.each(i,(e=>{const t=e.get("tooltip");t&&t._setDataItem(void 0)})),n){let t=n.component;t.showDataItemTooltip(n),t.setRaw("tooltipDataItem",n);const i=n.get("point");i&&e.handleMove(t.toGlobal({x:i.x-t.x(),y:i.y-t.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each((e=>{this._colorize(e)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",(e=>{this._handleScrollbar(this.xAxes,e.start,e.end,e.grip)}))),this._pushPropertyDisposer("scrollbarX",t.events.on("released",(()=>{this.xAxes.each((e=>{e.get("zoomable")&&this._handleAxisSelection(e)}))}))),t.setPrivate("positionTextFunction",(e=>{const t=this.xAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""}))),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",(e=>{this._handleScrollbar(this.yAxes,e.start,e.end,e.grip)}))),this._pushPropertyDisposer("scrollbarY",t.events.on("released",(()=>{this.yAxes.each((e=>{e.get("zoomable")&&this._handleAxisSelection(e)}))}))),t.setPrivate("positionTextFunction",(e=>{const t=this.yAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""}))),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),i=e.get("yAxis");c.move(t.series,e),c.move(i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",(()=>{e._fixPosition()}))),e._posXDp=e.addDisposer(i.events.on("positionchanged",(()=>{e._fixPosition()}))),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),c.each(e.dataItems,(e=>{e.set("stackToItemY",void 0),e.set("stackToItemX",void 0)}))),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&null==e.get("fill")){const i=t.next();e._setSoft("stroke",i),e._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==e.get("fillPattern")){const t=i.next();e._setSoft("fillPattern",t)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),r=e.getPrivate("downPositionY",0),s=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),n=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each((e=>{if("zoomX"===t||"zoomXY"===t){let t=e.toAxisPosition(i),r=e.toAxisPosition(s);e.zoom(t,r)}e.setPrivate("updateScrollbar",!0)})),this.yAxes.each((e=>{if("zoomY"===t||"zoomXY"===t){let t=e.toAxisPosition(r),i=e.toAxisPosition(n);e.zoom(t,i)}e.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(e,t,i,r){e.each((e=>{let s=e.fixPosition(t),n=e.fixPosition(i),a=e.zoom(s,n,void 0,r);const o="updateScrollbar";e.setPrivateRaw(o,!1),a?a.events.on("stopped",(()=>{e.setPrivateRaw(o,!0)})):e.setPrivateRaw(o,!0)}))}_processAxis(e,t){return e.events.onAll((e=>{if("clear"===e.type)c.each(e.oldValues,(e=>{this._removeAxis(e)}));else if("push"===e.type)t.children.push(e.newValue),e.newValue.processChart(this);else if("setIndex"===e.type)t.children.setIndex(e.index,e.newValue),e.newValue.processChart(this);else if("insertIndex"===e.type)t.children.insertIndex(e.index,e.newValue),e.newValue.processChart(this);else if("removeIndex"===e.type)this._removeAxis(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");t.children.moveValue(e.value,e.newIndex),e.value.processChart(this)}}))}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const i=e.gridContainer,r=i.parent;r&&r.children.removeValue(i);const s=e.topGridContainer,n=s.parent;n&&n.children.removeValue(s)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);const r=this.topAxesContainer;r.set("paddingLeft",e),r.set("paddingRight",t)}processAxis(e){this.get("cursor")&&(this.addDisposer(e.on("start",(()=>{this._updateCursor()}))),this.addDisposer(e.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),r=e.fixPosition(e.get("end",1));if(i>r&&([i,r]=[r,i]),-1!=this.xAxes.indexOf(e)){if(t||e.getPrivate("updateScrollbar")){let e=this.get("scrollbarX");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",r),e.updateGrips())}}else if(-1!=this.yAxes.indexOf(e)&&(t||e.getPrivate("updateScrollbar"))){let e=this.get("scrollbarY");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",r),e.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each((e=>{0==m.round(e.get("start",0),5)&&1==m.round(e.get("end",1),5)||(t=!0)})),this.yAxes.each((e=>{0==m.round(e.get("start",0),5)&&1==m.round(e.get("end",1),5)||(t=!0)})),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),r=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let e=i.length-1;e>=0;e--){const t=i[e];if(t!=this){const e=t.plotContainer,i=this._root.rootPointToDocument(r),s=t._root.documentPointToRoot(i),n=e.toLocal(s);if(n.x>=-.1&&n.y>=-.1&&n.x<=e.width()+.1&&n.y<=e.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),i=e.height();let r=this.height();const s=this._root.tooltipContainer.get("layerMargin");s&&s.bottom>r&&(r=s.bottom);let n=e._display.toGlobal({x:0,y:0}),a=e._display.toGlobal({x:t,y:i});const o=[];let h,u,g=0,f=1/0,m=this._movePoint,b=this.get("maxTooltipDistance"),_=this.get("maxTooltipDistanceBy","xy");d.isNumber(b)&&this.series.each((e=>{if(!e.isHidden()){const t=e.get("tooltip");if(t){let i=t.get("pointTo");if(i){let t=Math.hypot(m.x-i.x,m.y-i.y);"x"==_?t=Math.abs(m.x-i.x):"y"==_&&(t=Math.abs(m.y-i.y)),t<f&&(f=t,h=e,u=i)}}}}));const v=[];if(this.series.each((e=>{const t=e.get("tooltip");if(t&&!t.get("forceHidden")){let i=!1,r=t.get("pointTo");if(r){if(b>=0){let r=t.get("pointTo");if(r&&u&&e!=h){let e=Math.hypot(u.x-r.x,u.y-r.y);"x"==_?e=Math.abs(u.x-r.x):"y"==_&&(e=Math.abs(u.y-r.y)),e>b&&(i=!0)}}else-1==b&&e!=h&&(i=!0);this.inPlot(this._tooltipToLocal(r))&&t.dataItem?i||(g+=r.y):i=!0,i||e.isHidden()||e.isHiding()?t.hide(0):(t.show(),o.push(t),v.push(e))}}})),this.setPrivate("tooltipSeries",v),this.get("arrangeTooltips")){let e=0,t=0;const s=this._root.tooltipContainer,h=o.length;if(g/h>i/2+n.y){o.sort(((e,t)=>p.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=a.y;if(c.each(o,(r=>{let o=r.height();t++,e+=o;let h=r.get("centerY");h instanceof l.gG&&(o*=h.value),o+=r.get("marginBottom",0),r.set("bounds",{left:n.x,top:n.y,right:a.x,bottom:i}),r.setPrivate("customData",{left:n.x,top:n.y,right:a.x,bottom:i}),i=Math.min(i-o,r._fy-o),r.parent==s&&s.children.moveValue(r,0)})),i<0){o.reverse();let e=i;c.each(o,(r=>{t++;let s=r.get("bounds");if(s){let t=s.top-i,n=s.bottom-i;t<e&&(t=e,n=t+r.height()),r.set("bounds",{left:s.left,top:t,right:s.right,bottom:n}),e=s.bottom-i+r.get("marginBottom",0)}}))}}else{o.reverse(),o.sort(((e,t)=>p.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=0;if(c.each(o,(o=>{t++;let h=o.height();e+=h;let u=o.get("centerY");u instanceof l.gG&&(h*=u.value),h+=o.get("marginBottom",0),o.set("bounds",{left:n.x,top:i,right:a.x,bottom:Math.max(n.y+r,i+h)}),o.parent==s&&s.children.moveValue(o,0),i=Math.max(i+h,o._fy+h)})),i>r){o.reverse();let e=r;c.each(o,(s=>{t++;let n=s.get("bounds");if(n){let t=n.top-(r-i),a=n.bottom-(r-i);a>e&&(a=e,t=a-s.height()),s.set("bounds",{left:n.left,top:t,right:n.right,bottom:a}),e=a-s.height()-s.get("marginBottom",0)}}))}}0==e&&t>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each((e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)})),this.yAxes.each((e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)}))}_dispose(){super._dispose();const e=this.get("cursor");e&&e.dispose()}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.j.classNames.concat([b.className])})},55:function(e,t,i){"use strict";i.d(t,{l:function(){return p}});var r=i(3409),s=i(6245),n=i(1112),a=i(2754),o=i(3783),l=i(1926),h=i(5040),u=i(751),c=i(256),d=i(5071);class p extends r.Q{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:a.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:n.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:a.U.new(this._root,{saturation:0})});{const t=i("Graphics",["scrollbar","overlay"]);t.setAll({fillOpacity:.5}),(0,o.v)(t,"fill",e,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:s.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:s.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:s.AQ}),i("AxisLabel",["y"]).setAll({centerX:s.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:s.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const r=i("Grid",["cursor","x"]);r.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use left and right arrows to move selection")}),(0,o.v)(r,"stroke",e,"alternativeBackground")}{const r=i("Grid",["cursor","y"]);r.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use up and down arrows to move selection")}),(0,o.v)(r,"stroke",e,"alternativeBackground")}{const t=i("Graphics",["cursor","selection"]);t.setAll({fillOpacity:.15}),(0,o.v)(t,"fill",e,"alternativeBackground")}i("Axis").setAll({start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:s.CI,centerY:s.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const t=i("AxisRenderer");t.setAll({crisp:!0,strokeOpacity:0}),(0,o.v)(t,"stroke",e,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:s.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:s.AQ});{const t=i("Rectangle",["axis","thumb"]);t.setAll({fillOpacity:0}),(0,o.v)(t,"fill",e,"alternativeBackground"),t.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y"]).setAll({cursorOverStyle:"ns-resize"});{const t=i("Grid");t.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,o.v)(t,"stroke",e,"grid")}{const t=i("Grid",["minor"]);t.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,o.v)(t,"stroke",e,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const t=i("Graphics",["axis","fill"]);t.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,o.v)(t,"fill",e,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const t=i("AxisTick");t.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,o.v)(t,"stroke",e,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(e,t)=>{const i=e.get("axisFill");i&&(h.isNumber(t)&&t%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const r=[{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}],p={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},g={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},f={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:d.copy(r),dateFormats:c.copy(p),periodChangeDateFormats:c.copy(g)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,gridIntervals:d.copy(r),dateFormats:c.copy(p),periodChangeDateFormats:c.copy(g),tooltipDateFormats:f,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,r=e.get("value"),s=e.get("endValue"),n=i.intervalDuration(),a=i.getPrivate("baseInterval"),o=i.getPrivate("gridInterval",a);let h=i.getPrivate("min",0);if(h=l.round(new Date(h),o.timeUnit,o.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=r&&null!=s){const e=Math.round(Math.round((r-h)/n))/2;e==Math.round(e)?t.setPrivate("visible",!0):t.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.get("index");let r=!1;h.isNumber(i)&&i%2!=0||(r=!0),t.setPrivate("visible",r)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,r=e.get("value"),s=i.getPrivate("step");h.isNumber(r)&&h.isNumber(s)&&(u.round(r/s/2,5)==Math.round(r/s/2)?t.setPrivate("visible",!1):t.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,s.aQ)(70),height:(0,s.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),r=i.width();e.moveTo(0,t/2),e.lineTo(r,t/2)}}});{const t=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,o.v)(t,"stroke",e,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),r=i.width();e.moveTo(0,0),e.lineTo(r,0),e.lineTo(r,t),e.lineTo(0,t),e.lineTo(0,0)}}});{const t=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,o.v)(t,"stroke",e,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,s.aQ)(50),height:(0,s.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,s.aQ)(80),height:(0,s.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const t=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,o.v)(t,"fill",e,"positive"),(0,o.v)(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,o.v)(t,"fill",e,"negative"),(0,o.v)(t,"stroke",e,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const t=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,o.v)(t,"fill",e,"positive"),(0,o.v)(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,o.v)(t,"fill",e,"negative"),(0,o.v)(t,"stroke",e,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const t=i("Graphics",["rangegrip","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(2,.5),e.lineTo(2,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),(0,o.v)(t,"stroke",e,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:s.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:s.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:s.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:s.AQ})}}},3355:function(e,t,i){"use strict";i.d(t,{L:function(){return d}});var r=i(8777),s=i(6245),n=i(1479),a=i(8943),o=i(5040),l=i(7652),h=i(751),u=i(5071),c=i(256);class d extends r.W{constructor(){super(...arguments),Object.defineProperty(this,"_alwaysShow",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"lineX",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.r.new(this._root,{themeTags:["x"]}))}),Object.defineProperty(this,"lineY",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.r.new(this._root,{themeTags:["y"]}))}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(n.T.new(this._root,{themeTags:["selection","cursor"],layer:30}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lastPoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_lastPoint2",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_tooltipX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tooltipY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:s.AQ,height:s.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(e=>{this._handleLineMove(l.getEventKey(e),e.ctrlKey)})))}_setUpTouch(){const e=this.chart;e&&(e.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e,t){let i="";const r=this.chart;let s;if(r&&r.xAxes.length){this._root.focused(this.lineX)?(i="positionX",s=r.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(s=r.yAxes.getIndex(0),i="positionY");let n=1;if(t&&(n=5),s){let t,r=s.get("renderer").get("inversed",!1);"ArrowRight"==e||"ArrowDown"==e?t=1:"ArrowLeft"==e||"ArrowUp"==e?t=-1:"Tab"==e&&(t=0),null!=t&&(r&&(t*=-1),this.set(i,s.nextPosition(t*n)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const e=this.get("xAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",(()=>{this._updateXLine(t)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const e=this.get("yAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",(()=>{this._updateYLine(t)}))))}}}_handleSyncWith(){const e=this.chart;if(e){const t=this.get("syncWith"),i=[];t&&u.each(t,(e=>{const t=e.chart;t&&i.push(t)})),e._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const e=this.get("positionX"),t=this.get("positionY");null==e&&null==t?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=h.round(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,3);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=h.round(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,3);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",(e=>{e.moveTo(0,0),e.lineTo(0,this.height())})),this.lineY.set("draw",(e=>{e.moveTo(0,0),e.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();const t=e.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),l.supports("touchevents")&&(this._disposers.push(t.events.on("click",(e=>{l.isTouchEvent(e.originalEvent)&&this._handleMove(e)}))),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",(e=>{this._handleCursorDown(e)}))),this._disposers.push(t.events.on("globalpointerup",(e=>{this._handleCursorUp(e),e.native||this.isHidden()||this._handleMove(e)}))),this._disposers.push(t.events.on("globalpointermove",(e=>{(this.get("syncWith")||0!=c.keys(t._downPoints).length||e.native||!this.isHidden())&&(this._handleMove(e),Math.hypot(this._lastPoint2.x-e.point.x,this._lastPoint2.y-e.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=e.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(e){const t=this.chart;return!!t&&t.inPlot(e)}_handleCursorDown(e){if(2==e.originalEvent.button)return;const t=e.point;let i=this._display.toLocal(t);const r=this.chart;if(this.selection.set("draw",(()=>{})),r&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const t="selectstarted";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}let t=this._getPosition(i).x,r=this._getPosition(i).y;this.setPrivate("downPositionX",t),this.setPrivate("downPositionY",r)}}_handleCursorUp(e){if(this._downPoint){const t=this.get("behavior","none");if("none"!=t){"z"===t.charAt(0)&&this.selection.hide();const i=e.point;let r=this._display.toLocal(i);const s=this._downPoint,n=this.get("moveThreshold",1);if(r&&s){let i=!1;if("zoomX"!==t&&"zoomXY"!==t&&"selectX"!==t&&"selectXY"!==t||Math.abs(r.x-s.x)>n&&(i=!0),"zoomY"!==t&&"zoomXY"!==t&&"selectY"!==t&&"selectXY"!==t||Math.abs(r.y-s.y)>n&&(i=!0),i){const t="selectended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}else{const t="selectcancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){const t=this.chart;if(t&&c.keys(t.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=e.point,r=this._lastPoint;if(Math.round(r.x)===Math.round(i.x)&&Math.round(r.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,i){e||(e=this._movePoint);const r=this.get("alwaysShow");if(!e)return void this.hide(0);this._movePoint=e;let s=this._display.toLocal(e),n=this.chart;if(n&&(this._inPlot(s)||this._downPoint)){n._movePoint=e,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let a=s.x,l=s.y,h=this._getPosition(s);this.setPrivate("point",s);let u=this.get("snapToSeries");this._downPoint&&(u=void 0);let c=this.get("positionX"),d=h.x;o.isNumber(c)&&(d=c);let p=this.get("positionY"),g=h.y;o.isNumber(p)&&(g=p),this.setPrivate("positionX",d),this.setPrivate("positionY",g);const f=this._getPoint(d,g);if(a=f.x,l=f.y,n.xAxes.each((e=>{e._handleCursorPosition(d,u),r&&e.handleCursorShow()})),n.yAxes.each((e=>{e._handleCursorPosition(g,u),r&&e.handleCursorShow()})),!t){n._handleCursorPosition();const t="cursormoved";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,point:e,originalEvent:i})}this._updateLines(a,l),n.arrangeTooltips()}else if(!this._downPoint&&!r){this.hide(0);const e="cursorhidden";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(s)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){const t=this.selection,i=this.get("behavior"),r=this.width(),s=this.height();e.x<0&&(e.x=0),e.x>r&&(e.x=r),e.y<0&&(e.y=0),e.y>s&&(e.y=s),t.set("draw",(t=>{const n=this._downPoint;n&&("zoomXY"===i||"selectXY"===i?(t.moveTo(n.x,n.y),t.lineTo(n.x,e.y),t.lineTo(e.x,e.y),t.lineTo(e.x,n.y),t.lineTo(n.x,n.y)):"zoomX"===i||"selectX"===i?(t.moveTo(n.x,0),t.lineTo(n.x,s),t.lineTo(e.x,s),t.lineTo(e.x,0),t.lineTo(n.x,0)):"zoomY"!==i&&"selectY"!==i||(t.moveTo(0,n.y),t.lineTo(r,n.y),t.lineTo(r,e.y),t.lineTo(0,e.y),t.lineTo(0,n.y)))}))}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each((e=>{e.handleCursorHide()})),e.yAxes.each((e=>{e.handleCursorHide()})),e.series.each((e=>{e.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each((e=>{e.handleCursorShow()})),e.yAxes.each((e=>{e.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYCursor"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.W.classNames.concat([d.className])})},6293:function(e,t,i){"use strict";i.d(t,{k:function(){return s}});var r=i(962);class s extends r._{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r._.classNames.concat([s.className])})},9084:function(e,t,i){"use strict";i.d(t,{p:function(){return s}});var r=i(815);class s extends r.x{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabelRadial"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.x.classNames.concat([s.className])})},6275:function(e,t,i){"use strict";i.d(t,{Y:function(){return u}});var r=i(1479),s=i(5769),n=i(7144),a=i(4714),o=i(8943),l=i(6293),h=i(7652);class u extends r.T{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n.o(s.YS.new({}),(()=>a.T._new(this._root,{themeTags:h.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n.o(s.YS.new({}),(()=>o.r._new(this._root,{themeTags:h.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n.o(s.YS.new({}),(()=>r.T._new(this._root,{themeTags:h.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n.o(s.YS.new({}),(()=>l.k._new(this._root,{themeTags:h.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",h.mergeTags(i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){const i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",h.mergeTags(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){const i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",h.mergeTags(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){const i=this.labels.make();return i.set("themeTags",h.mergeTags(i.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",(e=>{this._handleThumbDown(e)}))),this._disposers.push(e.events.on("globalpointerup",(e=>{this._handleThumbUp(e)}))),this._disposers.push(e.events.on("globalpointermove",(e=>{this._handleThumbMove(e)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?t.children.push(e):"none"==i&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const i=this.toLocal(e.point),r=this._downStart,s=this._downEnd,n=this._getPan(i,t)*Math.min(1,s-r)/2*this.get("panSensitivity",1);this.axis.zoom(r-n,s+n,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e*=i-t,this.get("inversed")?i-e:t+e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e/(i-t)}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,r){let s=this.axis;const n=s.get("start",0),a=s.get("end",1);t<n+(a-n)*(i-1e-4)||t>n+(a-n)*(r+1e-4)?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([u.className])})},4714:function(e,t,i){"use strict";i.d(t,{T:function(){return s}});var r=i(2438);class s extends r.d{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.d.classNames.concat([s.className])})},8943:function(e,t,i){"use strict";i.d(t,{r:function(){return s}});var r=i(1479);class s extends r.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([s.className])})},757:function(e,t,i){"use strict";i.d(t,{d:function(){return h}});var r=i(7582),s=i(4604),n=i(6245),a=i(1479),o=i(5071),l=i(5040);class h extends s.o{constructor(){super(...arguments),Object.defineProperty(this,"_ph",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_pw",{enumerable:!0,configurable:!0,writable:!0,value:0})}_makeGraphics(e,t){return this.makeColumn(t,e)}_makeFieldNames(){super._makeFieldNames();const e=this.get("xAxis"),t=this.get("yAxis"),i="CategoryAxis",r="ValueAxis";e.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),e.isType(r)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),t.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),t.isType(r)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.dataItems.length,r=Math.max(0,this.startIndex()-2),s=Math.min(this.endIndex()+2,i-1);if(e.inited&&t.inited)for(let e=r;e<=s;e++){let t=this.dataItems[e];this._createGraphics(t)}}_updateChildren(){const e=this.chart;e&&(this._ph=e.plotContainer.height(),this._pw=e.plotContainer.width());const t=this.get("xAxis"),i=this.get("yAxis"),r=this.get("baseAxis"),s=this.columns.template;this.isDirty("fill")&&null==s.get("fill")&&s.set("fill",this.get("fill")),this.isDirty("fillPattern")&&null==s.get("fillPattern")&&s.set("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&null==s.get("stroke")&&s.set("stroke",this.get("stroke"));let n=0,a=0,l=0;o.each(r.series,(e=>{if(e instanceof h){const t=e.get("stacked");t&&0==l&&a++,!t&&e.get("clustered")&&a++}e===this&&(n=a-1),l++})),this.get("clustered")||(n=0,a=1),0===a&&(a=1,n=0);const u=t.get("renderer"),c=i.get("renderer"),d="cellStartLocation",p="cellEndLocation",g=u.get(d,0),f=u.get(p,1),m=c.get(d,0),b=c.get(p,1);if(this._aLocationX0=g+n/a*(f-g),this._aLocationX1=g+(n+1)/a*(f-g),this._aLocationY0=m+n/a*(b-m),this._aLocationY1=m+(n+1)/a*(b-m),t.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const e=this.dataItems.length;let t=Math.max(0,this.startIndex()-2),i=Math.min(this.endIndex()+2,e-1);for(let e=0;e<t;e++)this._toggleColumn(this.dataItems[e],!1);let r=this.dataItems[t];for(let e=t;e<=i;e++){let i=this.dataItems[e];if(null!=i.get("valueX")&&null!=i.get("valueY")){if(r=i,e>0&&t>0)for(let t=e-1;t>=0;t--){let e=this.dataItems[t];if(null!=e.get("valueX")&&null!=e.get("valueY")){r=e;break}}break}this._toggleColumn(i,!1)}for(let e=t;e<=i;e++){let t=this.dataItems[e];this._updateGraphics(t,r),null!=t.get("valueX")&&null!=t.get("valueY")&&(r=t)}for(let t=i+1;t<e;t++)this._toggleColumn(this.dataItems[t],!1)}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_createGraphics(e){let t=e.get("graphics");if(!t){t=this._makeGraphics(this.columns,e),e.set("graphics",t),t._setDataItem(e);const i=e.get("legendDataItem");if(i){const e=i.get("markerRectangle");if(e){const i=e.states.lookup("default");o.each(a.u,(r=>{const s=t.get(r,this.get(r));e.set(r,s),i.set(r,s)}))}}let r=e.get("rangeGraphics");r&&o.each(r,(e=>{e.dispose()})),r=[],e.setRaw("rangeGraphics",r),this.axisRanges.each((t=>{const i=t.container,s=this._makeGraphics(t.columns,e);r&&r.push(s),s.setPrivate("list",t.columns),i.children.push(s)}))}}createAxisRange(e){return o.each(this.dataItems,(e=>{const t=e.get("graphics");t&&(t.dispose(),e.set("graphics",void 0))})),super.createAxisRange(e)}_updateGraphics(e,t){let i=e.get("graphics");const r=this._xField,s=this._yField,a=e.get(r),h=e.get(s);if(null!=a&&null!=h){const a=this._xOpenField,h=this._yOpenField,u=this.get("locationX",e.get("locationX",.5)),c=this.get("locationY",e.get("locationY",.5)),d=this.get("openLocationX",e.get("openLocationX",u)),p=this.get("openLocationY",e.get("openLocationY",c)),g=i.get("width"),f=i.get("height"),m=this.get("stacked"),b=this.get("xAxis"),_=this.get("yAxis"),v=this.get("baseAxis"),y=b.get("start"),w=b.get("end"),x=_.get("start"),P=_.get("end");let D,O,k,T,M=this.get("vcy",1),S=this.get("vcx",1),E=!1,C=!1;if(_.isType("CategoryAxis")&&b.isType("CategoryAxis")){let t=this._aLocationX0+d-.5,i=this._aLocationX1+u-.5;if(g instanceof n.gG){let e=(i-t)*(1-g.value)/2;t+=e,i-=e}if(D=b.getDataItemPositionX(e,a,t,S),O=b.getDataItemPositionX(e,r,i,S),t=this._aLocationY0+p-.5,i=this._aLocationY1+c-.5,f instanceof n.gG){let e=(i-t)*(1-f.value)/2;t+=e,i-=e}k=_.getDataItemPositionY(e,h,t,M),T=_.getDataItemPositionY(e,s,i,M),e.setRaw("point",{x:D+(O-D)/2,y:k+(T-k)/2})}else if(b===v){let t=this._aLocationX0+d-.5,i=this._aLocationX1+u-.5;if(g instanceof n.gG){let e=(i-t)*(1-g.value)/2;t+=e,i-=e}if(D=b.getDataItemPositionX(e,a,t,S),O=b.getDataItemPositionX(e,r,i,S),k=_.getDataItemPositionY(e,s,c,M),this._yOpenField!==this._yField)T=_.getDataItemPositionY(e,h,p,M);else if(m){let t=e.get("stackToItemY");T=t?_.getDataItemPositionY(t,s,p,t.component.get("vcy")):_.basePosition()}else T=_.basePosition();e.setRaw("point",{x:D+(O-D)/2,y:k}),C=!0}else if(_===v){let t=this._aLocationY0+p-.5,i=this._aLocationY1+c-.5;if(f instanceof n.gG){let e=(i-t)*(1-f.value)/2;t+=e,i-=e}if(k=_.getDataItemPositionY(e,h,t,M),T=_.getDataItemPositionY(e,s,i,M),O=b.getDataItemPositionX(e,r,u,S),this._xOpenField!==this._xField)D=b.getDataItemPositionX(e,a,d,S);else if(m){let t=e.get("stackToItemX");D=t?b.getDataItemPositionX(t,r,d,t.component.get("vcx")):b.basePosition()}else D=b.basePosition();E=!0,e.setRaw("point",{x:O,y:k+(T-k)/2})}this._updateSeriesGraphics(e,i,D,O,k,T,E,C),D<y&&O<y||D>w&&O>w||k<x&&T<=x||k>=P&&T>P||l.isNaN(D)||l.isNaN(k)?this._toggleColumn(e,!1):this._toggleColumn(e,!0);let A=e.get("rangeGraphics");A&&o.each(A,(t=>{this._updateSeriesGraphics(e,t,D,O,k,T,E,C)})),this._applyGraphicsStates(e,t)}else this._toggleColumn(e,!1)}_updateSeriesGraphics(e,t,i,r,s,n,a,o){const h=t.get("width"),u=t.get("height"),c=t.get("maxWidth"),d=t.get("maxHeight"),p=this.getPoint(i,s),g=this.getPoint(r,n),f=e.get("point");if(f){const e=this.getPoint(f.x,f.y);f.x=e.x+this._x,f.y=e.y+this._y}if(i=p.x,r=g.x,s=p.y,n=g.y,l.isNumber(h)){const e=(r-i-h)/2;i+=e,r-=e}if(l.isNumber(c)&&c<Math.abs(r-i)){const e=(r-i-c)/2;i+=e,r-=e}if(l.isNumber(u)){const e=(n-s-u)/2;s+=e,n-=e}if(l.isNumber(d)&&d<Math.abs(n-s)){const e=(n-s-d)/2;s+=e,n-=e}this.get("adjustBulletPosition")&&(a&&(r=Math.min(Math.max(0,r),this._pw),i=Math.min(Math.max(0,i),this._pw)),o&&(s=Math.min(Math.max(0,s),this._ph),n=Math.min(Math.max(0,n),this._ph))),e.setRaw("left",i),e.setRaw("right",r),e.setRaw("top",s),e.setRaw("bottom",n),t.setPrivate("width",r-i),t.setPrivate("height",n-s),t.set("x",i),t.set("y",n-(n-s))}_handleDataSetChange(){super._handleDataSetChange(),o.each(this._dataItems,(e=>{this._toggleColumn(e,!1)}))}_applyGraphicsStates(e,t){const i=e.get("graphics"),r=i.states.lookup("dropFromOpen"),s=i.states.lookup("riseFromOpen"),n=i.states.lookup("dropFromPrevious"),a=i.states.lookup("riseFromPrevious");if(r||n||s||a){const i=this.get("xAxis"),o=this.get("yAxis"),h=this.get("baseAxis");let u,c,d;h===i&&o.isType("ValueAxis")?(u=e.get(this._yOpenField),c=e.get(this._yField),d=t.get(this._yField)):h===o&&i.isType("ValueAxis")&&(u=e.get(this._xOpenField),c=e.get(this._xField),d=t.get(this._xField)),l.isNumber(u)&&l.isNumber(c)&&(c<u?r&&r.apply():s&&s.apply(),l.isNumber(d)&&(c<d?n&&n.apply():a&&a.apply()))}}disposeDataItem(e){super.disposeDataItem(e);const t=e.get("graphics");t&&(this.columns.removeValue(t),t.dispose());const i=e.get("rangeGraphics");i&&o.each(i,(e=>{const t=e.getPrivate("list");t&&t.removeValue(e),e.dispose()}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.hideDataItem.call(this,e,t)],s=e.get("graphics");s&&r.push(s.hide(t));const n=e.get("rangeGraphics");n&&o.each(n,(e=>{r.push(e.hide(t))})),yield Promise.all(r)}))}_toggleColumn(e,t){const i=e.get("graphics");i&&i.setPrivate("visible",t);const r=e.get("rangeGraphics");r&&o.each(r,(e=>{e.setPrivate("visible",t)}));const s=e.bullets;s&&o.each(s,(e=>{e.setPrivate("hidden",!t)}))}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.showDataItem.call(this,e,t)],s=e.get("graphics");s&&r.push(s.show(t));const n=e.get("rangeGraphics");n&&o.each(n,(e=>{r.push(e.show(t))})),yield Promise.all(r)}))}updateLegendMarker(e){let t=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!e){const t=this.dataItems[this.endIndex()-1];t&&(e=t)}if(t){let i=this.columns.template;if(e){let t=e.get("graphics");t&&(i=t)}const r=t.get("markerRectangle");if(r&&!t.get("itemContainer").get("disabled")){const e=r.states.lookup("default");o.each(a.u,(t=>{const s=i.get(t,this.get(t));r.set(t,s),e.set(t,s)}))}}}_getTooltipTarget(e){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(e);return e.get("graphics")||this}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"BaseColumnSeries"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.o.classNames.concat([h.className])})},2338:function(e,t,i){"use strict";i.d(t,{e:function(){return f}});var r=i(4604),s=i(1479),n=i(774),a=i(3794),o=i(5769),l=i(7144),h=i(1112),u=i(9361),c=i(7142),d=i(5040),p=i(5071),g=i(7652);class f extends r.o{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.Z)()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:(0,a.Z)()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>s.T._new(this._root,{themeTags:g.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>s.T._new(this._root,{themeTags:g.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0((function(e){return e[3]})),this._fillGenerator.x0((function(e){return e[2]})),this._fillGenerator.y1((function(e){return e[1]})),this._fillGenerator.x1((function(e){return e[0]})),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const e=this.get("stroke");this.strokes.template.set("stroke",e);const t=this._legendStroke;t&&t.states.lookup("default").set("stroke",e)}if(this.isDirty("fill")){const e=this.get("fill");this.fills.template.set("fill",e);const t=this._legendFill;t&&t.states.lookup("default").set("fill",e)}if(this.isDirty("fillPattern")){const e=this.get("fillPattern");this.fills.template.set("fillPattern",e);const t=this._legendFill;t&&t.states.lookup("default").set("fillPattern",e)}if(this.isDirty("curveFactory")){const e=this.get("curveFactory");e&&(this._strokeGenerator.curve(e),this._fillGenerator.curve(e))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each((e=>{e.setPrivate("visible",!1)})),this.strokes.each((e=>{e.setPrivate("visible",!1)})),this.axisRanges.each((e=>{let t=e.fills;t&&t.each((e=>{e.setPrivate("visible",!1)}));let i=e.strokes;i&&i.each((e=>{e.setPrivate("visible",!1)}))}));let e=this.startIndex(),t=this.strokes.template.get("templateField"),i=this.fills.template.get("templateField"),r=!0,s=!0;t&&(r=!1),i&&(s=!1);for(let n=e-1;n>=0;n--){let a=this.dataItems[n],o=!0,l=a.dataContext;if(t&&l[t]&&(r=!0),i&&l[i]&&(s=!0),p.each(this._valueFields,(e=>{d.isNumber(a.get(e))||(o=!1)})),o&&r&&s){e=n;break}}let n=this.dataItems.length,a=this.endIndex();if(a<n){a++;for(let e=a;e<n;e++){let t=this.dataItems[e],i=!0;if(p.each(this._valueFields,(e=>{d.isNumber(t.get(e))||(i=!1)})),i){a=e+1;break}}}if(e>0&&e--,this._endIndex=a,this._clearGraphics(),this._sindex=0,this._dindex=e,1==this.dataItems.length)this._startSegment(0);else for(;this._dindex<a-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each((e=>{e.fills.clear(),e.strokes.clear()}))}_startSegment(e){let t=this._endIndex,i=t;const r=this.get("autoGapCount"),s=this.get("connect"),n=this.makeFill(this.fills),a=this._fillTemplate,l=this.fills.template;a&&a!=l&&(n.template=a),n.setPrivate("visible",!0);const h=this.makeStroke(this.strokes),u=this._strokeTemplate;u&&u!=this.strokes.template&&(h.template=u),h.setPrivate("visible",!0);let c=this.get("xAxis"),d=this.get("yAxis"),p=this.get("baseAxis"),g=this.get("vcx",1),f=this.get("vcy",1),m=this._xField,b=this._yField,_=this._xOpenField,v=this._yOpenField;const y=this.get("openValueXField"),w=this.get("openValueYField");y||(_=this._xField),w||(v=this._yField);const x=this.get("stacked"),P=c.basePosition(),D=d.basePosition();let O;O=p===d?this._yField:this._xField;const k=[];let T=[];k.push(T);const M=this.strokes.template.get("templateField"),S=this.fills.template.get("templateField");let E=this.get("locationX",.5),C=this.get("locationY",.5),A=this.get("openLocationX",E),N=this.get("openLocationY",C);const L=this.get("minDistance",0);let j,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let F=!1;(x||y||w)&&(F=!0);const I={points:T,segments:k,stacked:x,getOpen:F,basePosX:P,basePosY:D,fillVisible:R,xField:m,yField:b,xOpenField:_,yOpenField:v,vcx:g,vcy:f,baseAxis:p,xAxis:c,yAxis:d,locationX:E,locationY:C,openLocationX:A,openLocationY:N,minDistance:L};let U=this._strokeTemplate,B=this._fillTemplate;for(j=e;j<i;j++){this._dindex=j;const t=this._dataItems[j];let a=t.get(m),l=t.get(b);if(null==a||null==l?s||(T=[],k.push(T),I.points=T):this._getPoints(t,I),M){let r=t.dataContext[M];if(r){if(r instanceof o.YS||(r=o.YS.new(r)),this._strokeTemplate=r,j>e){i=j;break}U=r,h.template=r}}if(S){let r=t.dataContext[S];if(r){if(r instanceof o.YS||(r=o.YS.new(r)),this._fillTemplate=r,j>e){i=j;break}B=r,n.template=r}}if(!s){let e=this.dataItems[j+1];e&&p.shouldGap(t,e,r,O)&&(T=[],k.push(T),I.points=T)}}n.setRaw("userData",[e,j]),h.setRaw("userData",[e,j]),j===t&&this._endLine(T,k[0][0]),h&&this._drawStroke(h,k),n&&this._drawFill(n,k),this.axisRanges.each((t=>{const i=t.container,r=t.fills,s=this.makeFill(r);i&&i.children.push(s),s.setPrivate("visible",!0),this._drawFill(s,k);const n=t.strokes,a=this.makeStroke(n);i&&i.children.push(a),U&&U!=this.strokes.template&&(a.template=U),B&&B!=this.fills.template&&(s.template=B),a.setPrivate("visible",!0),this._drawStroke(a,k),s.setRaw("userData",[e,j]),a.setRaw("userData",[e,j])}))}_getPoints(e,t){let i=t.points,r=e.get("locationX",t.locationX),s=e.get("locationY",t.locationY);const n=this.get("exactLocationX",!1),a=this.get("exactLocationY",!1);let o=t.xAxis.getDataItemPositionX(e,t.xField,r,t.vcx,n),l=t.yAxis.getDataItemPositionY(e,t.yField,s,t.vcy,a);if(this._shouldInclude(o)){const r=this.getPoint(o,l),s=[r.x,r.y];if(r.x+=this._x,r.y+=this._y,e.set("point",r),t.fillVisible){let i=o,r=l;if(t.baseAxis===t.xAxis?r=t.basePosY:t.baseAxis===t.yAxis&&(i=t.basePosX),t.getOpen){let s=e.get(t.xOpenField),o=e.get(t.yOpenField);if(null!=s&&null!=o){let s=e.get("openLocationX",t.openLocationX),o=e.get("openLocationY",t.openLocationY);if(t.stacked){let l=e.get("stackToItemX"),h=e.get("stackToItemY");l?(i=t.xAxis.getDataItemPositionX(l,t.xField,s,l.component.get("vcx"),n),d.isNaN(i)&&(i=t.basePosX)):i=t.yAxis===t.baseAxis?t.basePosX:t.xAxis.getDataItemPositionX(e,t.xOpenField,s,t.vcx,n),h?(r=t.yAxis.getDataItemPositionY(h,t.yField,o,h.component.get("vcy"),a),d.isNaN(r)&&(r=t.basePosY)):r=t.xAxis===t.baseAxis?t.basePosY:t.yAxis.getDataItemPositionY(e,t.yOpenField,o,t.vcy,a)}else i=t.xAxis.getDataItemPositionX(e,t.xOpenField,s,t.vcx,n),r=t.yAxis.getDataItemPositionY(e,t.yOpenField,o,t.vcy,a)}}let h=this.getPoint(i,r);s[2]=h.x,s[3]=h.y}if(t.minDistance>0){const e=s[0],r=s[1],n=s[2],a=s[3],o=this._previousPoint,l=o[0],h=o[1],u=o[2],c=o[3];(Math.hypot(e-l,r-h)>t.minDistance||n&&a&&Math.hypot(n-u,a-c)>t.minDistance)&&(i.push(s),this._previousPoint=s)}else i.push(s)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",(e=>{p.each(t,(t=>{this._strokeGenerator.context(e),this._strokeGenerator(t)}))}))}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",(e=>{p.each(t,(t=>{this._fillGenerator.context(e),this._fillGenerator(t)}))}))}_processAxisRange(e){super._processAxisRange(e),e.fills=new l.o(o.YS.new({}),(()=>s.T._new(this._root,{themeTags:g.mergeTags(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template]))),e.strokes=new l.o(o.YS.new({}),(()=>s.T._new(this._root,{themeTags:g.mergeTags(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template])))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const e=t.get("marker"),i=t.get("markerRectangle");i&&i.setPrivate("visible",!1),e.set("background",c.A.new(e._root,{fillOpacity:0,fill:(0,h.$_)(0)}));const r=e.children.push(s.T._new(e._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=r;const n=e.children.push(s.T._new(e._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=n;const a=this._root.interfaceColors.get("disabled");if(r.states.create("disabled",{fill:a,stroke:a}),n.states.create("disabled",{fill:a,stroke:a}),this.bullets.length>0){const t=this.bullets.getIndex(0);if(t){const i=t(e._root,this,new u.z(this,{legend:!0},{}));if(i){const t=i.get("sprite");t instanceof s.T&&t.states.create("disabled",{fill:a,stroke:a}),t&&(t.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),e.children.push(t),t.setAll({x:e.width()/2,y:e.height()/2}),e.events.on("boundschanged",(()=>{t.setAll({x:e.width()/2,y:e.height()/2})})))}}}}}}Object.defineProperty(f,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"}),Object.defineProperty(f,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.o.classNames.concat([f.className])})},4604:function(e,t,i){"use strict";i.d(t,{o:function(){return p}});var r=i(7582),s=i(9361),n=i(3399),a=i(7144),o=i(8777),l=i(1479),h=i(5040),u=i(256),c=i(5071),d=i(7652);class p extends n.F{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(o.W.new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new a.aV}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new s.z(this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((e=>{if("clear"===e.type)c.each(e.oldValues,(e=>{this._removeAxisRange(e)}));else if("push"===e.type)this._processAxisRange(e.newValue);else if("setIndex"===e.type)this._processAxisRange(e.newValue);else if("insertIndex"===e.type)this._processAxisRange(e.newValue);else if("removeIndex"===e.type)this._removeAxisRange(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(e){const t=o.W.new(this._root,{});e.container=t,this.children.push(t),e.series=this;const i=e.axisDataItem;i.setRaw("isRange",!0);const r=i.component;if(r){r._processAxisRange(i,["range","series"]);const e=i.get("bullet");if(e){const t=e.get("sprite");t&&t.setPrivate("visible",!1)}const s=i.get("axisFill");s&&t.set("mask",s),r._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),u.each(this._dataSets,((e,t)=>{c.each(t,(e=>{e.dispose()})),t.length=0}))}_removeAxisRange(e){const t=e.axisDataItem,i=t.component;t.dispose(),c.remove(i._seriesAxisRanges,t);const r=e.container;r&&r.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&c.each(this.valueXFields,(e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let t=this.get(e+"Show");this.__valueXShowFields.push(t),-1!=t.indexOf("Working")?this._valueXShowFields.push(t.split("Working")[0]):this._valueXShowFields.push(t)}})),this.valueYFields&&c.each(this.valueYFields,(e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let t=this.get(e+"Show");this.__valueYShowFields.push(t),-1!=t.indexOf("Working")?this._valueYShowFields.push(t.split("Working")[0]):this._valueYShowFields.push(t)}}))}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),c.removeFirst(this.get("xAxis").series,this),c.removeFirst(this.get("yAxis").series,this)}_min(e,t){let i=(s=t,null==(r=this.getPrivate(e))?s:null==s?r:s<r?s:r);var r,s;this.setPrivate(e,i)}_max(e,t){let i=(s=t,null==(r=this.getPrivate(e))?s:null==s?r:s>r?s:r);var r,s;this.setPrivate(e,i)}_shouldMakeBullet(e){const t=this.get("xAxis"),i=this.get("yAxis"),r=this.get("baseAxis");if(!t.inited||!i.inited)return!1;const s=this.get("minBulletDistance",0);if(s>0){let e=this.startIndex(),n=this.endIndex()-e;if(t==r){if(t.get("renderer").axisLength()/n<s/5)return!1}else if(i==r&&i.get("renderer").axisLength()/n<s/5)return!1}return null!=e.get(this._xField)&&null!=e.get(this._yField)}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),r=d.capitalizeFirst(i),s=t.getPrivate("name"),n=d.capitalizeFirst(s),a=e.get("renderer").getPrivate("letter"),o=t.get("renderer").getPrivate("letter"),l="open",h="low",u="high",c="Show";"ValueAxis"===e.className?(this._xField=this.get(i+a+c),this._xOpenField=this.get(l+r+a+c),this._xLowField=this.get(h+r+a+c),this._xHighField=this.get(u+r+a+c)):(this._xField=i+a,this._xOpenField=l+r+a,this._xLowField=h+r+a,this._xHighField=u+r+a),"ValueAxis"===t.className?(this._yField=this.get(s+o+c),this._yOpenField=this.get(l+n+o+c),this._yLowField=this.get(h+n+o+c),this._yHighField=this.get(u+n+o+c)):(this._yField=s+o,this._yOpenField=l+n+o,this._yLowField=h+n+o,this._yHighField=u+n+o)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),r=this.states.lookup("hidden"),s=this.get("sequencedInterpolation");if(r){let n=0;s&&(n=.999999999999),e===i?r.set("vcy",n):(t===i||r.set("vcy",n),r.set("vcx",n))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-d.relativeToValue(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-d.relativeToValue(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");let r,s;switch(this.get("tooltipPositionX")){case"open":r=this._xOpenField;break;case"low":r=this._xLowField;break;case"high":r=this._xHighField;break;default:r=this._xField}switch(this._tooltipFieldX=r,this.get("tooltipPositionY")){case"open":s=this._yOpenField;break;case"low":s=this._yLowField;break;case"high":s=this._yHighField;break;default:s=this._yField}this._tooltipFieldY=s,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const n=this.get("stacked");if(this.isDirty("stacked")&&(n?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,n&&this._stack(),c.each(this.dataItems,(i=>{c.each(this._valueXShowFields,(e=>{let t=i.get(e);null!=t&&(n&&(t+=this.getStackedXValue(i,e)),this._min("minX",t),this._max("maxX",t))})),c.each(this._valueYShowFields,(e=>{let t=i.get(e);null!=t&&(n&&(t+=this.getStackedYValue(i,e)),this._min("minY",t),this._max("maxY",t))})),e.processSeriesDataItem(i,this._valueXFields),t.processSeriesDataItem(i,this._valueYFields)})),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesData(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let r=this.startIndex(),s=this.endIndex(),n=this.get("minBulletDistance",0);if(n>0&&i&&(i.get("renderer").axisLength()/(s-r)>n?this._showBullets=!0:this._showBullets=!1),(this._psi!=r||this._pei!=s||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const n=this.get("vcx",1),a=this.get("vcy",1),o=this.get("stacked",!1),l=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),l)t.markDirtySelectionExtremes();else for(let e=r;e<s;e++)this.processYSelectionDataItem(this.dataItems[e],a,o);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),l)t.markDirtySelectionExtremes();else for(let e=r;e<s;e++)this.processXSelectionDataItem(this.dataItems[e],n,o);if((i===e||!i)&&("valueYWorking"!==this.get("valueYShow")||this.get("useSelectionExtremes"))){const e=this.getPrivate("selectionMinY");null!=e&&(this.setPrivateRaw("minY",e),t.markDirtyExtremes());const i=this.getPrivate("selectionMaxY");null!=i&&(this.setPrivateRaw("maxY",i),t.markDirtyExtremes())}if((i===t||!i)&&("valueXWorking"!==this.get("valueXShow")||this.get("useSelectionExtremes"))){const i=this.getPrivate("selectionMinX");null!=i&&(this.setPrivateRaw("minX",i),t.markDirtyExtremes());const r=this.getPrivate("selectionMaxX");null!=r&&(this.setPrivateRaw("maxX",r),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;null==e&&(e=this.children.push(l.T.new(this._root,{})),this._mainContainerMask=e,e.set("draw",((t,i)=>{const r=this.parent;if(r){const e=this._root.container.width(),s=this._root.container.height();t.moveTo(-e,-s),t.lineTo(-e,2*s),t.lineTo(2*e,2*s),t.lineTo(2*e,-s),t.lineTo(-e,-s),this.axisRanges.each((e=>{const s=e.axisDataItem.get("axisFill");if(r&&s){let e=s.get("draw");e&&e(t,i)}}))}this.mainContainer._display.mask=e._display}))),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let r=t-1;r>=0&&(i=e.series.getIndex(r),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));r--);}this._stackDataItems()}}_unstack(){u.each(this._reallyStackedTo,((e,t)=>{delete t._stackedSeries[this.uid]})),this._reallyStackedTo={},c.each(this.dataItems,(e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const e=this.get("xAxis");e&&e._handleSeriesRemoved();const t=this.get("yAxis");t&&t._handleSeriesRemoved()}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis");let r,s;e===t?(r="valueY",s="stackToItemY"):e===i&&(r="valueX",s="stackToItemX");let n=this._couldStackTo.length,a=0;const o=this.get("stackToNegative");this._reallyStackedTo={},c.each(this.dataItems,(e=>{for(let t=0;t<n;t++){let i=this._couldStackTo[t],l=i.dataItems[a],u=e.get(r);if(l){let a=l.get(r);if(o){if(!h.isNumber(u))break;if(h.isNumber(a)){if(t==n-1&&e.setRaw(s,void 0),u>=0&&a>=0){e.setRaw(s,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(u<0&&a<0){e.setRaw(s,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(h.isNumber(u)&&h.isNumber(a)){e.setRaw(s,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}a++}))}processXSelectionDataItem(e,t,i){c.each(this.__valueXShowFields,(r=>{let s=e.get(r);null!=s&&(i&&(s+=this.getStackedXValueWorking(e,r)),this._min("selectionMinX",s),this._max("selectionMaxX",s*t))}))}processYSelectionDataItem(e,t,i){c.each(this.__valueYShowFields,(r=>{let s=e.get(r);null!=s&&(i&&(s+=this.getStackedYValueWorking(e,r)),this._min("selectionMinY",s),this._max("selectionMaxY",s*t))}))}getStackedYValueWorking(e,t){const i=e.get("stackToItemY");if(i){const e=i.component;return i.get(t,0)*e.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){const i=e.get("stackToItemX");if(i){const e=i.component;return i.get(t,0)*e.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){const i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){const i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,r=e.get("locationX",i.get("locationX",.5)),s=e.get("locationY",i.get("locationY",.5)),n=this.get("xAxis"),a=this.get("yAxis"),o=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=n.getDataItemPositionX(i,this._xField,r,this.get("vcx",1),o),u=a.getDataItemPositionY(i,this._yField,s,this.get("vcy",1),l),c=this.getPoint(h,u),d=i.get("left",c.x),p=i.get("right",c.x),g=i.get("top",c.y),f=i.get("bottom",c.y),m=0,b=0,_=p-d,v=f-g;if(this._shouldShowBullet(h,u)){t.setPrivate("visible",!e.getPrivate("hidden"));let n=e.get("field");const a=this.get("baseAxis"),p=this.get("xAxis"),g=this.get("yAxis");if(null!=n){let e;a==p?("value"==n?e=this._yField:"open"==n?e=this._yOpenField:"high"==n?e=this._yHighField:"low"==n&&(e=this._yLowField),e&&(u=g.getDataItemPositionY(i,e,0,this.get("vcy",1),l),c=g.get("renderer").positionToPoint(u),b=c.y,m=d+_*r)):("value"==n?e=this._xField:"open"==n?e=this._xOpenField:"high"==n?e=this._xHighField:"low"==n&&(e=this._xLowField),e&&(h=p.getDataItemPositionX(i,e,0,this.get("vcx",1),o),c=p.get("renderer").positionToPoint(h),m=c.x,b=f-v*s))}else m=d+_*r,b=f-v*s;const y=e.get("stacked");if(y){const e=this.chart;if(a==p){let i=this._bullets[h+"_"+u];if(i){let r=i.bounds(),s=t.localBounds(),n=b;b=r.top,"down"==y?b=r.bottom-s.top:"auto"==y?e&&(n<e.plotContainer.height()/2?b=r.bottom-s.top:b+=s.bottom):b+=s.bottom}this._bullets[h+"_"+u]=t}else{let i=this._bullets[h+"_"+u];if(i){let r=i.bounds(),s=t.localBounds(),n=m;m=r.right,"down"==y?m=r.left-s.right:"auto"==y?e&&(n<e.plotContainer.width()/2?m=r.left-s.right:m-=s.left):m-=s.left}this._bullets[h+"_"+u]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(_)),t.setPrivate("maxHeight",Math.abs(v))),t.setAll({x:m,y:b})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){u.each(this._dataSets,((e,t)=>{t!=this._mainDataItems&&c.each(t,(e=>{e.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){c.each(this._dataItems,(e=>{let t=e.bullets;t&&c.each(t,(e=>{if(e){let t=e.get("sprite");t&&t.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return(0,r.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then((()=>{this._isShowing=!1;let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");t!==i&&t.markDirtySelectionExtremes(),e!==i&&e.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)}))}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return(0,r.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)}))}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.showDataItem.call(this,e,t)];h.isNumber(t)||(t=this.get("stateAnimationDuration",0));const s=this.get("stateAnimationEasing");c.each(this._valueFields,(i=>{r.push(e.animate({key:i+"Working",to:e.get(i),duration:t,easing:s}).waitForStop())})),yield Promise.all(r)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.hideDataItem.call(this,e,t)],s=this.states.create("hidden",{});h.isNumber(t)||(t=s.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const n=s.get("stateAnimationEasing",this.get("stateAnimationEasing")),a=this.get("xAxis"),o=this.get("yAxis"),l=this.get("baseAxis"),u=this.get("stacked");if(l!==a&&l||c.each(this._valueYFields,(i=>{let s=o.getPrivate("min"),a=o.baseValue();h.isNumber(s)&&s>a&&(a=s),u&&(a=0),null!=e.get(i)&&r.push(e.animate({key:i+"Working",to:a,duration:t,easing:n}).waitForStop())})),l===o||!l){let i=a.getPrivate("min"),s=a.baseValue();h.isNumber(i)&&i>s&&(s=i),u&&(s=0),c.each(this._valueXFields,(i=>{null!=e.get(i)&&r.push(e.animate({key:i+"Working",to:s,duration:t,easing:n}).waitForStop())}))}yield Promise.all(r)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&&u.each(e,((e,t)=>{t._stackDirty||t._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));const t=this.get("tooltip"),i=this.get("exactLocationX",!1),r=this.get("exactLocationY",!1);if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let s=this.get("locationX",0),n=this.get("locationY",1),a=e.get("locationX",s),o=e.get("locationY",n);const l=this.get("xAxis"),h=this.get("yAxis"),u=this.get("vcx",1),d=this.get("vcy",1),p=l.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*a,u,i),g=h.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*o,d,r),f=this.getPoint(p,g);let m=!0;if(c.each(this._valueFields,(t=>{null==e.get(t)&&(m=!1)})),m){const i=this.chart;i&&i.inPlot(f)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:f.x,y:f.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if("bullet"==this.get("seriesTooltipTarget")){const t=e.bullets;if(t&&t.length>0){const e=t[0].get("sprite");if(e)return e}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const i=t.get("label");if(i){let t="";e?(i._setDataItem(e),t=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),t=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",t)}const r=t.get("valueLabel");if(r){let t="";e?(r._setDataItem(e),t=this.get("legendValueText",r.get("text",""))):(r._setDataItem(this._emptyDataItem),t=this.get("legendRangeValueText",r.get("text",""))),r.set("text",t)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this.get("xAxis").get("renderer").positionToCoordinate(e),r=this.get("yAxis").get("renderer").positionToCoordinate(t),s=999999999;return r<-s&&(r=-s),r>s&&(r=s),i<-s&&(i=-s),i>s&&(i=s),{x:i,y:r}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){const t=this.get("xAxis");if(this.get("baseAxis")==t&&t.isType("DateAxis")){const i=t.baseDuration(),r=t.getPrivate("selectionMin",t.getPrivate("min",0)),s=i*this.get("locationX",.5);let n=-1/0;for(;n<r;){const t=this.dataItems[e];if(!t)break;{const i=t.open;if(n=i?i.valueX:t.get("valueX",0),n+=s,!(n<r))break;e++}}}return e}}Object.defineProperty(p,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"}),Object.defineProperty(p,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.F.classNames.concat([p.className])})},3145:function(e,t,i){"use strict";i.d(t,{UZ:function(){return n},cP:function(){return s},f_:function(){return a},i_:function(){return r}});const r=new class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.13.6"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]})}};function s(e){r.licenses.push(e)}function n(){let e;for(;e=r.rootElements.pop();)e.dispose()}function a(e){let t;return r.rootElements.forEach((i=>{i.dom.id==e&&(t=i)})),t}},2855:function(e,t,i){"use strict";i.d(t,{f:function(){return F}});var r=i(6490),s=i(8777),n=i(2036),a=i(4431),o=i(1706),l=i(6881),h=i(7449),u=i(5071),c=i(7652);class d{constructor(){Object.defineProperty(this,"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._observer=new ResizeObserver((e=>{u.each(e,(e=>{u.each(this._targets,(t=>{t.target===e.target&&t.callback()}))}))}))}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),u.keepIf(this._targets,(t=>t.target!==e))}}class p{constructor(){Object.defineProperty(this,"_timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]})}addTarget(e,t){if(null===this._timer){let e=null;const t=()=>{const i=Date.now();(null===e||i>e+p.delay)&&(e=i,u.each(this._targets,(e=>{let t=e.target.getBoundingClientRect();t.width===e.size.width&&t.height===e.size.height||(e.size=t,e.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(t)};this._timer=requestAnimationFrame(t)}this._targets.push({target:e,callback:t,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(e){u.keepIf(this._targets,(t=>t.target!==e)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}Object.defineProperty(p,"delay",{enumerable:!0,configurable:!0,writable:!0,value:200});let g=null;class f{constructor(e,t){Object.defineProperty(this,"_sensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=e,this._listener=c.onZoom(t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var m=i(9821),b=i(1479),_=i(7142),v=i(2876),y=i(780),w=i(6460),x=i(798),P=i(6331),D=i(256),O=i(3100);class k extends P.JH{_setDefaults(){this.setPrivate("defaultLocale",O.Z),super._setDefaults()}translate(e,t,...i){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let r=e,s=t[e];if(null===s)r="";else if(null!=s)s&&(r=s);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...i);if(i.length)for(let e=i.length,t=0;t<e;++t)r=r.split("%"+(t+1)).join(i[t]);return r}translateAny(e,t,...i){return this.translate(e,t,...i)}setTranslationAny(e,t,i){(i||this._root.locale)[e]=t}setTranslationsAny(e,t){D.each(e,((e,i)=>{this.setTranslationAny(e,i,t)}))}translateEmpty(e,t,...i){let r=this.translate(e,t,...i);return r==e?"":r}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:u.map(e,(e=>this.translate(e,t)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var T=i(9770),M=i(3783),S=i(4102),E=i(6245),C=i(1112),A=i(2132),N=i(3145),L=i(3540),j=i(5040);function R(e,t){null==e?requestAnimationFrame(t):setTimeout((()=>{requestAnimationFrame(t)}),1e3/e)}class F{constructor(e,t={},i){if(Object.defineProperty(this,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyAnimation",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyBounds",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPositions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_ticker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tickers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_updateTick",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new T.p}),Object.defineProperty(this,"animationTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_animations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rootContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tooltipContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipContainerSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"language",{enumerable:!0,configurable:!0,writable:!0,value:k.new(this,{})}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:O.Z}),Object.defineProperty(this,"utc",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timezone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberFormatter",{enumerable:!0,configurable:!0,writable:!0,value:y.e.new(this,{})}),Object.defineProperty(this,"dateFormatter",{enumerable:!0,configurable:!0,writable:!0,value:w.C.new(this,{})}),Object.defineProperty(this,"durationFormatter",{enumerable:!0,configurable:!0,writable:!0,value:x.$.new(this,{})}),Object.defineProperty(this,"tabindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tabindexes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_a11yD",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusedSprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isShift",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_keyboardDragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_readerAlertElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_logo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nonce",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interfaceColors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verticalLayout",{enumerable:!0,configurable:!0,writable:!0,value:o.Z.new(this,{})}),Object.defineProperty(this,"horizontalLayout",{enumerable:!0,configurable:!0,writable:!0,value:a.G.new(this,{})}),Object.defineProperty(this,"gridLayout",{enumerable:!0,configurable:!0,writable:!0,value:l.M.new(this,{})}),Object.defineProperty(this,"_paused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoResize",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_fontHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_resizeSensorDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltips",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_htmlElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlEnabledContainers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let r,s;if(this._settings=t,0==t.accessible&&(this._a11yD=!0),null==t.useSafeResolution&&(t.useSafeResolution=!0),t.useSafeResolution&&(r=c.getSafeResolution()),this._renderer=new S.uK(r),s=e instanceof HTMLElement?e:document.getElementById(e),u.each(N.i_.rootElements,(e=>{if(e.dom===s)throw new Error("You cannot have multiple Roots on the same DOM node")})),this.interfaceColors=m.v.new(this,{}),null===s)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=s;let n=document.createElement("div");n.style.position="relative",n.style.width="100%",n.style.height="100%",s.appendChild(n);const h=t.tooltipContainerBounds;h&&(this._tooltipContainerSettings=h),this._inner=n,this._updateComputedStyles(),N.i_.rootElements.push(this)}static new(e,t){const i=new F(e,t,!0);return i._init(),i}moveDOM(e){let t;if(t=e instanceof HTMLElement?e:document.getElementById(e),t){for(;this.dom.childNodes.length>0;)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const e=this.tooltipContainer.children.push(s.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,E.aQ)(100),centerY:E.AQ,tooltipText:"Created using amCharts 5",tooltipX:E.AQ,cursorOverStyle:"pointer",background:_.A.new(this,{fill:(0,C.$_)(4671320),fillOpacity:0,tooltipY:5})})),t=v.u.new(this,{pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});t.label.setAll({fontSize:12}),t.get("background").setAll({fill:this.interfaceColors.get("background"),stroke:this.interfaceColors.get("grid"),strokeOpacity:.3}),e.set("tooltip",t),e.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),e.states.create("hover",{}),e.children.push(b.T.new(this,{stroke:(0,C.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6"})).states.create("hover",{stroke:(0,C.$_)(3976191)}),e.children.push(b.T.new(this,{stroke:(0,C.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0"})).states.create("hover",{stroke:(0,C.$_)(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){const e=this._settings;!1!==e.accessible&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));const t=this._renderer,i=this._getRealSize(),r=this._getCalculatedSize(i),n=Math.floor(r.width),a=Math.floor(r.height),o=Math.floor(i.width),l=Math.floor(i.height),h=s.W.new(this,{visible:!0,width:n,height:a});this._rootContainer=h,this._rootContainer._defaultThemes.push(M.X.new(this));const u=h.children.push(s.W.new(this,{visible:!0,width:E.AQ,height:E.AQ}));this.container=u,t.resize(o,l,n,a),this._inner.appendChild(t.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const e=document.createElement("div");e.className="am5-reader-container",e.setAttribute("role","alert"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=e,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=n+"px",i.style.height=a+"px",i.setAttribute("role","graphics-document"),c.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const r=document.createElement("div");this._tooltipElementContainer=r,r.className="am5-tooltip-container",this._inner.appendChild(r),c.supports("keyboardevents")&&(this._disposers.push(c.addEventListener(window,"keydown",(e=>{const t=c.getEventKey(e);"Shift"==t?this._isShift=!0:"Tab"==t&&(this._isShift=e.shiftKey)}))),this._disposers.push(c.addEventListener(window,"keyup",(e=>{"Shift"==c.getEventKey(e)&&(this._isShift=!1)}))),this._disposers.push(c.addEventListener(i,"click",(()=>{const e=this._focusedSprite;if(e){const i=e.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const r=t.getEvent(new MouseEvent("click"));e.events.dispatch("click",{type:"click",originalEvent:r.event,point:r.point,simulated:!0,target:e})}}))),this._disposers.push(c.addEventListener(i,"keydown",(e=>{const i=this._focusedSprite;if(i){"Escape"==e.key&&(c.blur(),this._focusedSprite=void 0);let r=0,s=0;const n=c.getEventKey(e);switch(n){case"Enter":case" ":const a=i.get("clickAnnounceText","");if(""!==a&&this.readerAlert(a)," "==n&&"checkbox"!=i.get("role"))return;e.preventDefault();const o=t.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:o.event,point:o.point,simulated:!0,target:i});case"ArrowLeft":r=-6;break;case"ArrowRight":r=6;break;case"ArrowUp":s=-6;break;case"ArrowDown":s=6;break;default:return}if(0!=r||0!=s){if(e.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const e=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));e.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:e.event,point:e.point,simulated:!0,target:i})}const n=this._keyboardDragPoint;n.x+=r,n.y+=s;const a=t.getEvent(new MouseEvent("mousemove",{clientX:n.x,clientY:n.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:a.event,point:a.point,simulated:!0,target:i})}}}))),this._disposers.push(c.addEventListener(i,"keyup",(e=>{if(this._focusedSprite){const i=this._focusedSprite,r=c.getEventKey(e);switch(r){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const e=this._keyboardDragPoint,r=t.getEvent(new MouseEvent("mouseup",{clientX:e.x,clientY:e.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:r.event,point:r.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const e=i.get("focusableGroup"),t=this._tabindexes.filter((t=>!(t.get("focusableGroup")!=e||!1===t.getPrivate("focusable")||!t.isVisibleDeep())));let s=t.indexOf(i);const n=t.length-1;s+="ArrowRight"==r||"ArrowDown"==r?1:-1,s<0?s=n:s>n&&(s=0),c.focus(t[s].getPrivate("focusElement").dom)}break;case"Tab":const e=i.get("focusableGroup");if(e&&this._isShift)return void this._focusNext(i.getPrivate("focusElement").dom,-1,e)}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const e=this._getRealSize(),t=this._getCalculatedSize(e),i=Math.floor(t.width),r=Math.floor(t.height);if(i>0&&r>0){const t=Math.floor(e.width),s=Math.floor(e.height),n=this._htmlElementContainer;if(n.style.width=i+"px",n.style.height=r+"px",!0!==this._a11yD){const e=this._focusElementContainer;e.style.width=i+"px",e.style.height=r+"px"}this._renderer.resize(t,s,i,r);const a=this._rootContainer;a.setPrivate("width",i),a.setPrivate("height",r),this._render(),this._handleLogo()}}_render(){this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){u.each(this._tickers,(t=>{t(e)}))}_runAnimations(e){let t=0;return u.keepIf(this._animations,(i=>{const s=i._runAnimation(e);return s!==r.SR.Stopped&&(s!==r.SR.Playing||(++t,!0))})),this._isDirtyAnimation=!1,0===t}_runDirties(){let e={};for(;this._isDirtyParents;)this._isDirtyParents=!1,D.keys(this._dirtyParents).forEach((t=>{const i=this._dirtyParents[t];delete this._dirtyParents[t],i.isDisposed()||(e[i.uid]=i,i._prepareChildren())}));D.keys(e).forEach((t=>{e[t]._updateChildren()}));const t=[];D.keys(this._dirty).forEach((e=>{const i=this._dirty[e];i.isDisposed()?delete this._dirty[i.uid]:(t.push(i),i._beforeChanged())})),t.forEach((e=>{e._changed(),delete this._dirty[e.uid],e._clearDirty()})),this._isDirty=!1;const i={},r=[];D.keys(this._dirtyBounds).forEach((e=>{const t=this._dirtyBounds[e];delete this._dirtyBounds[e],t.isDisposed()||(i[t.uid]=t.depth(),r.push(t))})),this._positionHTMLElements(),r.sort(((e,t)=>L.qu(i[t.uid],i[e.uid]))),r.forEach((e=>{e._updateBounds()}));const s=this._dirtyPositions;D.keys(s).forEach((e=>{const t=s[e];delete s[e],t.isDisposed()||t._updatePosition()})),t.forEach((e=>{e._afterChanged()}))}_renderFrame(e){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e);const t=this._runAnimations(e);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),0===this._tickers.length&&t&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(e,t){this.isDisposed()||(this.animationTime=e,this._renderFrame(e)?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:R(this.fps,this._ticker)))}_runTickerNow(e=1e4){if(!this.isDisposed()){const t=performance.now()+e;for(;;){const e=performance.now();if(e>=t){this.animationTime=null;break}if(this.animationTime=e,this._renderFrame(e)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},R(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._isDirty=!0,void 0===this._dirty[e.uid]&&(this._dirty[e.uid]=e),this._startTicker()}_addDirtyParent(e){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[e.uid]&&(this._dirtyParents[e.uid]=e),this._startTicker()}_addDirtyBounds(e){this._isDirty=!0,void 0===this._dirtyBounds[e.uid]&&(this._dirtyBounds[e.uid]=e),this._startTicker()}_addDirtyPosition(e){this._isDirty=!0,void 0===this._dirtyPositions[e.uid]&&(this._dirtyPositions[e.uid]=e),this._startTicker()}_addAnimation(e){this._isDirtyAnimation=!0,-1===this._animations.indexOf(e)&&this._animations.push(e),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(e){return this._tickers.push(e),this._startTicker(),new h.ku((()=>{u.removeFirst(this._tickers,e)}))}markDirtyGlobal(e){e||(e=this.container),e.walkChildren((e=>{e instanceof s.W&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),u.each(this._disposers,(e=>{e.dispose()})),this._inner&&c.removeElement(this._inner),u.remove(N.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){if(!0!==this._a11yD){const t=this._readerAlertElement;e=c.stripTags(e),t.innerHTML==e&&(t.innerHTML=""),t.innerHTML=e}}setThemes(e){this._rootContainer.set("themes",e);const t=this.tooltipContainer;t&&t._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const e=this._tooltipContainerSettings,t=this._rootContainer.children.push(s.W.new(this,{position:"absolute",isMeasured:!1,width:E.AQ,height:E.AQ,layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(e){1!=this._a11yD&&(e.get("focusable")?u.pushOne(this._tabindexes,e):u.remove(this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){1!=this._a11yD&&(u.remove(this._tabindexes,e),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((e,t)=>{const i=e.get("tabindexOrder",0),r=t.get("tabindexOrder",0);return i==r?0:i>r?1:-1}));const e=[];u.each(this._tabindexes,((t,i)=>{t.getPrivate("focusElement")?this._moveFocusElement(i,t):this._makeFocusElement(i,t);const r=t.get("focusableGroup");r&&!1!==t.getPrivate("focusable")&&(-1!==e.indexOf(r)?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(r))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(1==this._a11yD)return;if(t||(t=e.getPrivate("focusElement").dom),!t)return;const i=e.get("role");i?t.setAttribute("role",i):t.removeAttribute("role");const r=e.get("ariaLabel");if(r){const i=(0,A.q)(e,r);t.setAttribute("aria-label",i)}else t.removeAttribute("aria-label");const s=e.get("ariaLive");s?t.setAttribute("aria-live",s):t.removeAttribute("aria-live");const n=e.get("ariaChecked");null!=n&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?t.setAttribute("aria-checked",n?"true":"false"):t.removeAttribute("aria-checked");const a=e.get("ariaCurrent");null!=a?t.setAttribute("aria-current",a):t.removeAttribute("aria-current");const o=e.get("ariaSelected");null!=o&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?t.setAttribute("aria-selected",o?"true":"false"):t.removeAttribute("aria-selected"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");const l=e.get("ariaOrientation");l?t.setAttribute("aria-orientation",l):t.removeAttribute("aria-orientation");const h=e.get("ariaValueNow");h?t.setAttribute("aria-valuenow",h):t.removeAttribute("aria-valuenow");const u=e.get("ariaValueMin");u?t.setAttribute("aria-valuemin",u):t.removeAttribute("aria-valuemin");const c=e.get("ariaValueMax");c?t.setAttribute("aria-valuemax",c):t.removeAttribute("aria-valuemax");const d=e.get("ariaValueText");d?t.setAttribute("aria-valuetext",d):t.removeAttribute("aria-valuetext");const p=e.get("ariaControls");p?t.setAttribute("aria-controls",p):t.removeAttribute("aria-controls"),e.get("visible")&&0!==e.get("opacity")&&"tooltip"!=e.get("role")&&!e.isHidden()&&!1!==e.getPrivate("focusable")&&(e.height()||e.width())?("-1"!=t.getAttribute("tabindex")&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=t.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",c.setInteractive(i,!1);const r=[];t.setPrivate("focusElement",{dom:i,disposers:r}),this._decorateFocusElement(t),r.push(c.addEventListener(i,"focus",(e=>{this._handleFocus(e)}))),r.push(c.addEventListener(i,"blur",(e=>{this._handleBlur(e)}))),this._moveFocusElement(e,t)}_removeFocusElement(e){if(1==this._a11yD)return;u.remove(this._tabindexes,e);const t=e.getPrivate("focusElement");t&&(this._focusElementContainer.removeChild(t.dom),u.each(t.disposers,(e=>{e.dispose()})))}_hideFocusElement(e){1!=this._a11yD&&(e.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(e,t){if(1==this._a11yD)return;const i=this._focusElementContainer,r=t.getPrivate("focusElement").dom;if(r===this._focusElementContainer.children[e])return;const s=this._focusElementContainer.children[e+1];s?i.insertBefore(r,s):i.append(r)}_positionFocusElement(e){if(1==this._a11yD||null==e)return;const t=e.globalBounds();let i=t.right==t.left?e.width():t.right-t.left,r=t.top==t.bottom?e.height():t.bottom-t.top;const s=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let n=t.left-s,a=t.top-s;i<0&&(n+=i,i=Math.abs(i)),r<0&&(a+=r,r=Math.abs(r));const o=e.getPrivate("focusElement").dom;o.style.top=a+"px",o.style.left=n+"px",o.style.width=i+2*s+"px",o.style.height=r+2*s+"px"}_getSpriteByFocusElement(e){let t;return u.eachContinue(this._tabindexes,((i,r)=>i.getPrivate("focusElement").dom!==e||(t=i,!1))),t}_handleFocus(e){if(1==this._a11yD)return;const t=this._getSpriteByFocusElement(e.target);t&&(t.isVisibleDeep()?(this._positionFocusElement(t),this._focusedSprite=t,t.events.isEnabled("focus")&&t.events.dispatch("focus",{type:"focus",originalEvent:e,target:t})):this._focusNext(e.target,this._isShift?-1:1))}_focusNext(e,t,i){if(1==this._a11yD)return;const r=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let s=r.indexOf(e)+t;s<0?s=r.length-1:s>=r.length&&(s=0);const n=r[s];if(i&&-1==t){const e=this._getSpriteByFocusElement(n);if(e&&e.get("focusableGroup")==i)return void this._focusNext(n,t)}n.focus()}_handleBlur(e){if(1==this._a11yD)return;const t=this._focusedSprite;t&&!t.isDisposed()&&t.events.isEnabled("blur")&&t.events.dispatch("blur",{type:"blur",originalEvent:e,target:t}),this._focusedSprite=void 0}updateTooltip(e){if(1==this._a11yD)return;const t=c.stripTags(e._getText());let i=e.getPrivate("tooltipElement");"tooltip"==e.get("role")&&""!=t?(i||(i=this._makeTooltipElement(e)),i.innerHTML!=t&&(i.innerHTML=t),i.setAttribute("aria-hidden",e.isVisibleDeep()?"false":"true")):i&&(i.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){const t=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",c.setInteractive(i,!1),this._decorateFocusElement(e,i),t.append(i),e.setPrivate("tooltipElement",i),i}_removeTooltipElement(e){if(1==this._a11yD)return;const t=e.getPrivate("tooltipElement");if(t){const e=t.parentElement;e&&e.removeChild(t)}}_invalidateAccessibility(e){if(1==this._a11yD)return;this._focusElementDirty=!0;const t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),r=i.width/t.width,s=i.height/t.height;return{x:(e.x-t.left)*r,y:(e.y-t.top)*s}}rootPointToDocument(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),r=i.width/t.width,s=i.height/t.height;return{x:e.x/r+t.left,y:e.y/s+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){const e=window.getComputedStyle(this.dom);let t="";D.each(e,((e,i)=>{j.isString(e)&&e.match(/^font/)&&(t+=i)}));const i=t!=this._fontHash;return i&&(this._fontHash=t),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof s.W?e.children.each((e=>{this._invalidateLabelBounds(e)})):e instanceof n.x&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<N.i_.licenses.length;e++)if(N.i_.licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){const t=this._htmlElementContainer,i=document.createElement("div");e.setPrivate("htmlElement",i);let r,s,n=!1;return e._walkParents((e=>{if(e.get("verticalScrollbar"))return n=!0,r=e,!1})),n&&(s=document.createElement("div"),e.setPrivate("htmlElementWrapper",s),e.setPrivate("wrapperContainer",r),s.style.position="absolute",s.style.overflow="hidden",s.style.boxSizing="border-box",s.style.top="0px",s.style.left="0px",s.style.width="100%",s.style.height="100%",r.events.on("boundschanged",(()=>{this._positionHTMLElement(e)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",c.setInteractive(i,e.get("interactive",!1)),e.events.isEnabled("click")&&(c.setInteractive(i,!0),this._disposers.push(c.addEventListener(i,"click",(t=>{const i=this._renderer.getEvent(t);e.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:e})})))),this._positionHTMLElement(e),n?(s.append(i),t.append(s)):t.append(i),u.pushOne(this._htmlEnabledContainers,e),i}_positionHTMLElements(){u.each(this._htmlEnabledContainers,(e=>{this._positionHTMLElement(e)}))}_positionHTMLElement(e){const t=e.getPrivate("htmlElementWrapper");if(t){const i=e.getPrivate("wrapperContainer");if(i){const e=i.globalBounds();t.style.clipPath="rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"}}const i=e.getPrivate("htmlElement");if(i){const t=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];u.each(t,(t=>{const r=e.get(t);i.style[t]=r?r+"px":""}));const r=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];u.each(r,(t=>{const r=e.get(t);r?"fontSize"!=t||j.isString(r)?i.style[t]=r+"":i.style[t]=r+"px":i.style[t]=""}));const s=e.compositeScale()||1,n=e.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const a=e.compositeOpacity();setTimeout((()=>{i.style.opacity=a+""}),10);const o=e.isVisibleDeep();o&&(i.style.display="block");let l={x:e.x()+e.get("dx",0),y:e.y()+e.get("dy",0)};e.parent&&(l=e.parent.toGlobal(l)),i.style.top=l.y+"px",i.style.left=l.x+"px";const h=e.get("width"),c=e.get("height");let d=0,p=0;if(h&&(d=e.width()),c&&(p=e.height()),!h||!c){i.style.position="fixed",i.style.width="",i.style.height="";const t=i.getBoundingClientRect();i.style.position="absolute",h||(d=t.width),c||(p=t.height);let r=d/s,n=p/s,a=e.get("centerX",0),o=e.get("centerY",0),l=0,u=0,g=0,f=0;a instanceof E.gG?(l=-a.value*r,u=(1-a.value)*r):(l=-a,u=r-a),o instanceof E.gG?(g=-o.value*n,f=(1-o.value)*n):(g=-o,f=n-o),e._localBounds={left:l,right:u,top:g,bottom:f};let m=e._adjustedLocalBounds,b=e._display.getAdjustedBounds(e._localBounds);e._adjustedLocalBounds=b,m.left===b.left&&m.right===b.right&&m.top===b.top&&m.bottom===b.bottom||e.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),o&&0!=a||(i.style.display="none");const g=e.get("centerX",0),f=(0,E.hU)(g)?g.percent+"%":g+"px",m=e.get("centerY",0),b=(0,E.hU)(m)?m.percent+"%":m+"px";(g||m)&&(i.style.transform="translate(-"+f+", -"+b+")"+i.style.transform),1!=s&&(i.style.transform+="scale("+s+")"),0!=n&&(i.style.transform+=" rotate("+n+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+b)}}_setHTMLContent(e,t){let i=e.getPrivate("htmlElement");i||(i=this._makeHTMLElement(e),this.autoResize||this.resize()),i.innerHTML!=t&&(i.innerHTML=t)}_removeHTMLContent(e){const t=e.getPrivate("htmlElementWrapper"),i=e.getPrivate("htmlElement");t?(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement"),e.removePrivate("htmlElementWrapper"),e.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),e.removePrivate("htmlElement"),e.removePrivate("wrapperContainer")),u.remove(this._htmlEnabledContainers,e)}}},3409:function(e,t,i){"use strict";i.d(t,{Q:function(){return a}});var r=i(5769),s=i(3540),n=i(5071);class a{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){const t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let i=this._rules[e];i||(i=this._rules[e]=[]),t.sort(s.qu);const{index:a,found:o}=n.getSortedIndex(i,(e=>{const i=s.qu(e.tags.length,t.length);return 0===i?s.wq(e.tags,t,s.qu):i}));if(o)return i[a].template;{const e=r.YS.new({});return i.splice(a,0,{tags:t,template:e}),e}}rule(e,t=[]){return this.ruleRaw(e,t)}}},5108:function(e,t,i){"use strict";i.d(t,{g:function(){return s}});var r=i(6331);class s extends r.JH{constructor(){super(...arguments),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const e=this.get("sprite");e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Bullet"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([s.className])})},8054:function(e,t,i){"use strict";i.d(t,{z:function(){return a}});var r=i(3497),s=i(8777),n=i(7652);class a extends s.W{_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",r.c.new(this._root,{themeTags:n.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){const e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.W.classNames.concat([a.className])})},1337:function(e,t,i){"use strict";i.d(t,{k:function(){return n}});var r=i(8777),s=i(6245);class n extends r.W{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r.W.new(this._root,{width:s.AQ,height:s.AQ,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:r.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:s.AQ,height:s.AQ})})}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.W.classNames.concat([n.className])})},8035:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var r=i(1479);class s extends r.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Circle"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([s.className])})},9361:function(e,t,i){"use strict";i.d(t,{w:function(){return u},z:function(){return h}});var r=i(7582),s=i(6331),n=i(8777),a=i(9582),o=i(5071),l=i(256);class h extends s.Zr{constructor(e,t,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class u extends n.W{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new a.k}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)o.each(t,(e=>{e.dispose()})),t.length=0,this._onDataClear();else if("push"===e.type){const i=new h(this,e.newValue,this._makeDataItem(e.newValue));t.push(i),this.processDataItem(i)}else if("setIndex"===e.type){const i=t[e.index],r=this._makeDataItem(e.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),l.keys(r).forEach((e=>{i.animate({key:e,to:r[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=e.newValue}else if("insertIndex"===e.type){const i=new h(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,i),this.processDataItem(i)}else if("removeIndex"===e.type)t[e.index].dispose(),t.splice(e.index,1);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const i=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,i)}}this._afterDataChange()})))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},o.each(this.valueFields,(e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},o.each(this.fields,(e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")})))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&o.each(this._valueFields,(i=>{const r=this.get(this._valueFieldsF[i].fieldKey);t[i]=e[r],t[this._valueFieldsF[i].workingKey]=t[i]})),this._fields&&o.each(this._fields,(i=>{const r=this.get(this._fieldsF[i]);t[i]=e[r]})),t}makeDataItem(e,t){let i=new h(this,t,e);return this.processDataItem(i),i}pushDataItem(e,t){const i=this.makeDataItem(e,t);return this._mainDataItems.push(i),i}disposeDataItem(e){}showDataItem(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){e.set("visible",!0)}))}hideDataItem(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){e.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.W.classNames.concat([u.className])})},8777:function(e,t,i){"use strict";i.d(t,{W:function(){return f}});var r=i(7144),s=i(5071);class n extends r.aV{constructor(e){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=e,this._events=this.events.onAll((e=>{if("clear"===e.type)s.each(e.oldValues,(e=>{this._onRemoved(e)}));else if("push"===e.type)this._onInserted(e.newValue);else if("setIndex"===e.type)this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if("insertIndex"===e.type)this._onInserted(e.newValue,e.index);else if("removeIndex"===e.type)this._onRemoved(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._onRemoved(e.value),this._onInserted(e.value,e.newIndex)}}))}_onInserted(e,t){e._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===t?i.addChild(e._display):i.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),s.each(this.values,(e=>{e.dispose()})))}}var a=i(6245),o=i(4596),l=i(7142),h=i(4431),u=i(1706),c=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends o.j{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new n(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_dispose(){s.eachReverse(this.allChildren(),(e=>{e.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((e=>{e.removePrivate("x"),e.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((e=>{e.markDirtyPosition()})),this.isDirty("maskContent")){const e=this._childrenDisplay;let t=this._contentMask;this.get("maskContent")?t||(t=l.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),s.each(this._percentageSizeChildren,(e=>{e._updateSize()})),s.each(this._percentagePositionChildren,(e=>{e.markDirtyPosition(),e._updateSize()})),this.updateBackground()}updateBackground(){const e=this.get("background");let t=this._localBounds;if(t&&!this.isHidden()){let i=t.left,r=t.top,s=t.right-i,n=t.bottom-r,a=this.get("maxWidth"),o=this.get("maxHeight");o&&n>o&&(n=o),a&&s>a&&(s=a);let l=this.width(),h=this.height();e&&(e.setAll({width:s,height:n,x:i,y:r}),this._display.interactive&&(e._display.interactive=!0));const u=this._contentMask;u&&u.setAll({width:l+1,height:h+1});const c=this.get("verticalScrollbar");if(c){c.set("height",h),c.set("x",l-c.width()-c.get("marginRight",0)),c.set("end",c.get("start",0)+h/this._contentHeight);const e=c.get("background");e&&e.setAll({width:c.width(),height:h});let t=!0;this._contentHeight<=h&&(t=!1),c.setPrivate("visible",t)}}}_applyThemes(e=!1){return!!super._applyThemes(e)&&(this.eachChildren((t=>{t._applyThemes(e)})),!0)}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren((t=>{t.states.apply(e)}))}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(e,t)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let e=this._localBounds;e&&(this._contentWidth=e.right-e.left,this._contentHeight=e.bottom-e.top)}else{let e=this.get("width"),t=this.get("height"),i=this.getPrivate("width"),r=this.getPrivate("height"),s={left:0,top:0,right:this.width(),bottom:this.height()},n=this.get("layout"),a=!1,o=!1;if((n instanceof h.G||n instanceof c.M)&&(a=!0),n instanceof u.Z&&(o=!0),null==e&&null==i||null==t&&null==r||this.get("verticalScrollbar")){let e=Number.MAX_VALUE,t=e,i=-e,r=e,n=-e;const l=this.get("paddingLeft",0),h=this.get("paddingTop",0),u=this.get("paddingRight",0),c=this.get("paddingBottom",0);this.children.each((e=>{if("absolute"!=e.get("position")&&e.get("isMeasured")){let s=e.adjustedLocalBounds(),l=e.x(),h=e.y(),u=l+s.left,c=l+s.right,d=h+s.top,p=h+s.bottom;a&&(u-=e.get("marginLeft",0),c+=e.get("marginRight",0)),o&&(d-=e.get("marginTop",0),p+=e.get("marginBottom",0)),u<t&&(t=u),c>i&&(i=c),d<r&&(r=d),p>n&&(n=p)}})),t==e&&(t=0),i==-e&&(i=0),r==e&&(r=0),n==-e&&(n=0),s.left=t-l,s.top=r-h,s.right=i+u,s.bottom=n+c;const d=this.get("minWidth");p.isNumber(d)&&d>0&&s.right-s.left<d&&(s.right>=d?s.left=s.right-d:s.right=s.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&s.bottom-s.top<g&&(s.bottom>=g?s.top=s.bottom-g:s.bottom=s.top+g)}this._contentWidth=s.right-s.left,this._contentHeight=s.bottom-s.top,p.isNumber(e)&&(s.left=0,s.right=e),p.isNumber(i)&&(s.left=0,s.right=i),p.isNumber(t)&&(s.top=0,s.bottom=t),p.isNumber(r)&&(s.top=0,s.bottom=r),this._localBounds=s}}_updateBounds(){const e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){const e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let i=this.get("layout"),r=!1,n=!1;i&&((i instanceof h.G||i instanceof c.M)&&(r=!0),i instanceof u.Z&&(n=!0)),s.each(this._percentageSizeChildren,(i=>{if(!r){let t=i.get("width");t instanceof a.gG&&i.setPrivate("width",t.value*e)}if(!n){let e=i.get("height");e instanceof a.gG&&i.setPrivate("height",e.value*t)}})),s.each(this._percentagePositionChildren,(e=>{e.markDirtyPosition(),e.markDirtyBounds()})),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}_updateHTMLContent(){const e=this.get("html","");e&&""!==e?this._root._setHTMLContent(this,(0,d.q)(this,e)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(e){const t=this.get("verticalScrollbar");if(t){let i=e.y(),r=this.innerHeight(),s=e.height(),n=this._contentHeight,a=1-(r-s/2)/n;if(i+.7*s+this._childrenDisplay.y>r||i-.3*s+this._childrenDisplay.y<0){let e=Math.max(0,Math.min(a,(i-s/2)/n));t.animate({key:"start",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")})}}}_updateChildren(){if(this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const e=this.get("verticalScrollbar");if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",l.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(t=>{const i=t.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let r=i.deltaY/5e3;const s=e.get("start",0),n=e.get("end",1);s+r<=0&&(r=-s),n+r>=1&&(r=1-n),s+r>=0&&n+r<=1&&(e.set("start",s+r),e.set("end",n+r))})),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",(()=>{let t=this._contentHeight;const i=this._childrenDisplay,r=this._contentMask;i.y=-e.get("start",0)*t,i.markDirtyLayer(),r&&(r._display.y=-i.y,i.mask=r._display)})),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{const e=this._prevSettings.verticalScrollbar;e&&(this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const e=this._prevSettings.background;e&&this._display.removeChild(e._display);const t=this.get("background");t instanceof o.j&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){const e=this.get("mask"),t=this._prevSettings.mask;if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){const t=e.parent;t&&t.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((e=>{e._processTemplateField()}))}walkChildren(e){this.children.each((t=>{t instanceof f&&t.walkChildren(e),e(t)}))}eachChildren(e){const t=this.get("background");t&&e(t);const i=this.get("verticalScrollbar");i&&e(i);const r=this.get("mask");r&&e(r),this.children.values.forEach((t=>{e(t)}))}allChildren(){const e=[];return this.eachChildren((t=>{e.push(t)})),e}_setDataItem(e){const t=e!==this._dataItem;super._setDataItem(e);const i=this.get("html","");i&&""!==i&&t&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}Object.defineProperty(f,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"}),Object.defineProperty(f,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:o.j.classNames.concat([f.className])})},6691:function(e,t,i){"use strict";i.d(t,{Y:function(){return d}});var r=i(962),s=i(8777),n=i(3497),a=i(6245),o=i(1112),l=i(7449),h=i(7652),u=i(5040),c=i(5071);class d extends r._{constructor(){super(...arguments),Object.defineProperty(this,"_editOnEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew();const e=this.children.push(s.W.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide(),this.setPrivate("input",e);let t=this.get("background");t?t.set("themeTags",["editablelabel","background"]):t=this.set("background",n.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const e=this.get("editOn","click");"none"!=e&&(this._editOnEvents=new l.FV([this.getPrivate("input").events.on(e,(e=>{})),this.events.on(e,(e=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const e=this.get("active",!1);e?this._startEditing():this._stopEditing();const t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){const t=e.getPrivate("htmlElement").querySelector(".am5-editable-label");t&&(this.setPrivate("textarea",t),t.addEventListener("input",(e=>{!1===this.get("multiLine")&&(t.value=t.value.replace(/\n/g," ")),this.set("text",t.value),this._syncStyle()})),t.addEventListener("blur",(e=>this.set("active",!1))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(e=>{"Escape"==h.getEventKey(e)&&this.set("active",!1)}))),this._disposers.push(h.addEventListener(document,"keydown",(e=>{"Enter"==h.getEventKey(e)&&!1===this.get("multiLine")&&(e.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(""==this.get("text","")&&this.set("text"," "),e.show(0),this.setTimeout((()=>{this._syncStyle(),t.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){const e=this.getPrivate("input"),t=this.getPrivate("textarea");if(t){const i=e.getPrivate("htmlElement"),r=window.getComputedStyle(t);c.each(r,(e=>{t.style[e]="initial"})),t.style.color=this.get("fill",(0,o.$_)(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?t.style.maxWidth=s+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");const n=this.get("lineHeight");n?n instanceof a.gG?t.style.lineHeight=n.value+"":u.isNumber(n)&&(t.style.lineHeight=n+""):t.style.lineHeight="1.2";let l=this.get("fontFamily");l||(l=getComputedStyle(e.getPrivate("htmlElement"),"font-family").getPropertyValue("font-family")),t.style.fontFamily=l;let h=this.get("fontSize");h?u.isNumber(h)&&(h+="px"):h=getComputedStyle(e.getPrivate("htmlElement"),"font-size").getPropertyValue("font-size"),t.style.fontSize=h;let d=this.get("fontWeight");d||(d=getComputedStyle(e.getPrivate("htmlElement"),"font-weight").getPropertyValue("font-weight")),t.style.fontWeight=d;let p=this.get("fontStyle");p||(p=getComputedStyle(e.getPrivate("htmlElement"),"font-style").getPropertyValue("font-style")),t.style.fontStyle=p;const g=this.get("oversizedBehavior");t.style.whiteSpace="wrap"==g?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==t.style.minWidth&&(t.style.minWidth=t.scrollWidth+20+"px");const e=this.get("textAlign","start");"center"==e?(t.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==e?(t.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):t.style.textAlign=e}))}}_syncText(){const e=this.getPrivate("textarea");let t=this.get("text","");" "==t&&(t=""),e&&(e.value=t)}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"EditableLabel"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r._.classNames.concat([d.className])})},2433:function(e,t,i){"use strict";i.d(t,{P:function(){return s}});var r=i(1479);class s extends r.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Ellipse"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([s.className])})},1479:function(e,t,i){"use strict";i.d(t,{T:function(){return h},u:function(){return l}});var r=i(4429),s=i(4596),n=i(4680),a=i(5040),o=i(5071);const l=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class h extends s.j{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const e=this.get("fillGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(t.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(t.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");a.isNumber(e)&&(e=e<.5?[0]:[e]),this._display.setLineDash(e);const t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);const i=this.get("blendMode",n.b.NORMAL);this._display.blendMode=i;const r=this.get("draw");r&&"function"==typeof r&&r(this._display,this);const s=this.get("svgPath");null!=s&&this._display.svgPath(s)}}_afterChanged(){if(super._afterChanged(),this._clear){const e=this.get("fill"),t=this.get("fillGradient"),i=this.get("fillPattern"),s=this.get("fillOpacity"),n=this.get("stroke"),a=this.get("strokeGradient"),l=this.get("strokePattern"),h=this.get("shadowColor"),u=this.get("shadowBlur"),c=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(h&&(u||c||d)&&this._display.shadow(h,u,c,d,p),e&&!t&&(this._display.beginFill(e,s),this._display.endFill()),t){if(e){const i=t.get("stops",[]);i.length&&o.each(i,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}const i=t.getFill(this);i&&(this._display.beginFill(i,s),this._display.endFill())}if(i){const e=i.pattern;e&&(this._display.beginFill(e,s),this._display.endFill(),i instanceof r.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(n||a||l){const e=this.get("strokeOpacity");let t=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(t/=this.get("scale",1)),this.get("crisp")&&(t/=this._root._renderer.resolution);const i=this.get("lineJoin"),s=this.get("lineCap");if(n&&!a&&(this._display.lineStyle(t,n,e,i,s),this._display.endStroke()),a){const r=a.get("stops",[]);r.length&&o.each(r,(t=>{t.color&&!t.colorInherited||!n||(t.color=n,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=e,t.opacityInherited=!0)}));const l=a.getFill(this);l&&(this._display.lineStyle(t,l,e,i,s),this._display.endStroke())}if(l){let n=l.pattern;n&&(this._display.lineStyle(t,n,e,i,s),this._display.endStroke(),l instanceof r.v&&l.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.j.classNames.concat([h.className])})},6881:function(e,t,i){"use strict";i.d(t,{M:function(){return a}});var r=i(2010),s=i(5071),n=i(751);class a extends r.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),i=e.get("paddingRight",0),s=e.get("paddingTop",0),a=e.maxWidth()-t-i,o=a,l=1;(0,r.j)(e,(e=>{if(e.get("visible")&&e.getPrivate("visible")&&!e.get("forceHidden")&&"absolute"!=e.get("position")){let t=e.width();t<o&&(o=t),t>l&&(l=t)}})),o=n.fitToRange(o,1,a),l=n.fitToRange(l,1,a);let h=1;h=this.get("fixedWidthGrid")?a/l:a/o,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let u=this.getColumnWidths(e,h,l,a),c=s,d=0,p=0;h=u.length;let g=t;(0,r.j)(e,(e=>{if("relative"==e.get("position")&&e.isVisible()){const i=e.get("marginTop",0),r=e.get("marginBottom",0);let s=e.adjustedLocalBounds(),n=e.get("marginLeft",0),a=e.get("marginRight",0),o=g+n-s.left,l=c+i-s.top;e.setPrivate("x",o),e.setPrivate("y",l),g+=u[d]+a,p=Math.max(p,e.height()+i+r),d++,d>=h&&(d=0,g=t,c+=p,p=0)}}))}getColumnWidths(e,t,i,n){let a=0,o=[],l=0;return(0,r.j)(e,(r=>{let s=r.adjustedLocalBounds();"absolute"!=r.get("position")&&r.isVisible()&&(this.get("fixedWidthGrid")?o[l]=i:o[l]=Math.max(0|o[l],s.right-s.left+r.get("marginLeft",0)+r.get("marginRight",0)),l<e.children.length-1&&(l++,l==t&&(l=0)))})),s.each(o,(e=>{a+=e})),a>n?t>2?(t-=1,this.getColumnWidths(e,t,i,n)):[n]:o}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.A.classNames.concat([a.className])})},4431:function(e,t,i){"use strict";i.d(t,{G:function(){return a}});var r=i(2010),s=i(5040),n=i(6245);class a extends r.A{updateContainer(e){let t=e.get("paddingLeft",0),i=e.innerWidth(),a=0;(0,r.j)(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof n.gG){a+=t.value;let r=i*t.value,s=e.get("minWidth",e.getPrivate("minWidth",-1/0));s>r&&(i-=s,a-=t.value);let n=e.get("maxWidth",e.getPrivate("maxWidth",1/0));r>n&&(i-=n,a-=t.value)}else s.isNumber(t)||(t=e.width()),i-=t+e.get("marginLeft",0)+e.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,r.j)(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof n.gG){let r=i*t.value/a-e.get("marginLeft",0)-e.get("marginRight",0),s=e.get("minWidth",e.getPrivate("minWidth",-1/0)),n=e.get("maxWidth",e.getPrivate("maxWidth",1/0));r=Math.min(Math.max(s,r),n),e.setPrivate("width",r)}else e._prevSettings.width instanceof n.gG&&e.setPrivate("width",void 0)}}));let o=t;(0,r.j)(e,(e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginLeft",0),r=e.get("marginRight",0),s=e.get("maxWidth"),n=t.left,a=t.right;s&&a-n>s&&(a=n+s);let l=o+i-n;e.setPrivate("x",l),o=l+a+r}else e.setPrivate("x",void 0)}))}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.A.classNames.concat([a.className])})},962:function(e,t,i){"use strict";i.d(t,{_:function(){return l}});var r=i(2036),s=i(6245),n=i(8777),a=i(5071),o=i(5040);class l extends n.W{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),a.each(this._textKeys,(e=>{const t=this.get(e);null!=t&&this._text.set(e,t)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(r.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const e=this._text;if(a.each(this._textKeys,(e=>{this._text.set(e,this.get(e))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?e.set("text",""):(e.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const t=this.get("textAlign");let i;null!=this.get("width")?i="right"==t?s.AQ:"center"==t?s.CI:0:"left"==t||"start"==t?i=this.get("paddingLeft",0):"right"!=t&&"end"!=t||(i=-this.get("paddingRight",0)),e.set("x",i)}const t=this.get("background");t&&t.setPrivate("visible",e._display.textVisible)}_maybeUpdateHTMLColor(){const e=this.getPrivate("htmlElement");e&&this.get("fill")&&(e.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const e=this.get("rotation"),t=90==e||270==e||-90==e,i=this._text,r=this.get("maxWidth",this.getPrivate("maxWidth",1/0));o.isNumber(r)?i.set(t?"maxHeight":"maxWidth",r-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(t?"maxHeight":"maxWidth",void 0);const s=this.get("maxHeight",this.getPrivate("maxHeight",1/0));o.isNumber(s)?i.set(t?"maxWidth":"maxHeight",s-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(t?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text"),this._markDirtyKey("html");const t=this._text;t.get("populateText")&&t.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.W.classNames.concat([l.className])})},2010:function(e,t,i){"use strict";i.d(t,{A:function(){return n},j:function(){return s}});var r=i(6331);function s(e,t){e.get("reverseChildren",!1)?e.children.eachReverse(t):e.children.each(t)}class n extends r.JH{}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([n.className])})},3105:function(e,t,i){"use strict";i.d(t,{D:function(){return u}});var r=i(3399),s=i(8777),n=i(962),a=i(3497),o=i(5769),l=i(7144),h=i(7652);class u extends r.F{constructor(){super(...arguments),Object.defineProperty(this,"itemContainers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>s.W._new(this._root,{themeTags:h.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:h.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:a.c.new(this._root,{themeTags:h.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:h.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template]))))}),Object.defineProperty(this,"markers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>s.W._new(this._root,{themeTags:h.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template]))))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>n._._new(this._root,{themeTags:h.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template]))))}),Object.defineProperty(this,"valueLabels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>n._._new(this._root,{themeTags:h.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template]))))}),Object.defineProperty(this,"markerRectangles",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l.o(o.YS.new({}),(()=>a.c._new(this._root,{themeTags:h.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))})}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(e){const t=this.children.push(this.itemContainers.make());return t._setDataItem(e),this.itemContainers.push(t),t.states.create("disabled",{}),t}makeMarker(){const e=this.markers.make();return this.markers.push(e),e.states.create("disabled",{}),e}makeLabel(){const e=this.labels.make();return e.states.create("disabled",{}),e}makeValueLabel(){const e=this.valueLabels.make();return e.states.create("disabled",{}),e}makeMarkerRectangle(){const e=this.markerRectangles.make();return e.states.create("disabled",{}),e}processDataItem(e){super.processDataItem(e);const t=this.makeItemContainer(e),i=this.get("nameField"),r=this.get("fillField"),s=this.get("strokeField");if(t){const n=this.get("clickTarget","itemContainer"),a=e.dataContext;a&&a.set&&a.set("legendDataItem",e),t._setDataItem(e),e.set("itemContainer",t);const o=this.makeMarker();if(o){t.children.push(o),o._setDataItem(e),e.set("marker",o);const i=this.get("useDefaultMarker"),n=o.children.push(this.makeMarkerRectangle());let l=e.get("fill"),h=e.get("stroke");e.set("markerRectangle",n),a&&a.get&&(l=a.get(r,l),h=a.get(s,h)),h||(h=l),i?a.on&&(a.on(r,(()=>{n.set("fill",a.get(r))})),a.on(s,(()=>{n.set("stroke",a.get(s))}))):a&&a.createLegendMarker&&a.createLegendMarker(),n.setAll({fill:l,stroke:h});const u=a.component;u&&u.updateLegendMarker&&u.updateLegendMarker(a)}const l=this.makeLabel();if(l){t.children.push(l),l._setDataItem(e),e.set("label",l),l.text.on("text",(()=>{t.setRaw("ariaLabel",l.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),t.markDirtyAccessibility()})),a&&a.get&&e.set("name",a.get(i));let r=e.get("name");r&&l.set("text",r)}const h=this.makeValueLabel();if(h&&(t.children.push(h),h._setDataItem(e),e.set("valueLabel",h)),a&&a.show&&(a.on("visible",(e=>{t.set("disabled",!e)})),a.get("visible")||t.set("disabled",!0),"none"!=n)){let i=t;"marker"==n&&(i=o),this._addClickEvents(i,a,e)}this.children.values.sort(((e,t)=>{const i=e.dataItem.dataContext,r=t.dataItem.dataContext;if(i&&r){const e=this.data.indexOf(i),t=this.data.indexOf(r);if(e>t)return 1;if(e<t)return-1}return 0})),a&&a.updateLegendValue&&a.updateLegendValue()}}_addClickEvents(e,t,i){e.set("cursorOverStyle","pointer"),e.events.on("pointerover",(()=>{const e=t.component;e&&e.hoverDataItem&&e.hoverDataItem(t)})),e.events.on("pointerout",(()=>{const e=t.component;e&&e.hoverDataItem&&e.unhoverDataItem(t)})),e.events.on("click",(()=>{const r=i.get("label").text._getText();t.show&&t.isHidden&&(t.isHidden()||!1===t.get("visible"))?(t.show(),e.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,r))):t.hide&&(t.hide(),e.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,r)))}))}disposeDataItem(e){super.disposeDataItem(e);const t=e.dataContext;t&&t.get&&t.get("legendDataItem")==e&&t.set("legendDataItem",void 0);let i=e.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let r=e.get("marker");r&&(this.markers.removeValue(r),r.dispose());let s=e.get("markerRectangle");s&&(this.markerRectangles.removeValue(s),s.dispose());let n=e.get("label");n&&(this.labels.removeValue(n),n.dispose());let a=e.get("valueLabel");a&&(this.valueLabels.removeValue(a),a.dispose())}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Legend"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.F.classNames.concat([u.className])})},2077:function(e,t,i){"use strict";i.d(t,{x:function(){return a}});var r=i(1479);function s(e,t){for(let i=0,r=t.length;i<r;i++){const r=t[i];if(r.length>0){let t=r[0];if(t.length>0){let i=t[0];e.moveTo(i.x,i.y);for(let t=0,i=r.length;t<i;t++)n(e,r[t])}}}}function n(e,t){for(let i=0,r=t.length;i<r;i++){const r=t[i];e.lineTo(r.x,r.y)}}class a extends r.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),s(this._display,[[e]])}else if(t)s(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([a.className])})},8289:function(e,t,i){"use strict";i.d(t,{G:function(){return s}});class r{constructor(e,t){Object.defineProperty(this,"_line",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_point",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_x1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_t0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tension",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._context=e,this._tension=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:l(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){let i=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,l(this,o(this,i=a(this,e,t)),i);break;default:l(this,this._t0,i=a(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=i}}}function s(e){return function(t){return new r(t,e)}}function n(e){return e<0?-1:1}function a(e,t,i){let r=e._x1-e._x0,s=t-e._x1,a=(e._y1-e._y0)/(r||s<0&&-0),o=(i-e._y1)/(s||r<0&&-0),l=(a*s+o*r)/(r+s);return(n(a)+n(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function o(e,t){let i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-t)/2:t}function l(e,t,i){let r=e._x0,s=e._y0,n=e._x1,a=e._y1,o=(n-r)/1.5*(1-e._tension);e._context.bezierCurveTo(r+o,s+o*t,n-o,a-o*i,n,a)}},5892:function(e,t,i){"use strict";i.d(t,{$:function(){return s}});class r{constructor(e,t){Object.defineProperty(this,"_line",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_point",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_x1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_t0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tension",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._context=e,this._tension=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:l(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){[e,t]=[t,e];let i=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,l(this,o(this,i=a(this,e,t)),i);break;default:l(this,this._t0,i=a(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=i}}}function s(e){function t(t){return new r(t,e)}return t.tension=function(e){return s(+e)},t}function n(e){return e<0?-1:1}function a(e,t,i){let r=e._x1-e._x0,s=t-e._x1,a=(e._y1-e._y0)/(r||s<0&&-0),o=(i-e._y1)/(s||r<0&&-0),l=(a*s+o*r)/(r+s);return(n(a)+n(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function o(e,t){let i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-t)/2:t}function l(e,t,i){let r=e._x0,s=e._y0,n=e._x1,a=e._y1,o=(n-r)/1.5*(1-e._tension);e._context.bezierCurveTo(s+o*t,r+o,a-o*i,n-o,a,n)}},5021:function(e,t,i){"use strict";i.d(t,{t:function(){return n}});var r=i(4596),s=i(5040);class n extends r.j{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makePicture(void 0)})}_changed(){if(super._changed(),this.isDirty("width")){const e=this.get("width");this._display.width=s.isNumber(e)?e:void 0}if(this.isDirty("height")){const e=this.get("height");this._display.height=s.isNumber(e)?e:void 0}if(this.isDirty("shadowColor")){this._display.clear();const e=this.get("shadowColor");this._display.shadowColor=null==e?void 0:e}this.isDirty("shadowBlur")&&(this._display.clear(),this._display.shadowBlur=this.get("shadowBlur")),this.isDirty("shadowOffsetX")&&(this._display.clear(),this._display.shadowOffsetX=this.get("shadowOffsetX")),this.isDirty("shadowOffsetY")&&(this._display.clear(),this._display.shadowOffsetY=this.get("shadowOffsetY")),this.isDirty("shadowOpacity")&&(this._display.clear(),this._display.shadowOpacity=this.get("shadowOpacity")),(this.isDirty("src")||this.isDirty("cors"))&&(this._display.clear(),this._load())}_load(){const e=this.get("src");if(e){const t=new Image;t.crossOrigin=this.get("cors","anonymous"),t.src=e;const i=this.events;t.decode().then((()=>{this._display.image=t,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((e=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const e=this._display.image;if(e){let t=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const r=e.width&&e.height?e.width/e.height:0;s.isNumber(t)&&s.isNumber(i)?(this._display.width=t,this._display.height=i):s.isNumber(t)&&r?i=t/r:s.isNumber(i)&&r?t=i*r:(t=e.width,i=e.height),s.isNumber(t)&&(this._display.width=t),s.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Picture"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.j.classNames.concat([n.className])})},8931:function(e,t,i){"use strict";i.d(t,{i:function(){return n}});var r=i(1479),s=i(751);class n extends r.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let i=this.get("cornerRadius",8);i=s.fitToRange(i,0,Math.min(e/2,t/2));let r=this.get("pointerX",0),n=this.get("pointerY",0),a=this.get("pointerBaseWidth",15)/2,o=0,l=0,h=0,u=(r-o)*(t-l)-(n-l)*(e-o),c=(r-h)*(0-t)-(n-t)*(e-h);const d=this._display;if(d.moveTo(i,0),u>0&&c>0){let t=Math.round(s.fitToRange(r,i+a,e-a-i));n=s.fitToRange(n,-1/0,0),d.lineTo(t-a,0),d.lineTo(r,n),d.lineTo(t+a,0)}if(d.lineTo(e-i,0),d.arcTo(e,0,e,i,i),u>0&&c<0){let o=Math.round(s.fitToRange(n,i+a,t-a-i));r=s.fitToRange(r,e,1/0),d.lineTo(e,i),d.lineTo(e,Math.max(o-a,i)),d.lineTo(r,n),d.lineTo(e,o+a)}if(d.lineTo(e,t-i),d.arcTo(e,t,e-i,t,i),u<0&&c<0){let o=Math.round(s.fitToRange(r,i+a,e-a-i));n=s.fitToRange(n,t,1/0),d.lineTo(e-i,t),d.lineTo(o+a,t),d.lineTo(r,n),d.lineTo(o-a,t)}if(d.lineTo(i,t),d.arcTo(0,t,0,t-i,i),u<0&&c>0){let e=Math.round(s.fitToRange(n,i+a,t-i-a));r=s.fitToRange(r,-1/0,0),d.lineTo(0,t-i),d.lineTo(0,e+a),d.lineTo(r,n),d.lineTo(0,Math.max(e-a,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PointedRectangle"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([n.className])})},7770:function(e,t,i){"use strict";i.d(t,{m:function(){return n}});var r=i(1479),s=i(5071);class n extends r.T{constructor(){super(...arguments),Object.defineProperty(this,"morphAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const e=[],t=this.get("coordinates");t&&s.each(t,(t=>{e.push({x:t[0],y:t[1]})})),this.set("points",e)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const e=this.get("points"),t=this._prevSettings.points;if(t){if(e){let i=s.copy(e),r=s.copy(t),n=i.length,a=r.length;if(n>a){let e=s.copy(i);for(let t=0;t<n;t++){let i=Math.floor(t/n*a);e[t]={x:r[i].x,y:r[i].y}}r=e}else if(a>n){let e=s.copy(r);for(let t=0;t<a;t++){let r=Math.floor(t/a*n);e[t]={x:i[r].x,y:i[r].y}}i=e}this.setPrivateRaw("previousPoints",r),this.setPrivateRaw("points",i),this.morphAnimation=this.animatePrivate({key:"morphProgress",from:0,to:1,duration:this.get("animationDuration",0),easing:this.get("animationEasing")}),this._root.events.once("frameended",(()=>{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",e),this.setPrivateRaw("points",e);let i=1/0,r=-1/0,n=1/0,a=-1/0;if(e)for(let t=1,s=e.length;t<s;t++){const s=e[t];i=Math.min(i,s.x),r=Math.max(r,s.x),n=Math.min(n,s.y),a=Math.max(a,s.y)}this.setPrivate("minX",i),this.setPrivate("maxX",r),this.setPrivate("minY",n),this.setPrivate("maxY",n)}this.isPrivateDirty("morphProgress")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._draw()}_draw(){const e=this.getPrivate("previousPoints"),t=this.getPrivate("points"),i=this.getPrivate("morphProgress",1);if(t&&e){const r=t[0],s=e[0];r&&this._display.moveTo(s.x+(r.x-s.x)*i,s.y+(r.y-s.y)*i);for(let r=1,s=t.length;r<s;r++){const s=t[r],n=e[r];this._display.lineTo(n.x+(s.x-n.x)*i,n.y+(s.y-n.y)*i)}this._display.closePath()}}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Polygon"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([n.className])})},815:function(e,t,i){"use strict";i.d(t,{x:function(){return l}});var r=i(6245),s=i(962),n=i(4244),a=i(751),o=i(7652);class l extends s._{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(n.f.new(this._root,{}))}baseRadius(){const e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return t+o.relativeToValue(i,e-t)}radius(){const e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const e=this.get("textType","adjusted"),t=this.get("inside",!1),i=this.get("orientation");let s=a.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",t);const n=a.sin(s),o=a.cos(s);let l=this.baseRadius(),h=this.radius();if(this._display.angle=0,"circular"==e)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",h);else{0==l&&(s=0,h=0);let t=h*o,a=h*n;"radial"==e?(this.setRaw("x",t),this.setRaw("y",a),s<90||s>270||"auto"!=i?(this._display.angle=s,this._flipped=!1):(this._display.angle=s+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==e?(this.setRaw("centerX",r.CI),this.setRaw("centerY",r.CI),this.setRaw("x",t),this.setRaw("y",a)):"regular"==e&&(this.setRaw("x",t),this.setRaw("y",a))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const e=this.get("textType","regular"),t=this.get("inside",!1);let i=0,s=0,n=this.get("labelAngle",0),o=this.localBounds(),l=o.right-o.left,h=o.bottom-o.top;if("radial"==e){if(this._flipped){let e=this.get("centerX");e instanceof r.gG&&(l*=1-2*e.value),i=l*a.cos(n),s=l*a.sin(n)}}else t||"adjusted"!=e||(i=l/2*a.cos(n),s=h/2*a.sin(n));this.setRaw("dx",i),this.setRaw("dy",s),super._updatePosition()}get text(){return this._text}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s._.classNames.concat([l.className])})},4244:function(e,t,i){"use strict";i.d(t,{f:function(){return n}});var r=i(2036),s=i(751);class n extends r.x{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*s.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.x.classNames.concat([n.className])})},7142:function(e,t,i){"use strict";i.d(t,{A:function(){return s}});var r=i(1479);class s extends r.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let e=this.width(),t=this.height(),i=0,r=0,s=e/Math.abs(e),n=t/Math.abs(t);if(this.get("containStroke",!1)){const a=this.get("strokeWidth",0);e-=a*s,t-=a*n,i+=a/2*s,r+=a/2*n}this._display.drawRect(i,r,e,t)}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([s.className])})},3497:function(e,t,i){"use strict";i.d(t,{c:function(){return o}});var r=i(5040),s=i(751),n=i(7652),a=i(7142);class o extends a.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e/Math.abs(e),a=t/Math.abs(t),o=0,l=0;const h=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=i*h,t-=a*h,o+=i*h/2,l+=a*h/2);let u=e,c=t;if(r.isNumber(u)&&r.isNumber(c)){let e=Math.min(u,c)/2,t=n.relativeToValue(this.get("cornerRadiusTL",8),e),r=n.relativeToValue(this.get("cornerRadiusTR",8),e),h=n.relativeToValue(this.get("cornerRadiusBR",8),e),d=n.relativeToValue(this.get("cornerRadiusBL",8),e),p=Math.min(Math.abs(u/2),Math.abs(c/2));t=s.fitToRange(t,0,p),r=s.fitToRange(r,0,p),h=s.fitToRange(h,0,p),d=s.fitToRange(d,0,p);const g=this._display;g.moveTo(o+t*i,l),g.lineTo(o+u-r*i,l),r>0&&g.arcTo(o+u,l,o+u,l+r*a,r),g.lineTo(o+u,l+c-h*a),h>0&&g.arcTo(o+u,l+c,o+u-h*i,l+c,h),g.lineTo(o+d*i,l+c),d>0&&g.arcTo(o,l+c,o,l+c-d*a,d),g.lineTo(o,l+t*a),t>0&&g.arcTo(o,l,o+t*i,l,t),g.closePath()}}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.A.classNames.concat([o.className])})},6001:function(e,t,i){"use strict";i.d(t,{L:function(){return h}});var r=i(3497),s=i(8777),n=i(1479),a=i(8054),o=i(5040),l=i(7652);class h extends s.W{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:this._makeThumb()}),Object.defineProperty(this,"startGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"endGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"_thumbBusy",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_startDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_endDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_thumbDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_gripDown",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_addOrientationClass(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=r.c.new(this._root,{themeTags:l.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(a.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:n.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(r.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const e=this.startGrip,t=this.endGrip,i=this.thumb,r=this.get("background");r&&this._disposers.push(r.events.on("click",(e=>{this.setPrivateRaw("isBusy",!0);const t=this._display.toLocal(e.point),r=this.width(),s=this.height(),n=this.get("orientation");let a,o,l;a="vertical"==n?(t.y-i.height()/2)/s:(t.x-i.width()/2)/r,"vertical"==n?(o=a*s,l="y"):(o=a*r,l="x");const h=this.get("animationDuration",0);h>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:l,to:o,duration:h,easing:this.get("animationEasing")}))):(this.thumb.set(l,o),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(e=>{if(!l.isLocalEvent(e.originalEvent,this))return;const t=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:t,easing:i}),this.animate({key:"end",to:1,duration:t,easing:i})}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(e.set("x",0),t.set("x",0),this._disposers.push(i.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(e=>this.width()/2))),this._disposers.push(e.adapters.add("x",(e=>this.width()/2))),this._disposers.push(t.adapters.add("x",(e=>this.width()/2))),this._disposers.push(e.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()),0)))),this._disposers.push(t.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()),0))))):(e.set("y",0),t.set("y",0),this._disposers.push(i.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(e=>this.height()/2))),this._disposers.push(e.adapters.add("y",(e=>this.height()/2))),this._disposers.push(t.adapters.add("y",(e=>this.height()/2))),this._disposers.push(e.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()),0)))),this._disposers.push(t.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){const e=this.startGrip,t=this.endGrip,i=this.get("orientation"),r=this.height(),s=this.width();"vertical"==i?(e.set("y",r*this.get("start",0)),t.set("y",r*this.get("end",1))):(e.set("x",s*this.get("start",0)),t.set("x",s*this.get("end",1)));const n=this.getPrivate("positionTextFunction"),a=Math.round(100*this.get("start",0)),o=Math.round(100*this.get("end",0));let l,h;n?(l=n.call(this,this.get("start",0)),h=n.call(this,this.get("end",0))):(l=a+"%",h=o+"%"),e.set("ariaLabel",this._t("From %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){const e=this.thumb,t=this.startGrip,i=this.endGrip,r=this.height(),s=this.width();let n=t.x(),a=i.x(),l=t.y(),h=i.y(),u=0,c=1;"vertical"==this.get("orientation")?o.isNumber(l)&&o.isNumber(h)&&(this._thumbBusy||e.isDragging()||(e.set("height",h-l),e.set("y",l)),u=l/r,c=h/r):o.isNumber(n)&&o.isNumber(a)&&(this._thumbBusy||e.isDragging()||(e.set("width",a-n),e.set("x",n)),u=n/s,c=a/s),!this.getPrivate("isBusy")||this.get("start")==u&&this.get("end")==c||(this.set("start",u),this.set("end",c));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,m;d?(f=d.call(this,this.get("start",0)),m=d.call(this,this.get("end",0))):(f=p+"%",m=g+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,f,m)),e.set("ariaValueNow",""+p),e.set("ariaValueText",p+"%")}_updateGripsByThumb(){const e=this.thumb,t=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const r=e.height();t.set("y",e.y()),i.set("y",e.y()+r)}else{const r=e.width();t.set("x",e.x()),i.set("x",e.x()+r)}}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Scrollbar"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.W.classNames.concat([h.className])})},5829:function(e,t,i){"use strict";i.d(t,{j:function(){return l}});var r=i(1337),s=i(8777),n=i(7144),a=i(6245),o=i(5071);class l extends r.k{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:s.W.new(this._root,{width:a.AQ,height:a.AQ,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new n.dn})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((t=>{if("clear"===t.type){o.each(t.oldValues,(e=>{this._removeSeries(e)}));const e=this.get("colors");e&&e.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else if("moveIndex"===t.type)e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else{if("swap"!==t.type)throw new Error("Unknown IListEvent type");{const i=t.a,r=t.b,s=this.series.indexOf(i),n=this.series.indexOf(r);e.moveValue(i,n),e.moveValue(r,s),this.series.each((e=>{this._processSeries(e),e.markDirtyValues()}))}}})))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.k.classNames.concat([l.className])})},3399:function(e,t,i){"use strict";i.d(t,{F:function(){return g}});var r=i(7582),s=i(9361),n=i(7144),a=i(1112),o=i(6490),l=i(6245),h=i(8777),u=i(962),c=i(5071),d=i(5040),p=i(1926);class g extends s.w{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseSeriesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new n.aV}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:h.W.new(this._root,{width:l.AQ,height:l.AQ,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){c.each(e,(e=>{const t=e.bullets;t&&(c.each(t,(e=>{e.dispose()})),e.bullets=void 0)})),this.markDirtyValues()}getDataItemById(e){return c.find(this.dataItems,(t=>t.get("id")==e))}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each((t=>{this._makeBullet(e,t)})))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,i){const r=t(this._root,this,e);return r&&(r._index=i,this._makeBulletReal(e,r)),r}_makeBulletReal(e,t){let i=t.get("sprite");i&&(i._setDataItem(e),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let i=e;i<t;i++){let e=this.dataItems[i];e.bullets||this._makeBullets(e)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");const r={},s={},n={},a={},o={},l={},h={},u={},d={};c.each(i,(e=>{r[e]=0,s[e]=0,n[e]=0})),c.each(i,(i=>{let c=i+"Change",p=i+"ChangePercent",g=i+"ChangePrevious",f=i+"ChangePreviousPercent",m=i+"ChangeSelection",b=i+"ChangeSelectionPercent",_="valueY";"valueX"!=i&&"openValueX"!=i&&"lowValueX"!=i&&"highValueX"!=i||(_="valueX");const v=this.getPrivate("baseValueSeries"),y=this.getPrivate("adjustedStartIndex",e);for(let w=y;w<t;w++){const t=this.dataItems[w];if(t){let y=t.get(i);null!=y&&(n[i]++,r[i]+=y,s[i]+=Math.abs(y),u[i]=r[i]/n[i],(a[i]>y||null==a[i])&&(a[i]=y),(o[i]<y||null==o[i])&&(o[i]=y),h[i]=y,null==l[i]&&(l[i]=y,d[i]=y,v&&(l[_]=v._getBase(_))),0===e&&(t.setRaw(c,y-l[_]),t.setRaw(p,(y-l[_])/l[_]*100)),t.setRaw(g,y-d[_]),t.setRaw(f,(y-d[_])/d[_]*100),t.setRaw(m,y-l[_]),t.setRaw(b,(y-l[_])/l[_]*100),d[i]=y)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(i);e.setRaw(g,t-d[_]),e.setRaw(f,(t-d[_])/d[_]*100),e.setRaw(m,t-l[_]),e.setRaw(b,(t-l[_])/l[_]*100)}}e>0&&e--,delete d[i];for(let t=e;t<y;t++){const e=this.dataItems[t];if(e){let t=e.get(i);null==d[i]&&(d[i]=t),null!=t&&(e.setRaw(g,t-d[_]),e.setRaw(f,(t-d[_])/d[_]*100),e.setRaw(m,t-l[_]),e.setRaw(b,(t-l[_])/l[_]*100),d[i]=t)}}})),c.each(i,(e=>{this.setPrivate(e+"AverageSelection",u[e]),this.setPrivate(e+"CountSelection",n[e]),this.setPrivate(e+"SumSelection",r[e]),this.setPrivate(e+"AbsoluteSumSelection",s[e]),this.setPrivate(e+"LowSelection",a[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",l[e]),this.setPrivate(e+"CloseSelection",h[e])})),0===e&&t===this.dataItems.length&&c.each(i,(e=>{this.setPrivate(e+"Average",u[e]),this.setPrivate(e+"Count",n[e]),this.setPrivate(e+"Sum",r[e]),this.setPrivate(e+"AbsoluteSum",s[e]),this.setPrivate(e+"Low",a[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",l[e]),this.setPrivate(e+"Close",h[e])}))}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&c.each(e,(e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,i=e.maxValue||this.getPrivate(e.dataField+"High")||0;c.each(e.target._entities,(r=>{const s=r.dataItem.get(e.dataField);if(!d.isNumber(s)){e.neutral&&r.set(e.key,e.neutral);const t=r.states;if(t){const i=t.lookup("default");i&&e.neutral&&i.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,r,t,i,s);else{let n,h;n=e.logarithmic?(Math.log(s)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E):(s-t)/(i-t),!d.isNumber(s)||d.isNumber(n)&&Math.abs(n)!=1/0||(n=.5),d.isNumber(e.min)?h=e.min+(e.max-e.min)*n:e.min instanceof a.Il?h=a.Il.interpolate(n,e.min,e.max):e.min instanceof l.gG&&(h=(0,o.Wn)(n,e.min,e.max)),r.set(e.key,h);const u=r.states;if(u){const t=u.lookup("default");t&&t.set(e.key,h)}}}))})),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),i=this.endIndex();i<e&&i++,t>0&&t--;for(let e=0;e<t;e++)this._hideBullets(this.dataItems[e]);for(let e=t;e<i;e++)this._positionBullets(this.dataItems[e]);for(let t=i;t<e;t++)this._hideBullets(this.dataItems[t])}}_positionBullets(e){e.bullets&&c.each(e.bullets,(e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof h.W&&t.walkChildren((e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof u._&&e.text.markDirtyText()}))),t instanceof u._&&t.get("populateText")&&t.text.markDirtyText()}))}_hideBullets(e){e.bullets&&c.each(e.bullets,(e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)}))}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&(c.each(t,(e=>{e.dispose()})),e.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.showDataItem.call(this,e,t)],s=e.bullets;s&&c.each(s,(e=>{const i=e.get("sprite");i&&r.push(i.show(t))})),yield Promise.all(r)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,r.mG)(this,void 0,void 0,(function*(){const r=[i.hideDataItem.call(this,e,t)],s=e.bullets;s&&c.each(s,(e=>{const i=e.get("sprite");i&&r.push(i.hide(t))})),yield Promise.all(r)}))}_sequencedShowHide(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(t)||(t=this.get("interpolationDuration",0)),t>0){const i=this.startIndex(),s=this.endIndex();yield Promise.all(c.map(this.dataItems,((n,a)=>(0,r.mG)(this,void 0,void 0,(function*(){let r=t||0;(a<i-10||a>s+10)&&(r=0);let o=this.get("sequencedDelay",0)+r/(s-i);yield p.sleep(o*(a-i)),e?yield this.showDataItem(n,r):yield this.hideDataItem(n,r)})))))}else yield Promise.all(c.map(this.dataItems,(t=>e?this.showDataItem(t,0):this.hideDataItem(t,0))))}))}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const i=t.get("valueLabel");if(i){const t=i.text;let r="";i._setDataItem(e),r=this.get("legendValueText",t.get("text","")),i.set("text",r),t.markDirtyText()}const r=t.get("label");if(r){const t=r.text;let i="";r._setDataItem(e),i=this.get("legendLabelText",t.get("text","")),r.set("text",i),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}Object.defineProperty(g,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(g,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.w.classNames.concat([g.className])})},5863:function(e,t,i){"use strict";i.d(t,{p:function(){return l}});var r=i(1479),s=i(5040),n=i(6245),a=i(832),o=i(751);class l extends r.T{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:(0,a.Z)()})}_getTooltipPoint(){let e=this.get("tooltipX"),t=this.get("tooltipY"),i=0,r=0;s.isNumber(e)&&(i=e),s.isNumber(t)&&(r=t);let a=this.get("radius",0),o=this.get("innerRadius",0);return a+=this.get("dRadius",0),o+=this.get("dInnerRadius",0),o<0&&(o=a+o),e instanceof n.gG&&(i=this.ix*(o+(a-o)*e.value)),t instanceof n.gG&&(r=this.iy*(o+(a-o)*t.value)),this.get("arc")>=360&&0==o&&(i=0,r=0),{x:i,y:r}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("startAngle",0),t=this.get("arc",0);const i=this._generator;t<0&&(e+=t,t*=-1),t>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let r=this.get("radius",0),s=this.get("innerRadius",0);r+=this.get("dRadius",0),s+=this.get("dInnerRadius",0),s<0&&(s=r+s),i({innerRadius:s,outerRadius:r,startAngle:(e+90)*o.RADIANS,endAngle:(e+t+90)*o.RADIANS});let n=e+t/2;this.ix=o.cos(n),this.iy=o.sin(n);const a=this.get("shiftRadius",0);this.setRaw("dx",this.ix*a),this.setRaw("dy",this.iy*a),this.markDirtyPosition()}}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([l.className])})},4596:function(e,t,i){"use strict";i.d(t,{j:function(){return m}});var r=i(7582),s=i(6331),n=i(5769),a=i(6245),o=i(9770),l=i(7449),h=i(6490),u=i(7652),c=i(5071),d=i(5040),p=i(256),g=i(751);class f extends o.p{constructor(e){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[e];if(void 0===i){const r=this._sprite._display.on(e,(e=>{t.call(this,e)}));i=this._rendererDisposers[e]=new l.DM((()=>{delete this._rendererDisposers[e],r.dispose()}))}return i.increment()}_on(e,t,i,r,s,n){const a=super._on(e,t,i,r,s,n),o=f.RENDERER_EVENTS[t];return void 0!==o&&(a.disposer=new l.FV([a.disposer,this._onRenderer(t,o)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(e,t){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=i}}}Object.defineProperty(f,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(e){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",e))&&this.dispatch("click",this._makePointerEvent("click",e))},rightclick:function(e){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",e))},middleclick:function(e){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",e))},dblclick:function(e){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",e))},pointerover:function(e){const t=this._sprite;let i=!0;if(t.getPrivate("trustBounds")){t._getBounds();const r=t.globalBounds();if(t.isType("Graphics")){const e=t.get("strokeWidth",1)/2;e>=1&&(r.left-=e,r.right+=e,r.top-=e,r.bottom+=e)}g.inBounds(e.point,r)||(i=!1,t._root._renderer.removeHovering(t._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",e))},pointerout:function(e){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",e))},pointerdown:function(e){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",e))},pointerup:function(e){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",e))},globalpointerup:function(e){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",e))},globalpointermove:function(e){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",e))},wheel:function(e){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:e.event,point:e.point})}}});class m extends s.JH{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(e){this._markDirtyKey(e)}_markDirtyKey(e){super._markDirtyKey(e),"x"!=e&&"y"!=e&&"dx"!=e&&"dy"!=e||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),"x"!=e&&"y"!=e||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let e;const t=this.get("templateField");if(t){const i=this.dataItem;if(i){const r=i.dataContext;r&&(e=r[t],e instanceof n.YS||!e||(e=n.YS.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){const t=this._dataItem;this._dataItem=e,this._processTemplateField();const i="dataitemchanged";e!=t&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;for(;e;){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof a.gG||this.get("height")instanceof a.gG?c.pushOne(e._percentageSizeChildren,this):c.removeFirst(e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof a.gG||this.get("y")instanceof a.gG?c.pushOne(e._percentagePositionChildren,this):c.removeFirst(e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const e=this._localBounds;if(e){const t=this.get("centerX");null!=t&&(this._display.pivot.x=e.left+u.relativeToValue(t,e.right-e.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=e.top+u.relativeToValue(i,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0);const t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(e=>{this.showTooltip(e.point)}))),this._tooltipPointerDp=new l.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(e=>{this.showTooltip(e.point)}))})),this.events.on("pointerout",(()=>{const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}_changed(){super._changed();const e=this._display,t=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new l.FV([t.on("pointerdown",(e=>{this.dragStart(e)})),t.on("globalpointermove",(e=>{this.dragMove(e)})),t.on("globalpointerup",(e=>{this.dragStop(e)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const e=this.get("tooltipText"),i=this.get("tooltipHTML"),r=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(e||i)&&("click"==r?(this._tooltipDp=new l.FV([t.on("click",(()=>{this.setTimeout((()=>{const e=this.getTooltip();e&&!e.isHidden()&&e.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),u.addEventListener(document,"click",(e=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==r||(this._tooltipDp=new l.FV([t.on("pointerover",(()=>{this.showTooltip()})),t.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let e=this.get("toggleKey");e&&"none"!=e?this._toggleDp=t.on("click",(()=>{this._isDragging||this.set(e,!this.get(e))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?e.visible=!0:(e.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const e=this.parent;e&&(this.isDirty("width")&&this.get("width")instanceof a.gG||this.isDirty("height")&&this.get("height")instanceof a.gG)&&(e.markDirty(),e._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const t=this.get("wheelable");t&&this.set("interactive",!0),e.wheelable=!!t}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const e=this.get("blur",0);0!=e&&(i+=" blur("+e+"px)")}if(this.isDirty("saturate")){const e=this.get("saturate",1);1!=e&&(i+=" saturate("+e+")")}if(this.isDirty("brightness")){const e=this.get("brightness",1);1!=e&&(i+=" brightness("+e+")")}if(this.isDirty("contrast")){const e=this.get("contrast",1);1!=e&&(i+=" contrast("+e+")")}if(this.isDirty("sepia")){const e=this.get("sepia",0);0!=e&&(i+=" sepia("+e+")")}if(this.isDirty("hue")){const e=this.get("hue",0);0!=e&&(i+=" hue-rotate("+e+"deg)")}if(this.isDirty("invert")){const e=this.get("invert",0);0!=e&&(i+=" invert("+e+")")}if(i&&(e.filter=i),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new l.FV([t.on("focus",(()=>{this.showTooltip()})),t.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(t.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(t.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){const e=this.events;this.get("interactive")&&!e.isDisposed()?this._hoverDp=new l.FV([e.on("click",(e=>{u.isTouchEvent(e.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}),10))})),e.on("globalpointerup",(e=>{u.isTouchEvent(e.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})),this._isDown&&this._handleUp(e)})),e.on("pointerover",(()=>{this._handleOver()})),e.on("pointerout",(()=>{this._handleOut()})),e.on("pointerdown",(e=>{this._handleDown(e)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const t=u.getPointerId(e.originalEvent);delete this._downPoints[t],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(e){const t=u.getPointerId(e.originalEvent),i=this._downPoints[t];if(i){const t=Math.abs(i.x-e.point.x),r=Math.abs(i.y-e.point.y);return t>5||r>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(e){const t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;const t=u.getPointerId(e.originalEvent);this._downPoints[t]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let i=0,r=this.parent,s=1;for(;null!=r;)i+=r.get("rotation",0),r=r.parent,r&&(s*=r.get("scale",1));let n=(e.point.x-t.point.x)/s,a=(e.point.y-t.point.y)/s;const o=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let t=this._dragPoint;this.set("x",t.x+n*g.cos(i)+a*g.sin(i)),this.set("y",t.y+a*g.cos(i)-n*g.sin(i));const r="dragged";o.isEnabled(r)&&o.dispatch(r,{type:r,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(n,a)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;for(;;){if(!e)return t;++t,e=e.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const e=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();const t=this.parent;t&&"absolute"!=this.get("position")&&(null==t.get("width")||null==t.get("height")||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const e=this._adjustedLocalBounds;let t;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds):(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){const e="boundschanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(t)&&e.right-e.left<t&&(e.right=e.left+t),d.isNumber(i)&&e.bottom-e.top<i&&(e.bottom=e.top+i);let r=this.getPrivate("width"),s=this.getPrivate("height");d.isNumber(r)&&(r>0?e.right=e.left+r:e.left=e.right+r),d.isNumber(s)&&(s>0?e.bottom=e.top+s:e.top=e.bottom+s)}_removeParent(e){e&&(e.children.removeValue(this),c.removeFirst(e._percentageSizeChildren,this),c.removeFirst(e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._statesHandled=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(e){if(!this.isDisposed()){const t=this.getTooltip(),i=this.get("tooltipText"),r=this.get("tooltipHTML");if((i||r)&&t){const s=this.get("tooltipPosition"),n=this.getPrivate("tooltipTarget",this);if("fixed"!=s&&e||(this._display._setMatrix(),e=this.toGlobal(n._getTooltipPoint())),"pointer"==s){const t=this.getPrivate("lastTooltipCoords");if(t&&t.x==e.x&&t.y==e.y)return;this.setPrivate("lastTooltipCoords",e)}t.set("pointTo",e),t.set("tooltipTarget",n),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),i&&t.label.set("text",i),r&&t.label.set("html",r);const a=this.dataItem;if(a&&t.label._setDataItem(a),"always"==this.get("showTooltipOn")&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height()))return void this.hideTooltip();t.label.text.markDirtyText();const o=t.show();return this.setPrivateRaw("showingTooltip",!0),o}}}hideTooltip(){const e=this.getTooltip();if(e&&(this.removePrivate("lastTooltipCoords"),e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&0==e.get("stateAnimationDuration",0)?400:void 0;const i=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const e=this._localBounds;if(e){let t=0,i=0;return this.get("isMeasured")?(t=e.left+u.relativeToValue(this.get("tooltipX",0),e.right-e.left),i=e.top+u.relativeToValue(this.get("tooltipY",0),e.bottom-e.top)):(t=u.relativeToValue(this.get("tooltipX",0),this.width()),i=u.relativeToValue(this.get("tooltipY",0),this.height())),{x:t,y:i}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){const e=this.parent;let t=this.get("dx",0),i=this.get("dy",0),r=this.get("x"),s=this.getPrivate("x"),n=0,o=0;const l=this.get("position");r instanceof a.gG&&(r=e?e.innerWidth()*r.value+e.get("paddingLeft",0):0),d.isNumber(r)?n=r+t:null!=s?n=s:e&&"relative"==l&&(n=e.get("paddingLeft",0)+t);let h=this.get("y"),u=this.getPrivate("y");h instanceof a.gG&&(h=e?e.innerHeight()*h.value+e.get("paddingTop",0):0),d.isNumber(h)?o=h+i:null!=u?o=u:e&&"relative"==l&&(o=e.get("paddingTop",0)+i);const c=this._display;if(c.x!=n||c.y!=o){c.invalidateBounds(),c.x=n,c.y=o;const e="positionchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x");const i=this.parent;return i?e instanceof a.gG?u.relativeToValue(e,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(e)?e:null!=t?t:i.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(null!=e)return e;let t=this.get("y");const i=this.parent;return i?t instanceof a.gG?u.relativeToValue(t,i.innerHeight())+i.get("paddingTop",0):d.isNumber(t)?t:null!=e?e:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const e=this._adjustedLocalBounds,t=this.x(),i=this.y();return{left:e.left+t,right:e.right+t,top:e.top+i,bottom:e.bottom+i}}globalBounds(){const e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),i=this.toGlobal({x:e.right,y:e.top}),r=this.toGlobal({x:e.right,y:e.bottom}),s=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,i.x,r.x,s.x),top:Math.min(t.y,i.y,r.y,s.y),right:Math.max(t.x,i.x,r.x,s.x),bottom:Math.max(t.y,i.y,r.y,s.y)}}_onShow(e){}_onHide(e){}appear(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),t?new Promise(((i,r)=>{this.setTimeout((()=>{i(this.show(e))}),t)})):this.show(e)}))}show(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);const t=this.states.applyAnimate("default",e);yield(0,h.ne)(t),this._isShowing=!1}}))}hide(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);const i=this.states.applyAnimate("hidden",e);yield(0,h.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}compositeScale(){const e=this.get("scale",1);return this._parent?this._parent.compositeScale()*e:e}compositeRotation(){const e=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),r=this.getPrivate("width"),s=0;if(d.isNumber(r))s=r;else if(null==e)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof a.gG){const t=this.parent;s=t?t.innerWidth()*e.value:this._root.width()*e.value}else d.isNumber(e)&&(s=e);return d.isNumber(i)&&(s=Math.max(i,s)),d.isNumber(t)&&(s=Math.min(t,s)),s}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(e))return e;{let e=this.get("width");if(d.isNumber(e))return e}const t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(e))return e;{let e=this.get("height");if(d.isNumber(e))return e}const t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),r=this.getPrivate("height"),s=0;if(d.isNumber(r))s=r;else if(null==e)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof a.gG){const t=this.parent;s=t?t.innerHeight()*e.value:this._root.height()*e.value}else d.isNumber(e)&&(s=e);return d.isNumber(i)&&(s=Math.max(i,s)),d.isNumber(t)&&(s=Math.min(t,s)),s}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){this._parent&&this._walkParent(e)}_walkParent(e){this._parent&&this._parent._walkParent(e),e(this)}get parent(){return this._parent}_setParent(e,t=!1){const i=this._parent;e!==i&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(i),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){const e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((e,t)=>e>t?1:e<t?-1:0))[0]}toFront(){const e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){const e=this.parent;e&&e.children.moveValue(this,0)}}Object.defineProperty(m,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"}),Object.defineProperty(m,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.JH.classNames.concat([m.className])})},1195:function(e,t,i){"use strict";i.d(t,{b:function(){return h}});var r=i(8777),s=i(6245),n=i(3497),a=i(7142),o=i(1112),l=i(751);class h extends r.W{constructor(){super(...arguments),Object.defineProperty(this,"rectangle",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.A.new(this._root,{themeTags:["rectangle"],fillOpacity:0,fill:(0,o.$_)(16777215)}))}),Object.defineProperty(this,"gripL",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("left")}),Object.defineProperty(this,"gripR",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("right")}),Object.defineProperty(this,"gripT",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("top")}),Object.defineProperty(this,"gripB",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("bottom")}),Object.defineProperty(this,"_is",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_iw",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_positionDP",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHover",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this.addTag("resizer"),this.set("visible",!1),this.gripL.events.on("dragged",(e=>{this._resize(e.target,-1)})),this.gripR.events.on("dragged",(e=>{this._resize(e.target,1)})),this.gripL.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripR.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripT.events.on("dragged",(e=>{this._rotate(e,90)})),this.gripB.events.on("dragged",(e=>{this._rotate(e,-90)})),this.gripT.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripB.events.on("dragstart",(e=>{this._resizeStart(e.target)}))}_resizeStart(e){const t=this.get("sprite");t&&(this._is=t.get("scale",1),this._ix=e.x(),this._iw=this.width()/2)}_resize(e,t){const i=this.get("sprite"),r=this.get("spriteTemplate");if(i){const s=Math.max(.01,this._is*(1+t*(e.x()-this._ix)/this._iw));r?r.set("scale",s):i.set("scale",s),i.states.lookup("default").set("scale",s),this._updatePositions()}}_rotate(e,t){const i=this.get("sprite"),r=this.get("spriteTemplate");if(i){const s=this.parent;if(s){const n=this.get("rotationStep",10);let a=Math.round((l.getAngle({x:this.x(),y:this.y()},s.toLocal(e.point))+t)/n)*n;r?r.set("rotation",a):i.set("rotation",a),i.states.lookup("default").set("rotation",a),this._updatePositions()}}}_createGrip(e){const t=this.children.push(r.W.new(this._root,{themeTags:["grip",e],setStateOnChildren:!0,draggable:!0}));return t.children.push(n.c.new(this._root,{themeTags:["outline"],centerX:s.CI,centerY:s.CI})),t.children.push(n.c.new(this._root,{centerX:s.CI,centerY:s.CI})),t}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const e=this.get("sprite");if(e){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const t=e.parent;t&&t.children.moveValue(this,0),this._positionDP=e.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=e.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const e=this.get("sprite");if(e){let t=e.localBounds(),i=e.get("scale",1),r=20,n=(t.right-t.left)*i+r,a=(t.bottom-t.top)*i+r,o=e.get("rotation",0);const h=this.rectangle;let u=e.get("centerX",s.CI),c=e.get("centerY",s.CI),d=0;u instanceof s.gG&&(d=u.value);let p=0;c instanceof s.gG&&(p=c.value),h.setAll({centerX:u,centerY:c,width:n,height:a}),this.setAll({x:e.x()+r*(d-.5)*l.cos(o)-r*(p-.5)*l.sin(o),y:e.y()+r*(p-.5)*l.cos(o)+r*(d-.5)*l.sin(o),width:n,height:a,rotation:o}),this.gripT.setAll({x:(.5-d)*n,y:-p*a}),this.gripB.setAll({x:(.5-d)*n,y:(1-p)*a}),this.gripL.setAll({x:-d*n,y:(.5-p)*a}),this.gripR.setAll({x:(1-d)*n,y:(.5-p)*a}),this.rectangle.setAll({width:n,height:a})}}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SpriteResizer"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.W.classNames.concat([h.className])})},2036:function(e,t,i){"use strict";i.d(t,{x:function(){return l}});var r=i(4596),s=i(2132),n=i(5071),a=i(7652),o=i(7449);class l extends r.j{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let e=this.get("fillGradient");e&&(this._display.style.fill=e.getFill(this))}else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new o.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const t=this.get("fill"),i=this.get("fillGradient"),r=this.get("fillOpacity");if(i){if(t){const e=i.get("stops",[]);e.length&&n.each(e,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=r,e.opacityInherited=!0)}))}e.fill=i.getFill(this)}else t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),n.each(this._textStyles,(t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())})),e.fontSize=this.get("fontSize"),e.fontFamily=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let e=this.get("text","");return this.get("maxChars")&&(e=a.truncateTextWithEllipsis(e,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,s.q)(this,e):e}_getAccessibleText(){const e=this.get("ariaLabel");return void 0!==e?this.get("populateText")?(0,s.q)(this,e):e:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.j.classNames.concat([l.className])})},2438:function(e,t,i){"use strict";i.d(t,{d:function(){return s}});var r=i(2077);class s extends r.x{}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.x.classNames.concat([s.className])})},2876:function(e,t,i){"use strict";i.d(t,{u:function(){return d}});var r=i(7449),s=i(962),n=i(8931),a=i(8777),o=i(6245),l=i(1112),h=i(751),u=i(5071),c=i(7652);class d extends a.W{constructor(e,t,i,r=[]){super(e,t,i,r),Object.defineProperty(this,"_fx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_fy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillGrDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_labelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_w",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_h",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_keepHoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlContentHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._settings.themeTags=c.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>n.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(s._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(e=>{e&&(this._disposers.push(c.addEventListener(e,"pointerover",(e=>{this._htmlContentHovered=!0}))),this._disposers.push(c.addEventListener(e,"pointerout",(e=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(e=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(e=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),u.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const e=this.get("background");this._keepHoverDp=new r.FV([e.events.on("pointerover",(e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),t.hover())})),e.events.on("pointerout",(e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),this._htmlContentHovered||t.unhover())}))]),this.label.onPrivate("htmlElement",(t=>{this._keepHoverDp&&t&&this._keepHoverDp.disposers.push(c.addEventListener(t,"pointerleave",(t=>{const i=this.root._renderer.getEvent(t);e.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:e})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget");const t=this.get("background");let i,r;if(e&&t){if(i=e.get("fill"),r=e.get("stroke"),null==i&&(i=r),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&t.set("fill",i),this._fillDp=e.on("fill",(e=>{null!=e&&(t.set("fill",e),this._updateTextColor(e))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=e.get("fillGradient");null!=i&&t.set("fillGradient",i),this._fillGrDp=e.on("fillGradient",(e=>{null!=e&&t.set("fillGradient",e)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&t.set("stroke",i),this._strokeDp=e.on("fill",(e=>{null!=e&&t.set("stroke",e)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=e.on("fill",(e=>{null!=e&&this.label.set("fill",e)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(e){this.get("autoTextColor")&&(null==e&&(e=this.get("background").get("fill")),null==e&&(e=this._root.interfaceColors.get("background")),e instanceof l.Il&&this.label.set("fill",l.Il.alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}_updateBackground(){super.updateBackground();const e=this._root.container;if(e){let t=.5,i=.5,r=this.get("centerX");r instanceof o.gG&&(t=r.value);let s=this.get("centerY");s instanceof o.gG&&(i=s.value);let a=e.width(),l=e.height(),u=this.parent,c=0,d=0;if(u){c=u.x(),d=u.y();const e=u.get("layerMargin");e&&(c+=e.left||0,d+=e.top||0,a+=(e.left||0)+(e.right||0),l+=(e.top||0)+(e.bottom||0))}const p=this.get("bounds",{left:-c,top:-d,right:a-c,bottom:l-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let m=this.get("pointTo",{x:a/2,y:l/2}),b=m.x,_=m.y,v=this.get("pointerOrientation"),y=this.get("background"),w=0,x=0,P=0;y instanceof n.i&&(w=y.get("pointerLength",0),x=y.get("strokeWidth",0)/2,P=x,y.set("width",g),y.set("height",f));let D=0,O=0,k=p.right-p.left,T=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?b>p.left+k/2?(b-=g*(1-t)+w,P*=-1):b+=g*t+w:"left"==v?b+=g*(1-t)+w:(b-=g*t+w,P*=-1)):(P=0,"vertical"==v?_>p.top+f/2+w?_-=f*(1-i)+w:(_+=f*i+w,x*=-1):"down"==v?_-=f*(1-i)+w:(_+=f*i+w,x*=-1)),b=h.fitToRange(b,p.left+g*t,p.left+k-g*(1-t))+P,_=h.fitToRange(_,p.top+f*i,p.top+T-f*(1-i))-x,D=m.x-b+g*t+P,O=m.y-_+f*i-x,this._fx=b,this._fy=_;const M=this.get("animationDuration",0);if(M>0&&this.get("visible")&&this.get("opacity")>.1){const e=this.get("animationEasing");this.animate({key:"x",to:b,duration:M,easing:e}),this.animate({key:"y",to:_,duration:M,easing:e})}else this.set("x",b),this.set("y",_);y instanceof n.i&&(y.set("pointerX",D),y.set("pointerY",O)),g>0&&(this._w=g),f>0&&(this._h=f)}}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tooltip"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.W.classNames.concat([d.className])})},941:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var r=i(1479);class s extends r.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const e=this.width(),t=this.height(),i=this._display;i.moveTo(-e/2,t/2),i.lineTo(0,-t/2),i.lineTo(e/2,t/2),i.lineTo(-e/2,t/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Triangle"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.T.classNames.concat([s.className])})},1706:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var r=i(2010),s=i(5040),n=i(6245);class a extends r.A{updateContainer(e){let t=e.get("paddingTop",0),i=e.innerHeight(),a=0;(0,r.j)(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof n.gG){a+=t.value;let r=i*t.value,s=e.get("minHeight",e.getPrivate("minHeight",-1/0));s>r&&(i-=s,a-=t.value);let n=e.get("maxHeight",e.getPrivate("maxHeight",1/0));r>n&&(i-=n,a-=t.value)}else s.isNumber(t)||(t=e.height()),i-=t+e.get("marginTop",0)+e.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,r.j)(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof n.gG){let r=i*t.value/a-e.get("marginTop",0)-e.get("marginBottom",0),s=e.get("minHeight",e.getPrivate("minHeight",-1/0)),n=e.get("maxHeight",e.getPrivate("maxHeight",1/0));r=Math.min(Math.max(s,r),n),e.setPrivate("height",r)}else e._prevSettings.height instanceof n.gG&&e.setPrivate("height",void 0)}}));let o=t;(0,r.j)(e,(e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginTop",0),r=t.top,s=t.bottom,n=e.get("maxHeight");n&&s-r>n&&(s=r+n);let a=e.get("marginBottom",0),l=o+i-r;e.setPrivate("y",l),o=l+s+a}else e.setPrivate("y",void 0)}))}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.A.classNames.concat([a.className])})},6044:function(e,t,i){"use strict";i.d(t,{H:function(){return l}});var r=i(8777),s=i(8054),n=i(1479),a=i(7449),o=i(2647);class l extends r.W{constructor(){super(...arguments),Object.defineProperty(this,"homeButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(s.z.new(this._root,{width:35,height:35,themeTags:["home"]}))}),Object.defineProperty(this,"plusButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(s.z.new(this._root,{width:35,height:35,themeTags:["plus"]}))}),Object.defineProperty(this,"minusButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(s.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}),Object.defineProperty(this,"_disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targetDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:n.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:n.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:n.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const e=this.get("target"),t=this._prevSettings.target;e&&(e instanceof o.Y&&(this._targetDisposer=this.addDisposer(e.contents.on("scale",(t=>{t==e.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),t==e.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{e.get("scale")==e.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new a.FV([this.plusButton.events.on("click",(()=>{e.zoomIn()})),this.minusButton.events.on("click",(()=>{e.zoomOut()})),this.homeButton.events.on("click",(()=>{e.goHome()}))])),t&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ZoomTools"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.W.classNames.concat([l.className])})},2647:function(e,t,i){"use strict";i.d(t,{Y:function(){return c}});var r=i(8777),s=i(6245),n=i(7142),a=i(1112),o=i(7652),l=i(751),h=i(256),u=i(5040);class c extends r.W{constructor(){super(...arguments),Object.defineProperty(this,"_za",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_txa",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tya",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_downX",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_pinchDP",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contents",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r.W.new(this._root,{width:s.AQ,height:s.AQ,x:0,y:0,draggable:!0,background:n.A.new(this._root,{fill:(0,a.$_)(16777215),fillOpacity:0})}))}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew();const e=this.contents.events;this._disposers.push(e.on("pointerdown",(e=>{this._handleThisDown(e)}))),this._disposers.push(e.on("globalpointerup",(e=>{this._handleThisUp(e)}))),this._disposers.push(e.on("globalpointermove",(e=>{this._handleThisMove(e)})));const t=this.contents.get("background");t&&(t.adapters.add("width",(e=>20*Number(e))),t.adapters.add("height",(e=>20*Number(e))),t.adapters.add("x",(e=>Number(e)-t.width()/2)),t.adapters.add("y",(e=>Number(e)-t.height()/2)));const i=this.contents;i.adapters.add("x",(e=>{const t=i.get("scale",1);if(u.isNumber(e)&&t>=1){let r=this.get("maxPanOut",.4),s=i.width();e=Math.min(s*r,e),e=Math.max(this.width()-s*t*(1+r),e)}return e})),i.adapters.add("y",(e=>{const t=i.get("scale",1);if(u.isNumber(e)&&t>=1){let r=this.get("maxPanOut",.4),s=i.height();e=Math.min(s*r,e),e=Math.max(this.height()-s*t*(1+r),e)}return e}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(e=>{const t=e.originalEvent;if(!o.isLocalEvent(t,this))return;t.preventDefault();const i=this.toLocal(e.point);this._handleWheelZoom(t.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(e,t){let i=this.get("zoomStep",2),r=this.contents.get("scale",1),s=r;e>0?s=r/i:e<0&&(s=r*i),s!=r&&this.zoomToPoint(t,s)}zoomToPoint(e,t){t&&(t=l.fitToRange(t,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let r=e.x,s=e.y,n=r,a=s;const o=this.contents;let h=n-(r-o.x())/i*t,u=a-(s-o.y())/i*t;return this._animateTo(h,u,t),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(e,t,i){const r=this.get("animationDuration",0),s=this.get("animationEasing"),n=this.contents;this._txa=n.animate({key:"x",to:e,duration:r,easing:s}),this._tya=n.animate({key:"y",to:t,duration:r,easing:s}),this._za=n.animate({key:"scale",to:i,duration:r,easing:s})}_handleThisUp(e){this._downPoints={}}_handleThisDown(e){const t=this.contents;this._downScale=t.get("scale",1);const i=t._downPoints;let r=h.keys(i).length;if(1==r){let t=i[1];t||(t=i[0]),t&&t.x==e.point.x&&t.y==e.point.y&&(r=0)}if(r>0){this._downX=t.x(),this._downY=t.y();const e=t._getDownPointId();if(e){let i=this._movePoints[e];i&&(t._downPoints[e]=i)}}}_handleThisMove(e){const t=e.originalEvent.pointerId;this.get("pinchZoom")&&t&&(this._movePoints[t]=e.point,h.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let e=0,t=[],i=[];if(h.each(this.contents._downPoints,((r,s)=>{t[e]=s;let n=this._movePoints[r];n&&(i[e]=n),e++})),t.length>1&&i.length>1){this.contents._isDragging=!1;let e=t[0],r=t[1],s=i[0],n=i[1];if(e&&r&&s&&n){e=this.toLocal(e),r=this.toLocal(r),s=this.toLocal(s),n=this.toLocal(n);let t=Math.hypot(r.x-e.x,r.y-e.y),i=Math.hypot(n.x-s.x,n.y-s.y)/t*this._downScale,a={x:s.x+(n.x-s.x)/2,y:s.y+(n.y-s.y)/2},o={x:e.x+(r.x-e.x)/2,y:e.y+(r.y-e.y)/2},l=this._downX||0,h=this._downY||0,u=this._downScale,c=a.x-(-l+o.x)/u*i,d=a.y-(-h+o.y)/u*i;this.contents.setAll({x:c,y:d,scale:i})}}}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ZoomableContainer"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.W.classNames.concat([c.className])})},4102:function(e,t,i){"use strict";i.d(t,{mM:function(){return oe},uK:function(){return ne}});var r=i(4680),s=i(1112);class n{constructor(e=1,t=0,i=0,r=1,s=0,n=0){Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"c",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"d",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ty",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.a=e,this.b=t,this.c=i,this.d=r,this.tx=s,this.ty=n}setTransform(e,t,i,r,s,n=1){this.a=Math.cos(s)*n,this.b=Math.sin(s)*n,this.c=-Math.sin(s)*n,this.d=Math.cos(s)*n,this.tx=e-(i*this.a+r*this.c),this.ty=t-(i*this.b+r*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){const t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){const t=this.a,i=this.b,r=this.c,s=this.d;this.a=e.a*t+e.b*r,this.b=e.a*i+e.b*s,this.c=e.c*t+e.d*r,this.d=e.c*i+e.d*s,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*s+this.ty}prepend(e){const t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){const t=this.a,i=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}}var a=i(6245),o=i(7449),l=i(7255),h=i(7652),u=i(5071),c=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(e,t,i,r,s,n,a){var o=e.x,l=e.y;return{x:r*(o*=t)-s*(l*=i)+n,y:s*o+r*l+a}},m=function(e,t){var i=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),s=Math.sin(e),n=Math.cos(e+t),a=Math.sin(e+t);return[{x:r-s*i,y:s+r*i},{x:n+a*i,y:a-n*i},{x:n,y:a}]},b=function(e,t,i,r){var s=e*i+t*r;return s>1&&(s=1),s<-1&&(s=-1),(e*r-t*i<0?-1:1)*Math.acos(s)},_=function(e){var t=e.px,i=e.py,r=e.cx,s=e.cy,n=e.rx,a=e.ry,o=e.xAxisRotation,l=void 0===o?0:o,h=e.largeArcFlag,u=void 0===h?0:h,c=e.sweepFlag,d=void 0===c?0:c,p=[];if(0===n||0===a)return[];var _=Math.sin(l*g/360),v=Math.cos(l*g/360),y=v*(t-r)/2+_*(i-s)/2,w=-_*(t-r)/2+v*(i-s)/2;if(0===y&&0===w)return[];n=Math.abs(n),a=Math.abs(a);var x=Math.pow(y,2)/Math.pow(n,2)+Math.pow(w,2)/Math.pow(a,2);x>1&&(n*=Math.sqrt(x),a*=Math.sqrt(x));var P=function(e,t,i,r,s,n,a,o,l,h,u,c){var d=Math.pow(s,2),p=Math.pow(n,2),f=Math.pow(u,2),m=Math.pow(c,2),_=d*p-d*m-p*f;_<0&&(_=0),_/=d*m+p*f;var v=(_=Math.sqrt(_)*(a===o?-1:1))*s/n*c,y=_*-n/s*u,w=h*v-l*y+(e+i)/2,x=l*v+h*y+(t+r)/2,P=(u-v)/s,D=(c-y)/n,O=(-u-v)/s,k=(-c-y)/n,T=b(1,0,P,D),M=b(P,D,O,k);return 0===o&&M>0&&(M-=g),1===o&&M<0&&(M+=g),[w,x,T,M]}(t,i,r,s,n,a,u,d,_,v,y,w),D=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],r=!0,s=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){s=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(s)throw n}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(P,4),O=D[0],k=D[1],T=D[2],M=D[3],S=Math.abs(M)/(g/4);Math.abs(1-S)<1e-7&&(S=1);var E=Math.max(Math.ceil(S),1);M/=E;for(var C=0;C<E;C++)p.push(m(T,M)),T+=M;return p.map((function(e){var t=f(e[0],n,a,v,_,O,k),i=t.x,r=t.y,s=f(e[1],n,a,v,_,O,k),o=s.x,l=s.y,h=f(e[2],n,a,v,_,O,k);return{x1:i,y1:r,x2:o,y2:l,x:h.x,y:h.y}}))};function v(e,t,i){if(t!==i)throw new Error("Required "+i+" arguments for "+e+" but got "+t)}function y(e,t,i){if(t<i)throw new Error("Required at least "+i+" arguments for "+e+" but got "+t)}function w(e,t,i){if(y(e,t,i),t%i!=0)throw new Error("Arguments for "+e+" must be in pairs of "+i)}function x(e){for(let t=0;t<e.length;t+=7){let i=t+3,r=e[i];if(r.length>1){const t=/^([01])([01])(.*)$/.exec(r);null!==t&&(e.splice(i,0,t[1]),++i,e.splice(i,0,t[2]),++i,t[3].length>0?e[i]=t[3]:e.splice(i,1))}if(++i,r=e[i],r.length>1){const t=/^([01])(.+)$/.exec(r);null!==t&&(e.splice(i,0,t[1]),++i,e[i]=t[2])}}}function P(e){if(0===e||1===e)return e;throw new Error("Flag must be 0 or 1")}function D(e,t){for(;(!e.interactive||t(e))&&e._parent;)e=e._parent}function O(e,t,i){return h.addEventListener(e,h.getRendererEvent(t),(e=>{const t=h.getEventTarget(e);let r=e.touches;r?(0==r.length&&(r=e.changedTouches),i(u.copy(r),t)):i([e],t)}))}function k(e){const t=document.createElement("canvas");t.width=1,t.height=1;const i=t.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(t){return console.warn('Image "'+e.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function T(e){e.width=0,e.height=0,e.style.width="0px",e.style.height="0px"}function M(e){return Math.floor(e)+.5}class S{constructor(){Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0})}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}}class E extends o.KK{constructor(e){super(),Object.defineProperty(this,"_layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"interactive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactive",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wheelable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"cancelTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isMeasured",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"buttonMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"compoundAlpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"crisp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pivot",{enumerable:!0,configurable:!0,writable:!0,value:new S}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cursorOverStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_replacedCursorStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new n}),Object.defineProperty(this,"_matrix",{enumerable:!0,configurable:!0,writable:!0,value:new n}),Object.defineProperty(this,"_uMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new n}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=e}subStatus(e){return{inactive:null==this.inactive?e.inactive:this.inactive,layer:this._layer||e.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(!e._parent)return this._renderer.defaultLayer;e=e._parent}}setLayer(e,t){if(null==e)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(e,i),this._layer.visible=i,this._layer.margin=t,t&&h.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(!e._parent)return!1;e=e._parent}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const e=1e7;this._localBounds={left:e,top:e,right:-e,bottom:-e},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(e){this._setMatrix();const t=this.getLocalMatrix(),i=t.apply({x:e.left,y:e.top}),r=t.apply({x:e.right,y:e.top}),s=t.apply({x:e.right,y:e.bottom}),n=t.apply({x:e.left,y:e.bottom});return{left:Math.min(i.x,r.x,s.x,n.x),top:Math.min(i.y,r.y,s.y,n.y),right:Math.max(i.x,r.x,s.x,n.x),bottom:Math.max(i.y,r.y,s.y,n.y)}}on(e,t,i){return this.interactive?this._renderer._addEvent(this,e,t,i):new o.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){const i=this._matrix;let r=i.tx*t,s=i.ty*t;this.crisp&&(r=M(r),s=M(s)),e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,r,s)}_transformMargin(e,t,i){const r=this._matrix;e.setTransform(r.a*t,r.b*t,r.c*t,r.d*t,(r.tx+i.left)*t,(r.ty+i.top)*t)}_transformLayer(e,t,i){i.margin?this._transformMargin(e,i.scale||t,i.margin):this._transform(e,i.scale||t)}render(e,t=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(e),r=this._renderer.resolution,s=this._renderer.layers,n=this._renderer._ghostLayer,a=n.context,o=this.mask;o&&o._setMatrix(),u.each(s,(e=>{if(e){const t=e.context;t.save(),o&&(o._transformLayer(t,r,e),o._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(t,r,e),this.filter&&(t.filter=this.filter)}})),a.save(),o&&this._isInteractiveMask(i)&&(o._transformMargin(a,r,n.margin),o._runPath(a),a.clip()),this._transformMargin(a,r,n.margin),i.layer.order>0&&!t&&u.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,t),a.restore(),u.each(s,(e=>{e&&e.context.restore()}))}}_render(e,t=0){!1===this.exportable&&(e.layer.tainted=!0)}_ghostOnly(e=0){return e>0}_drawGhost(e,t=0){const i=this._isInteractive(e),r=e.layer.order||0;return!(!i||(0!=r||this._ghostOnly(t))&&r!=t)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((e=>e.value===this))}shouldCancelTouch(){const e=this._renderer;return!(e.tapToActivate&&!e._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class C extends E{constructor(){super(...arguments),Object.defineProperty(this,"interactiveChildren",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_childLayers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,u.removeFirst(this._children,e)}_render(e,t){super._render(e);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,u.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(e,t)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),u.pushOne(this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&u.each(this._childLayers,(e=>e.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&u.each(this._childLayers,(e=>{e.dirty=!0}))}}function A(e,t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.right=Math.max(e.right,t.x),e.bottom=Math.max(e.bottom,t.y)}class N{colorize(e,t){}colorizeGhost(e,t){this.colorize(e,t)}path(e){}pathGhost(e){this.path(e)}addBounds(e){}}class L extends N{colorize(e,t){e.beginPath()}}class j extends N{constructor(e){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fillStyle=void 0!==t?t:this.color}}class R extends N{constructor(e){super(),Object.defineProperty(this,"clearShadow",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}class F extends N{colorize(e,t){e.stroke()}}class I extends N{constructor(e,t,i,r){super(),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"lineCap",{enumerable:!0,configurable:!0,writable:!0,value:r})}colorize(e,t){e.strokeStyle=void 0!==t?t:this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin),this.lineCap&&(e.lineCap=this.lineCap)}}class U extends N{constructor(e){super(),Object.defineProperty(this,"dash",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.setLineDash(this.dash)}}class B extends N{constructor(e){super(),Object.defineProperty(this,"dashOffset",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.lineDashOffset=this.dashOffset}}class Y extends N{constructor(e,t,i,r){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){const t=this.x,i=this.y,r=t+this.width,s=i+this.height;A(e,{x:t,y:i}),A(e,{x:r,y:i}),A(e,{x:t,y:s}),A(e,{x:r,y:s})}}class H extends N{constructor(e,t,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){A(e,{x:this.x-this.radius,y:this.y-this.radius}),A(e,{x:this.x+this.radius,y:this.y+this.radius})}}class z extends N{constructor(e,t,i,r){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radiusX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"radiusY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(e){A(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),A(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class X extends N{constructor(e,t,i,r,s,n){super(),Object.defineProperty(this,"cx",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cy",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"endAngle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"anticlockwise",{enumerable:!0,configurable:!0,writable:!0,value:n})}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);A(e,{x:t.left,y:t.top}),A(e,{x:t.right,y:t.bottom})}}class G extends N{constructor(e,t,i,r,s){super(),Object.defineProperty(this,"x1",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y1",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"x2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"y2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}}class V extends N{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.lineTo(this.x,this.y)}addBounds(e){A(e,{x:this.x,y:this.y})}}class W extends N{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.moveTo(this.x,this.y)}addBounds(e){A(e,{x:this.x,y:this.y})}}class Z extends N{path(e){e.closePath()}}class $ extends N{constructor(e,t,i,r,s,n){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cpX2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"cpY2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:n})}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){A(e,{x:this.cpX,y:this.cpY}),A(e,{x:this.cpX2,y:this.cpY2}),A(e,{x:this.toX,y:this.toY})}}class K extends N{constructor(e,t,i,r){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){A(e,{x:this.cpX,y:this.cpY}),A(e,{x:this.toX,y:this.toY})}}class Q extends N{constructor(e,t,i,r,s){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"blur",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"offsetX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"offsetY",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"opacity",{enumerable:!0,configurable:!0,writable:!0,value:s})}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}colorizeGhost(e,t){}}class q extends N{constructor(e,t,i,r,s){super(),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){A(e,{x:this.x,y:this.y}),A(e,{x:this.width,y:this.height})}}class J extends E{constructor(){super(...arguments),Object.defineProperty(this,"_operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blendMode",{enumerable:!0,configurable:!0,writable:!0,value:r.b.NORMAL}),Object.defineProperty(this,"_hasShadows",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_fillAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof s.Il?this._pushOp(new j(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new j(e))):this._pushOp(new j("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new R(this._hasShadows))}endStroke(){this._pushOp(new F)}beginPath(){this._pushOp(new L)}lineStyle(e=0,t,i=1,r,n){this._strokeAlpha=i,t?t instanceof s.Il?this._pushOp(new I(e,t.toCSS(i),r,n)):this._pushOp(new I(e,t,r,n)):this._pushOp(new I(e,"rgba(0, 0, 0, "+i+")",r,n))}setLineDash(e){this._pushOp(new U(e||[]))}setLineDashOffset(e=0){this._pushOp(new B(e))}drawRect(e,t,i,r){this._pushOp(new Y(e,t,i,r))}drawCircle(e,t,i){this._pushOp(new H(e,t,i))}drawEllipse(e,t,i,r){this._pushOp(new z(e,t,i,r))}arc(e,t,i,r,s,n=!1){this._pushOp(new X(e,t,i,r,s,n))}arcTo(e,t,i,r,s){this._pushOp(new G(e,t,i,r,s))}lineTo(e,t){this._pushOp(new V(e,t))}moveTo(e,t){this._pushOp(new W(e,t))}bezierCurveTo(e,t,i,r,s,n){this._pushOp(new $(e,t,i,r,s,n))}quadraticCurveTo(e,t,i,r){this._pushOp(new K(e,t,i,r))}closePath(){this._pushOp(new Z)}shadow(e,t=0,i=0,r=0,s){this._hasShadows=!0,this._pushOp(new Q(s?e.toCSS(s):e.toCSS(this._fillAlpha||this._strokeAlpha),t,i,r))}image(e,t,i,r,s){this._pushOp(new q(e,t,i,r,s))}svgPath(e){let t=0,i=0,r=null,s=null,n=null,a=null;const o=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;let h;for(;null!==(h=o.exec(e));){const e=h[1],o=h[2],c=[];for(;null!==(h=l.exec(o));)c.push(h[1]);switch("S"!==e&&"s"!==e&&"C"!==e&&"c"!==e&&(r=null,s=null),"Q"!==e&&"q"!==e&&"T"!==e&&"t"!==e&&(n=null,a=null),e){case"M":w(e,c.length,2),t=+c[0],i=+c[1],this.moveTo(t,i);for(let e=2;e<c.length;e+=2)t=+c[e],i=+c[e+1],this.lineTo(t,i);break;case"m":w(e,c.length,2),t+=+c[0],i+=+c[1],this.moveTo(t,i);for(let e=2;e<c.length;e+=2)t+=+c[e],i+=+c[e+1],this.lineTo(t,i);break;case"L":w(e,c.length,2);for(let e=0;e<c.length;e+=2)t=+c[e],i=+c[e+1],this.lineTo(t,i);break;case"l":w(e,c.length,2);for(let e=0;e<c.length;e+=2)t+=+c[e],i+=+c[e+1],this.lineTo(t,i);break;case"H":y(e,c.length,1);for(let e=0;e<c.length;++e)t=+c[e],this.lineTo(t,i);break;case"h":y(e,c.length,1);for(let e=0;e<c.length;++e)t+=+c[e],this.lineTo(t,i);break;case"V":y(e,c.length,1);for(let e=0;e<c.length;++e)i=+c[e],this.lineTo(t,i);break;case"v":y(e,c.length,1);for(let e=0;e<c.length;++e)i+=+c[e],this.lineTo(t,i);break;case"C":w(e,c.length,6);for(let e=0;e<c.length;e+=6){const n=+c[e],a=+c[e+1];r=+c[e+2],s=+c[e+3],t=+c[e+4],i=+c[e+5],this.bezierCurveTo(n,a,r,s,t,i)}break;case"c":w(e,c.length,6);for(let e=0;e<c.length;e+=6){const n=+c[e]+t,a=+c[e+1]+i;r=+c[e+2]+t,s=+c[e+3]+i,t+=+c[e+4],i+=+c[e+5],this.bezierCurveTo(n,a,r,s,t,i)}break;case"S":w(e,c.length,4),null!==r&&null!==s||(r=t,s=i);for(let e=0;e<c.length;e+=4){const n=2*t-r,a=2*i-s;r=+c[e],s=+c[e+1],t=+c[e+2],i=+c[e+3],this.bezierCurveTo(n,a,r,s,t,i)}break;case"s":w(e,c.length,4),null!==r&&null!==s||(r=t,s=i);for(let e=0;e<c.length;e+=4){const n=2*t-r,a=2*i-s;r=+c[e]+t,s=+c[e+1]+i,t+=+c[e+2],i+=+c[e+3],this.bezierCurveTo(n,a,r,s,t,i)}break;case"Q":w(e,c.length,4);for(let e=0;e<c.length;e+=4)n=+c[e],a=+c[e+1],t=+c[e+2],i=+c[e+3],this.quadraticCurveTo(n,a,t,i);break;case"q":w(e,c.length,4);for(let e=0;e<c.length;e+=4)n=+c[e]+t,a=+c[e+1]+i,t+=+c[e+2],i+=+c[e+3],this.quadraticCurveTo(n,a,t,i);break;case"T":w(e,c.length,2),null!==n&&null!==a||(n=t,a=i);for(let e=0;e<c.length;e+=2)n=2*t-n,a=2*i-a,t=+c[e],i=+c[e+1],this.quadraticCurveTo(n,a,t,i);break;case"t":w(e,c.length,2),null!==n&&null!==a||(n=t,a=i);for(let e=0;e<c.length;e+=2)n=2*t-n,a=2*i-a,t+=+c[e],i+=+c[e+1],this.quadraticCurveTo(n,a,t,i);break;case"A":case"a":const o="a"===e;x(c),w(e,c.length,7);for(let e=0;e<c.length;e+=7){let r=+c[e+5],s=+c[e+6];o&&(r+=t,s+=i);const n=_({px:t,py:i,rx:+c[e],ry:+c[e+1],xAxisRotation:+c[e+2],largeArcFlag:P(+c[e+3]),sweepFlag:P(+c[e+4]),cx:r,cy:s});u.each(n,(e=>{this.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y),t=e.x,i=e.y}))}break;case"Z":case"z":v(e,c.length,0),this.closePath()}}}_runPath(e){e.beginPath(),u.each(this._operations,(t=>{t.path(e)}))}_render(e,t=0){super._render(e);const i=e.layer.dirty,r=this._isInteractive(e),s=this._ghostOnly(t),n=this._drawGhost(e,t);if(i||r||s){const t=e.layer.context,r=this._renderer._ghostLayer.context;let a;i&&!s&&(t.globalCompositeOperation=this.blendMode,t.beginPath()),n&&(r.beginPath(),a=this._getColorId()),u.each(this._operations,(e=>{i&&!s&&(e.path(t),e.colorize(t,void 0)),n&&(e.pathGhost(r),e.colorizeGhost(r,a))}))}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();const t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),u.each(this._operations,(t=>{t.path(e),t.colorize(e,void 0)})),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&u.each(this._operations,(t=>{t.addBounds(e)}))}}class ee extends E{constructor(e,t,i){super(e),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"textVisible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"truncated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.text=t,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,i=!1){super._render(e);const r=e.layer.context,n=this._renderer._ghostLayer.context,a=this.style;let o=this._getFontStyle(void 0,i);r.font=o,this._isInteractive(e)&&!t&&(n.font=o),a.fill&&(a.fill instanceof s.Il?r.fillStyle=a.fill.toCSS(null!=a.fillOpacity?a.fillOpacity:1):r.fillStyle=a.fill),a.shadowColor&&(e.layer.context.shadowColor=a.shadowColor.toCSS(a.shadowOpacity||1)),a.shadowBlur&&(e.layer.context.shadowBlur=a.shadowBlur),a.shadowOffsetX&&(e.layer.context.shadowOffsetX=a.shadowOffsetX),a.shadowOffsetY&&(e.layer.context.shadowOffsetY=a.shadowOffsetY),this._shared(r),this._isInteractive(e)&&!t&&(n.fillStyle=this._getColorId(),this._shared(n))}_getFontStyle(e,t=!1){const i=this.style;let r=[];return e&&e.fontVariant?r.push(e.fontVariant):i.fontVariant&&r.push(i.fontVariant),t||(e&&e.fontWeight?r.push(e.fontWeight):i.fontWeight&&r.push(i.fontWeight)),e&&e.fontStyle?r.push(e.fontStyle):i.fontStyle&&r.push(i.fontStyle),e&&e.fontSize?(d.isNumber(e.fontSize)&&(e.fontSize=e.fontSize+"px"),r.push(e.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),r.push(i.fontSize)),e&&e.fontFamily?r.push(e.fontFamily):i.fontFamily?r.push(i.fontFamily):r.length&&r.push("Arial"),r.join(" ")}_render(e,t=0){if(this._textInfo||this._measure(e),this.textVisible){const i=this._isInteractive(e),r=e.layer.context,n=e.layer.dirty,a=this._renderer._ghostLayer.context,o=this._ghostOnly(t),h=this._drawGhost(e,t);r.save(),a.save(),this._prerender(e),u.each(this._textInfo,((t,c)=>{u.each(t.textChunks,((u,c)=>{if(u.style&&(r.save(),a.save(),o||(r.font=u.style),this._isInteractive(e)&&(a.font=u.style)),u.fill&&(r.save(),o||(r.fillStyle=u.fill.toCSS())),n&&!o&&r.fillText(u.text,u.offsetX,t.offsetY+u.offsetY),"underline"==u.textDecoration||"line-through"==u.textDecoration){let e=1,i=1,n=u.height;const a=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(a)>-1){const e=this._measureText(u.text,r);u.width=e.actualBoundingBoxLeft+e.actualBoundingBoxRight}let h,c=u.offsetX;switch(this.style.textAlign){case"right":case"end":c-=u.width;break;case"center":c-=u.width/2}if(u.style)switch(l.V.getTextStyle(u.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":e=2}n&&(i=n/20),h="line-through"==u.textDecoration?e+t.offsetY+u.offsetY-u.height/2:e+1.5*i+t.offsetY+u.offsetY,o||(r.save(),r.beginPath(),u.fill?r.strokeStyle=u.fill.toCSS():this.style.fill&&this.style.fill instanceof s.Il&&(r.strokeStyle=this.style.fill.toCSS()),r.lineWidth=e*i,r.moveTo(c,h),r.lineTo(c+u.width,h),r.stroke(),r.restore())}i&&this.interactive&&h&&a.fillText(u.text,u.offsetX,t.offsetY+u.offsetY),u.fill&&r.restore(),u.style&&(r.restore(),a.restore())}))})),r.restore(),a.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){const t=this._measure({inactive:this.inactive,layer:this.getLayer()});A(e,{x:t.left,y:t.top}),A(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,r="rtl"==this.style.direction;this._textInfo=[];const s=this.style.oversizedBehavior,n=this.style.maxWidth,o=d.isNumber(n)&&"truncate"==s,c=d.isNumber(n)&&("wrap"==s||"wrap-no-break"==s);t.save(),i.save(),this._prerender(e,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,m=!0,b=0,_=0,v=0;u.each(g,((e,r)=>{let s;for(s=""==e?[{type:"value",text:""}]:l.V.chunk(e,!1,this.style.ignoreFormatting);s.length>0;){let e={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const r=this._measureText(p,t),g=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent;let y;e.height=g,e.ascent=r.actualBoundingBoxAscent;let w,x,P,D=this.style.textDecoration,O=!1,k=!0,T=[];u.eachContinue(s,((r,a)=>{if("format"==r.type)if("[/]"==r.text)m||(t.restore(),i.restore(),m=!0),w=void 0,f=void 0,x=void 0,D=this.style.textDecoration,P=void 0,y=r.text;else{m||(t.restore(),i.restore());let s=l.V.getTextStyle(r.text);const n=this._getFontStyle(s);t.save(),i.save(),t.font=n,f=n,y=r.text,s.textDecoration&&(D=s.textDecoration),s.fill&&(w=s.fill),s.width&&(x=d.toNumber(s.width)),s.verticalAlign&&(P=s.verticalAlign),m=!1;const a=this._measureText(p,t),o=a.actualBoundingBoxAscent+a.actualBoundingBoxDescent;o>e.height&&(e.height=o),a.actualBoundingBoxAscent>e.ascent&&(e.ascent=a.actualBoundingBoxAscent)}else if("value"==r.type&&!O){const i=this._measureText(r.text,t);let l=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(o){this.truncated=void 0;let i=k||this.style.breakWords||!1;const s=this.style.ellipsis||"",a=this._measureText(s,t),o=a.actualBoundingBoxLeft+a.actualBoundingBoxRight;if(e.width+l>n){const a=n-e.width-o;r.text=this._truncateText(t,r.text,a,i),r.text+=s,O=!0,this.truncated=!0}}else if(c&&e.width+l>n){const i=n-e.width,o=this._truncateText(t,r.text,i,!1,k&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==o)return this.textVisible=!0,!1;T=s.slice(a+1),h.trim(o)!=h.trim(r.text)&&(T.unshift({type:"value",text:r.text.substr(o.length)}),y&&T.unshift({type:"format",text:y})),r.text=h.trim(o),s=[],O=!0}let u=1,d=1;if(f&&x&&x>l){const e=l/x;switch(this.style.textAlign){case"right":case"end":u=e;break;case"center":u=e,d=e;break;default:d=e}l=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>e.height&&(e.height=p),i.actualBoundingBoxAscent>e.ascent&&(e.ascent=i.actualBoundingBoxAscent),e.width+=l,e.left+=i.actualBoundingBoxLeft/u,e.right+=i.actualBoundingBoxRight/d,e.textChunks.push({style:f,fill:w,text:r.text,width:l,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:D,verticalAlign:P}),k=!1}return!0})),this.style.lineHeight instanceof a.gG?(e.height*=this.style.lineHeight.value,e.ascent*=this.style.lineHeight.value):(e.height*=this.style.lineHeight||1.2,e.ascent*=this.style.lineHeight||1.2),b<e.left&&(b=e.left),_<e.right&&(_=e.right),this._textInfo.push(e),v+=e.height,s=T||[]}})),m||(t.restore(),i.restore()),u.each(this._textInfo,((e,t)=>{let i=0;u.each(e.textChunks,(t=>{if(t.offsetX=i+t.left-e.left,t.offsetY+=e.height-e.height*(this.style.baselineRatio||.19),i+=t.width*(r?-1:1),t.verticalAlign)switch(t.verticalAlign){case"super":t.offsetY-=e.height/2-t.height/2;break;case"sub":t.offsetY+=t.height/2}}))}));const y={left:r?-_:-b,top:0,right:r?b:_,bottom:v};if("none"!==s){const e=this._fitRatio(y);if(e<1)if("fit"==s)d.isNumber(this.style.minScale)&&e<this.style.minScale?(this.textVisible=!1,y.left=0,y.top=0,y.right=0,y.bottom=0):(this._originalScale||(this._originalScale=this.scale),this.scale=e,this.textVisible=!0);else if("hide"==s)this.textVisible=!1,y.left=0,y.top=0,y.right=0,y.bottom=0;else{switch(this.style.textAlign){case"right":case"end":y.left=r?n:-n,y.right=0;break;case"center":y.left=-n/2,y.right=n/2;break;default:y.left=0,y.right=r?-n:n}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),i.restore(),y}_fitRatio(e){const t=this.style.maxWidth,i=this.style.maxHeight;if(!d.isNumber(t)&&!d.isNumber(i))return 1;const r=e.right-e.left,s=e.bottom-e.top;return Math.min(t/r||1,i/s||1)}_truncateText(e,t,i,r=!1,s=!0){let n;do{if(r)t=t.slice(0,-1);else{let e=t.replace(/[^,;:!?\\\/\s]+[,;:!?\\\/\s]*$/g,"");if(""!=e&&e!==t||!s){if(""==e)return t;t=e}else r=!0}const i=this._measureText(t,e);n=i.actualBoundingBoxLeft+i.actualBoundingBoxRight}while(n>i&&""!=t);return t}_measureText(e,t){let i=t.measureText(e),r={};if(null==i.actualBoundingBoxAscent){const t=document.createElement("div");t.innerText=e,t.style.visibility="hidden",t.style.position="absolute",t.style.top="-1000000px;",t.style.fontFamily=this.style.fontFamily||"",t.style.fontSize=this.style.fontSize+"",document.body.appendChild(t);const s=t.getBoundingClientRect();document.body.removeChild(t);const n=s.height,a=i.width;r={actualBoundingBoxAscent:n,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:a,fontBoundingBoxAscent:n,fontBoundingBoxDescent:0,width:a}}else r={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const s=i.width;switch(this.style.textAlign){case"right":case"end":r.actualBoundingBoxLeft=s,r.actualBoundingBoxRight=0;break;case"center":r.actualBoundingBoxLeft=s/2,r.actualBoundingBoxRight=s/2;break;default:r.actualBoundingBoxLeft=0,r.actualBoundingBoxRight=s}return r}}class te{constructor(){Object.defineProperty(this,"fill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fillOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textAlign",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontFamily",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontWeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontVariant",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textDecoration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineHeight",{enumerable:!0,configurable:!0,writable:!0,value:(0,a.aQ)(120)}),Object.defineProperty(this,"baselineRatio",{enumerable:!0,configurable:!0,writable:!0,value:.19}),Object.defineProperty(this,"direction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textBaseline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oversizedBehavior",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),Object.defineProperty(this,"breakWords",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ellipsis",{enumerable:!0,configurable:!0,writable:!0,value:"…"}),Object.defineProperty(this,"maxWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ignoreFormatting",{enumerable:!0,configurable:!0,writable:!0,value:!1})}}class ie extends ee{constructor(){super(...arguments),Object.defineProperty(this,"textType",{enumerable:!0,configurable:!0,writable:!0,value:"circular"}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inside",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"orientation",{enumerable:!0,configurable:!0,writable:!0,value:"auto"}),Object.defineProperty(this,"kerning",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_textReversed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_render(e,t=0){"circular"===this.textType?this._renderCircular(e,t):super._render(e,t)}_renderCircular(e,t=0){if(this.textVisible){this._prerender(e);const i=this._isInteractive(e),r=e.layer.context,s=e.layer.dirty,n=this._renderer._ghostLayer.context;r.save(),i&&n.save(),this._textInfo||this._measure(e);let a=this.radius||0,o=this.startAngle||0,l=0,h=this.orientation,c="auto"==h?"auto":"inward"==h;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let m="left"==g?1:-1;const b=!this._textReversed,_=this._ghostOnly(t),v=this._drawGhost(e,t);if("auto"==c){let e=0,t=0;u.each(this._textInfo,((t,i)=>{const r=o+t.width/(a-t.height)/2*-m;r>e&&(e=r)})),t="left"==g?(e+l/2)*p.DEGREES:"right"==g?(e-l/2)*p.DEGREES:o*p.DEGREES,t=p.normalizeAngle(t),c=t>=270||t<=90}1==c&&b&&(this._textInfo.reverse(),this._textReversed=!0),u.each(this._textInfo,((e,t)=>{const h=e.height;d||(a+=h),(-1==m&&c||1==m&&!c)&&b&&e.textChunks.reverse();let p=o;l=0,"center"==g&&(p+=e.width/(a-h)/2*-m,l=p-o),p+=Math.PI*(c?0:1),r.save(),i&&n.save(),_||r.rotate(p),i&&n.rotate(p);let y=0;u.each(e.textChunks,((e,t)=>{const o=e.text,l=e.width;y=l/2/(a-h)*m,_||r.rotate(y),i&&n.rotate(y),e.style&&(r.save(),n.save(),_||(r.font=e.style),i&&(n.font=e.style)),e.fill&&(r.save(),_||(r.fillStyle=e.fill.toCSS())),_||(r.textBaseline="middle",r.textAlign="center"),i&&(n.textBaseline="middle",n.textAlign="center"),s&&!_&&r.fillText(o,0,(c?1:-1)*(0-a+h/2)),i&&v&&n.fillText(o,0,(c?1:-1)*(0-a+h/2)),e.fill&&r.restore(),e.style&&(r.restore(),n.restore()),y=(l/2+f)/(a-h)*m,_||r.rotate(y),i&&n.rotate(y)})),r.restore(),i&&n.restore(),d&&(a-=h)})),r.restore(),i&&n.restore()}}_measure(e){return"circular"===this.textType?this._measureCircular(e):super._measure(e)}_measureCircular(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,r="rtl"==this.style.direction,s=this.style.oversizedBehavior,n=this.style.maxWidth,o=d.isNumber(n)&&"truncate"==s,c=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),i.save(),this._prerender(e,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,m=0,b=0;return u.each(g,((e,s)=>{let g,_,v,y=l.V.chunk(e,!1,this.style.ignoreFormatting),w={offsetY:b,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};u.each(y,((e,s)=>{if("format"==e.type){if("[/]"==e.text)f||(t.restore(),i.restore(),f=!0),_=void 0,g=void 0,v=void 0;else{let r=l.V.getTextStyle(e.text);const s=this._getFontStyle(r);t.save(),i.save(),t.font=s,g=s,r.fill&&(_=r.fill),r.width&&(v=d.toNumber(r.width)),f=!1}o&&(p=this._measureText(c,t))}else if("value"==e.type){let i=e.text.match(/./gu)||[];r&&(i=h.splitString(e.text),i.reverse());for(let e=0;e<i.length;e++){const r=i[e],s=this._measureText(r,t);let a=s.width;g&&v&&v>a&&(a=v);const l=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;if(l>w.height&&(w.height=l),s.actualBoundingBoxAscent>w.ascent&&(w.ascent=s.actualBoundingBoxAscent),m+=a,o){p||(p=this._measureText(c,t));const e=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(m+e>n){1==w.textChunks.length?this.textVisible=!1:(w.width+=e,w.left+=p.actualBoundingBoxLeft,w.right+=p.actualBoundingBoxRight,w.textChunks.push({style:g,fill:_,text:c,width:e,height:l+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:l,textDecoration:void 0}));break}}w.width+=a,w.left+=s.actualBoundingBoxLeft,w.right+=s.actualBoundingBoxRight,w.textChunks.push({style:g,fill:_,text:r,width:a,height:l+s.actualBoundingBoxDescent,left:s.actualBoundingBoxLeft,right:s.actualBoundingBoxRight,ascent:s.actualBoundingBoxAscent,offsetX:0,offsetY:l,textDecoration:void 0})}}})),this.style.lineHeight instanceof a.gG?w.height*=this.style.lineHeight.value:w.height*=this.style.lineHeight||1.2,this._textInfo.push(w),b+=w.height})),f||(t.restore(),i.restore()),"hide"==s&&m>n&&(this.textVisible=!1),u.each(this._textInfo,(e=>{u.each(e.textChunks,(t=>{t.offsetY+=Math.round((e.height-t.height+(e.ascent-t.ascent))/2)}))})),t.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class re extends E{constructor(e,t){super(e),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imageMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.image=t}_dispose(){super._dispose(),this._imageMask&&T(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e,t=0){if(super._render(e),this.image){if(void 0===this.tainted&&(this.tainted=k(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(t),r=this._drawGhost(e,t);if(e.layer.dirty&&!i){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);const t=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,t,i)}if(this.interactive&&this._isInteractive(e)&&r){const e=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(e,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(void 0===this._imageMask){const t=this.width||e.naturalWidth,i=this.height||e.naturalHeight,r=document.createElement("canvas");r.width=t,r.height=i;const s=r.getContext("2d");s.imageSmoothingEnabled=!1,s.fillStyle=this._getColorId(),s.fillRect(0,0,t,i),k(e)||(s.globalCompositeOperation="destination-in",s.drawImage(e,0,0,t,i)),this._imageMask=r}return this._imageMask}}class se{constructor(e,t,i,r){Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"originalPoint",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"point",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"bbox",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"simulated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"native",{enumerable:!0,configurable:!0,writable:!0,value:!0}),h.supports("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}}class ne extends o.rk{constructor(e){if(super(),Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"_layerDom",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_dirtyLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultLayer",{enumerable:!0,configurable:!0,writable:!0,value:this.getLayer(0)}),Object.defineProperty(this,"_ghostLayer",{enumerable:!0,configurable:!0,writable:!0,value:new ae}),Object.defineProperty(this,"_deferredGhostLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_patternCanvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"_patternContext",{enumerable:!0,configurable:!0,writable:!0,value:this._patternCanvas.getContext("2d")}),Object.defineProperty(this,"_realWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_realHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interactionsEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_colorMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_forceInteractive",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_omitTainted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hovering",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_dragging",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mousedown",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_lastPointerMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tapToActivate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"tapToActivateTimeout",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"_touchActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_touchActiveTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.resolution=null==e?window.devicePixelRatio:e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new o.ku((()=>{c.each(this._events,((e,t)=>{t.disposer.dispose()})),u.each(this.layers,(e=>{T(e.view),e.exportableView&&T(e.exportableView)})),T(this._ghostLayer.view),T(this._patternCanvas)}))),this._disposers.push(h.onZoom((()=>{null==e&&(this.resolution=window.devicePixelRatio)}))),h.supports("touchevents")){const e=e=>{0!==this._dragging.length&&u.eachContinue(this._dragging,(t=>!t.value.shouldCancelTouch()||(e.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(h.addEventListener(window,"touchstart",e,{passive:!1})),this._disposers.push(h.addEventListener(this.view,"touchstart",e,{passive:!1})),this._disposers.push(h.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(h.addEventListener(window,"click",(e=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(h.addEventListener(this.view,"click",(e=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}h.supports("wheelevents")&&this._disposers.push(h.addEventListener(this.view,"wheel",(e=>{let t=!1;this._hovering.forEach((e=>{if(e.wheelable)return t=!0,!1})),t&&e.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,i,r){return this.defaultLayer.context.createLinearGradient(e,t,i,r)}createRadialGradient(e,t,i,r,s,n){return this.defaultLayer.context.createRadialGradient(e,t,i,r,s,n)}createPattern(e,t,i,r,s){return this._patternCanvas.width=r,this._patternCanvas.height=s,this._patternContext.clearRect(0,0,r,s),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new C(this)}makeGraphics(){return new J(this)}makeText(e,t){return new ee(this,e,t)}makeTextStyle(){return new te}makeRadialText(e,t){return new ie(this,e,t)}makePicture(e){return new re(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,i,r){this._realWidth=e,this._realHeight=t,this._calculatedWidth=i,this._calculatedHeight=r,u.each(this.layers,(e=>{e&&(e.dirty=!0,this.resizeLayer(e))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=r+"px"}createDetachedLayer(e=!1){const t=document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:e}),r=new oe(t,i);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",r}getLayerByOrder(e){const t=this.layers,i=t.length;for(let r=0;r<i;r++){const i=t[r];if(i.order==e)return i}}getLayer(e,t=!0){let i=this.getLayerByOrder(e);if(i)return i;const r=this.createDetachedLayer(99==e);r.order=e,r.visible=t,r.view.className="am5-layer-"+e,r.visible&&this.resizeLayer(r);const s=this.layers;s.push(r),s.sort(((e,t)=>e.order>t.order?1:e.order<t.order?-1:0));const n=s.length;let a;for(let e=u.indexOf(s,r)+1;e<n;e++)if(s[e].visible){a=s[e];break}return r.visible&&(void 0===a?this._layerDom.appendChild(r.view):this._layerDom.insertBefore(r.view,a.view)),r}render(e){this._dirtyLayers.length=0,this._deferredGhostLayers=[],u.each(this.layers,(e=>{e&&e.dirty&&e.visible&&(this._dirtyLayers.push(e),e.clear())})),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer});const t=this._deferredGhostLayers;if(t.length&&(t.sort(((e,t)=>e-t)),u.each(t,(t=>{e.render({inactive:null,layer:this.defaultLayer},t)}))),this._ghostLayer.context.restore(),u.each(this.layers,(e=>{if(e){const t=e.context;t.beginPath(),t.moveTo(0,0),t.stroke()}})),u.each(this._dirtyLayers,(e=>{e.context.restore(),e.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:e,target:t,native:i}=this._lastPointerMoveEvent;u.each(e,(e=>{this._dispatchGlobalMousemove(e,t,i)}))}}paintId(e){const t=function(e){const t=[0,0,0];for(let i=0;i<24;i++)t[i%3]<<=1,t[i%3]|=1&e,e>>=1;return(0|t[0])+(t[1]<<8)+(t[2]<<16)}(++this._colorId),i=s.Il.fromHex(t).toCSS();return this._colorMap[i]=e,i}_removeObject(e){void 0!==e._colorId&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){const t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){const i=this.view.getBoundingClientRect(),r=e.clientX||0,s=e.clientY||0,n=this._calculatedWidth/this._realWidth,a=this._calculatedHeight/this._realHeight,o={x:r-i.left,y:s-i.top},l={x:(r-(t?i.left:0))*n,y:(s-(t?i.top:0))*a};return new se(e,o,l,this._adjustBoundingBox(i))}_getHitTarget(e,t,i){if(0===t.width||0===t.height||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom)return;if(!i||!this._layerDom.contains(i))return;const r=this._ghostLayer.getImageData(e,t);if(0===r.data[0]&&0===r.data[1]&&0===r.data[2])return!1;const n=s.Il.fromRGB(r.data[0],r.data[1],r.data[2]).toCSS();return this._colorMap[n]}getObjectAtPoint(e){const t=this._ghostLayer.getImageArray(e);if(0===t[0]&&0===t[1]&&0===t[2])return;const i=s.Il.fromRGB(t[0],t[1],t[2]).toCSS();return this._colorMap[i]}_withEvents(e,t){const i=this._events[e];if(void 0!==i){i.dispatching=!0;try{t(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,u.keepIf(i.callbacks,(e=>!e.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,(e=>{u.each(e.callbacks,(e=>{e.disposed||e.callback.call(e.context,t)}))}))}_dispatchEvent(e,t,i){if(!this.interactionsEnabled)return!1;let r=!1;return this._withEvents(e,(e=>{u.each(e.callbacks,(e=>{e.disposed||e.object!==t||(e.callback.call(e.context,i),r=!0)}))})),r}_dispatchMousedown(e,t){const i=e.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const r=this.getEvent(e),s=this._getHitTarget(r.originalPoint,r.bbox,t);if(s){const e=r.id;let t=!1;D(s,(i=>{const s={id:e,value:i};return this._mousedown.push(s),!t&&this._dispatchEvent("pointerdown",i,r)&&(t=!0,this._dragging.some((t=>t.value===i&&t.id===e))||this._dragging.push(s)),!0}))}}_dispatchGlobalMousemove(e,t,i){const r=this.getEvent(e),s=this._getHitTarget(r.originalPoint,r.bbox,t);r.native=i,s?(this._hovering.forEach((e=>{e.contains(s)||(this._hovering.delete(e),e.cursorOverStyle&&h.setStyle(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,r))})),r.native&&D(s,(e=>(this._hovering.has(e)||(this._hovering.add(e),e.cursorOverStyle&&(e._replacedCursorStyle=h.getStyle(document.body,"cursor"),h.setStyle(document.body,"cursor",e.cursorOverStyle)),this._dispatchEvent("pointerover",e,r)),!0)))):(this._hovering.forEach((e=>{e.cursorOverStyle&&h.setStyle(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,r)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",r)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&h.setStyle(document.body,"cursor",e._replacedCursorStyle)}_dispatchGlobalMouseup(e,t){const i=this.getEvent(e);i.native=t,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(e){if(0!==this._dragging.length){const t=this.getEvent(e),i=t.id;this._dragging.forEach((e=>{e.id===i&&this._dispatchEvent("pointermove",e.value,t)}))}}_dispatchDragEnd(e,t){const i=e.button;let r;if(0==i||void 0===i)r="click";else if(2==i)r="rightclick";else{if(1!=i)return;r="middleclick"}const s=this.getEvent(e),n=s.id;if(0!==this._mousedown.length){const e=this._getHitTarget(s.originalPoint,s.bbox,t);e&&this._mousedown.forEach((t=>{t.id===n&&t.value.contains(e)&&this._dispatchEvent(r,t.value,s)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((e=>{e.id===n&&this._dispatchEvent("pointerup",e.value,s)})),this._dragging.length=0)}_dispatchDoubleClick(e,t){const i=this.getEvent(e),r=this._getHitTarget(i.originalPoint,i.bbox,t);r&&D(r,(e=>!this._dispatchEvent("dblclick",e,i)))}_dispatchWheel(e,t){const i=this.getEvent(e),r=this._getHitTarget(i.originalPoint,i.bbox,t);r&&D(r,(e=>!this._dispatchEvent("wheel",e,i)))}_makeSharedEvent(e,t){if(void 0===this._listeners[e]){const i=t();this._listeners[e]=new o.DM((()=>{delete this._listeners[e],i.dispose()}))}return this._listeners[e].increment()}_onPointerEvent(e,t){let i=!1,r=null;function s(){r=null,i=!1}return new o.FV([new o.ku((()=>{null!==r&&clearTimeout(r),s()})),h.addEventListener(this.view,h.getRendererEvent(e),(e=>{i=!0,null!==r&&clearTimeout(r),r=window.setTimeout(s,0)})),O(window,e,((e,s)=>{null!==r&&(clearTimeout(r),r=null),t(e,s,i),i=!1}))])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const e=(e,t,i)=>{this._lastPointerMoveEvent={events:e,target:t,native:i},u.each(e,(e=>{this._dispatchGlobalMousemove(e,t,i)}))};return new o.FV([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const e=this._onPointerEvent("pointerup",((e,t,i)=>{u.each(e,(e=>{this._dispatchGlobalMouseup(e,i)})),this._lastPointerMoveEvent={events:e,target:t,native:i}})),t=this._onPointerEvent("pointercancel",((e,t,i)=>{u.each(e,(e=>{this._dispatchGlobalMouseup(e,i)})),this._lastPointerMoveEvent={events:e,target:t,native:i}}));return new o.ku((()=>{e.dispose(),t.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const e=this._onPointerEvent("pointerdown",((e,t)=>{u.each(e,(e=>{this._dispatchMousedown(e,t)}))})),t=this._onPointerEvent("pointermove",(e=>{u.each(e,(e=>{this._dispatchDragMove(e)}))})),i=this._onPointerEvent("pointerup",((e,t)=>{u.each(e,(e=>{this._dispatchDragEnd(e,t)}))})),r=this._onPointerEvent("pointercancel",((e,t)=>{u.each(e,(e=>{this._dispatchDragEnd(e,t)}))}));return new o.ku((()=>{e.dispose(),t.dispose(),i.dispose(),r.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((e,t)=>{u.each(e,(e=>{this._dispatchDoubleClick(e,t)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>h.addEventListener(this.view,h.getRendererEvent("wheel"),(e=>{this._dispatchWheel(e,h.getEventTarget(e))}),{passive:!1})))}}_addEvent(e,t,i,r){let s=this._events[t];void 0===s&&(s=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});const n={object:e,context:r,callback:i,disposed:!1};return s.callbacks.push(n),new o.ku((()=>{n.disposed=!0,s.dispatching?s.cleanup=!0:(u.removeFirst(s.callbacks,n),0===s.callbacks.length&&(s.disposer.dispose(),delete this._events[t]))}))}getCanvas(e,t){this.render(e),t||(t={});let i=this.resolution,r=Math.floor(this._calculatedWidth*this.resolution),s=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>r){let e=t.minWidth/r;e>i&&(i=e*this.resolution)}if(t.minHeight&&t.minHeight>s){let e=t.minHeight/s;e>i&&(i=e*this.resolution)}if(t.maxWidth&&t.maxWidth<r){let e=t.maxWidth/r;e<i&&(i=e*this.resolution)}if(t.maxHeight&&t.maxHeight>s){let e=t.maxHeight/s;e<i&&(i=e*this.resolution)}t.maintainPixelRatio&&(i/=this.resolution);const n=[];let a=!1;const o=document.createElement("canvas");i!=this.resolution&&(a=!0,r=r*i/this.resolution,s=s*i/this.resolution),o.width=r,o.height=s,o.style.position="fixed",o.style.top="-10000px",this.view.appendChild(o),n.push(o);const l=o.getContext("2d");let h=0,c=0,d=!1;return u.each(this.layers,(e=>{if(e&&e.visible&&(e.tainted||a)){d=!0,e.exportableView=e.view,e.exportableContext=e.context,e.view=document.createElement("canvas"),e.view.style.position="fixed",e.view.style.top="-10000px",this.view.appendChild(e.view),n.push(e.view);let t=0,a=0;e.margin&&(t+=e.margin.left||0+e.margin.right||0,a+=e.margin.top||0+e.margin.bottom||0),e.view.width=r+t,e.view.height=s+a,e.context=e.view.getContext("2d"),e.dirty=!0,e.scale=i}})),d&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),u.each(this.layers,(e=>{if(e&&e.visible){let t=0,i=0;e.margin&&(t=-(e.margin.left||0)*this.resolution,i=-(e.margin.top||0)*this.resolution),l.drawImage(e.view,t,i),e.exportableView&&(e.view=e.exportableView,e.exportableView=void 0),e.exportableContext&&(e.context=e.exportableContext,e.exportableContext=void 0),h<e.view.clientWidth&&(h=e.view.clientWidth),c<e.view.clientHeight&&(c=e.view.clientHeight),e.scale=void 0}})),o.style.width=h+"px",o.style.height=c+"px",u.each(n,(e=>{e.style.position="",e.style.top="",this.view.removeChild(e)})),o}}class ae{constructor(){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"imageArray",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,i,r,s){this._resolution=s,e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,r+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*s),this._height=Math.floor(t*s),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=r+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}getImageArray(e){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const t=this.imageArray,i=Math.round(e.x*this._resolution),r=4*(Math.round(e.y*this._resolution)*this._width+i);return[t[r],t[r+1],t[r+2],t[r+3]]}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,u.each(e,(e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class oe{constructor(e,t){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportableView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exportableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=e,this.context=t}resize(e,t,i,r,s){null!=this.width&&(e=this.width,i=this.width),null!=this.height&&(t=this.height,r=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,r+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*s),this._height=Math.floor(t*s),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=r+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(e,t,i){"use strict";var r;i.d(t,{b:function(){return r}}),function(e){e.ADD="lighter",e.COLOR="color",e.COLOR_BURN="color-burn",e.COLOR_DODGE="color-dodge",e.DARKEN="darken",e.DIFFERENCE="difference",e.DST_OVER="destination-over",e.EXCLUSION="exclusion",e.HARD_LIGHT="hard-light",e.HUE="hue",e.LIGHTEN="lighten",e.LUMINOSITY="luminosity",e.MULTIPLY="multiply",e.NORMAL="source-over",e.OVERLAY="overlay",e.SATURATION="saturation",e.SCREEN="screen",e.SOFT_LIGHT="soft-light",e.SRC_ATOP="source-atop",e.XOR="xor"}(r||(r={}))},1437:function(e,t,i){"use strict";i.d(t,{p:function(){return s}});var r=i(6331);class s extends r.JH{_afterNew(){super._afterNewApplyThemes()}getFill(e){return{addColorStop:(e,t)=>{}}}_changed(){super._changed()}getBounds(e){const t=this.get("target");if(t){let i=t.globalBounds();const r=e.toLocal({x:i.left,y:i.top}),s=e.toLocal({x:i.right,y:i.top}),n=e.toLocal({x:i.right,y:i.bottom}),a=e.toLocal({x:i.left,y:i.bottom});return{left:Math.min(r.x,s.x,n.x,a.x),top:Math.min(r.y,s.y,n.y,a.y),right:Math.max(r.x,s.x,n.x,a.x),bottom:Math.max(r.y,s.y,n.y,a.y)}}return e._display.getLocalBounds()}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Gradient"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([s.className])})},1747:function(e,t,i){"use strict";i.d(t,{o:function(){return l}});var r=i(1437),s=i(1112),n=i(5071),a=i(5040),o=i(751);class l extends r.p{getFill(e){const t=this.get("rotation",0);let i=this.getBounds(e),r=i.left||0,l=i.right||0,h=i.top||0,u=i.bottom||0,c=o.cos(t),d=o.sin(t),p=c*(l-r),g=d*(u-h);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const m=this._root._renderer.createLinearGradient(r,h,r+f*c,h+f*d),b=this.get("stops");if(b){let e=0;n.each(b,(t=>{let i=t.offset;a.isNumber(i)||(i=e/(b.length-1));let r=t.opacity;a.isNumber(r)||(r=1);let n=t.color;if(n){const e=t.lighten;e&&(n=s.Il.lighten(n,e));const a=t.brighten;a&&(n=s.Il.brighten(n,a)),m.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+r+")")}e++}))}return m}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LinearGradient"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.p.classNames.concat([l.className])})},3437:function(e,t,i){"use strict";i.d(t,{c:function(){return s}});var r=i(6331);class s extends r.JH{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("repetition",""),t=this.get("width",100),i=this.get("height",100),r=this.get("fill"),s=this.get("fillOpacity",1),n=this._backgroundDisplay,a=this._display;a.clear(),n.clear(),r&&s>0&&(n.beginFill(r,s),n.drawRect(0,0,t,i),n.endFill()),a.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(a,n,e,t,i)}this._clear=!1}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([s.className])})},4429:function(e,t,i){"use strict";i.d(t,{v:function(){return s}});var r=i(3437);class s extends r.c{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();const e=this.get("colorOpacity");void 0!==e&&(this._display.alpha=Math.max(0,e));const t=this._image;if(t){const e=this.get("width",100),i=this.get("height",100),r=this.get("fit","image");let s=0,n=0;"pattern"==r?(s=e,n=i,this.markDirty()):(s=t.width,n=t.height,"image"==r&&(this.set("width",s),this.set("height",n)));let a=0,o=0;this.get("centered",!0)&&(a=e/2-s/2,o=i/2-n/2),this._display.image(t,s,n,a,o)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const e=this.get("src");if(e){const t=new Image;t.src=e,t.decode().then((()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((e=>{}))}}}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.c.classNames.concat([s.className])})},6490:function(e,t,i){"use strict";i.d(t,{SR:function(){return r},Wn:function(){return c},XG:function(){return p},ne:function(){return l},w6:function(){return h}});var r,s=i(7582),n=i(6245),a=i(1112),o=i(256);function l(e){return(0,s.mG)(this,void 0,void 0,(function*(){if(void 0!==e){const t=[];o.each(e,((e,i)=>{t.push(i.waitForStop())})),yield Promise.all(t)}}))}function h(e,t,i){return t+e*(i-t)}function u(e,t,i){return e>=1?i:t}function c(e,t,i){return new n.gG(h(e,t.percent,i.percent))}function d(e,t,i){return a.Il.interpolate(e,t,i)}function p(e,t){return"number"==typeof e&&"number"==typeof t?h:e instanceof n.gG&&t instanceof n.gG?c:e instanceof a.Il&&t instanceof a.Il?d:u}!function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"}(r||(r={}))},5071:function(e,t,i){"use strict";i.r(t),i.d(t,{add:function(){return v},any:function(){return n},copy:function(){return D},each:function(){return o},eachContinue:function(){return h},eachReverse:function(){return l},find:function(){return E},findIndex:function(){return M},findIndexReverse:function(){return S},findMap:function(){return A},findReverse:function(){return C},first:function(){return d},getFirstSortedIndex:function(){return j},getSortedIndex:function(){return L},has:function(){return P},indexOf:function(){return s},insert:function(){return p},insertIndex:function(){return k},keepIf:function(){return R},last:function(){return c},map:function(){return a},move:function(){return _},pushAll:function(){return f},pushOne:function(){return y},remove:function(){return m},removeFirst:function(){return b},removeIndex:function(){return T},replace:function(){return w},setIndex:function(){return g},shiftLeft:function(){return u},shuffle:function(){return N},slice:function(){return O},toArray:function(){return x}});var r=i(5040);function s(e,t){const i=e.length;for(let r=0;r<i;++r)if(e[r]===t)return r;return-1}function n(e,t){const i=e.length;for(let r=0;r<i;++r)if(t(e[r]))return!0;return!1}function a(e,t){const i=e.length,r=new Array(i);for(let s=0;s<i;++s)r[s]=t(e[s],s);return r}function o(e,t){const i=e.length;for(let r=0;r<i;++r)t(e[r],r)}function l(e,t){let i=e.length;for(;i>0;)--i,t(e[i],i)}function h(e,t){const i=e.length;for(let r=0;r<i&&t(e[r],r);++r);}function u(e,t){const i=e.length;for(let r=t;r<i;++r)e[r-t]=e[r];e.length=i-t}function c(e){const t=e.length;return t?e[t-1]:void 0}function d(e){return e[0]}function p(e,t,i){i=Math.max(0,Math.min(i,e.length)),e.splice(i,0,t)}function g(e,t,i){m(e,t),p(e,t,i)}function f(e,t){const i=t.length;for(let r=0;r<i;++r)e.push(t[r])}function m(e,t){let i=!1,r=0;for(;;){if(r=e.indexOf(t,r),-1===r)return i;i=!0,e.splice(r,1)}}function b(e,t){let i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function _(e,t,i){let r=s(e,t);-1!==r&&T(e,r),null==i?e.push(t):k(e,i,t)}function v(e,t,i){r.isNumber(i)?0===i?e.unshift(t):e.splice(i,0,t):e.push(t)}function y(e,t){-1===e.indexOf(t)&&e.push(t)}function w(e,t,i){let s=e.indexOf(t);-1!==s&&e.splice(s,1),r.isNumber(i)?e.splice(i,0,t):e.push(t)}function x(e){return Array.isArray(e)?e:[e]}function P(e,t){return-1!==s(e,t)}function D(e){const t=e.length,i=new Array(t);for(let r=0;r<t;++r)i[r]=e[r];return i}function O(e,t,i=e.length){const r=new Array(i-t);for(let s=t;s<i;++s)r[s-t]=e[s];return r}function k(e,t,i){e.splice(t,0,i)}function T(e,t){e.splice(t,1)}function M(e,t){const i=e.length;for(let r=0;r<i;++r)if(t(e[r],r))return r;return-1}function S(e,t){let i=e.length;for(;i>0;)if(--i,t(e[i],i))return i;return-1}function E(e,t){const i=M(e,t);if(-1!==i)return e[i]}function C(e,t){const i=S(e,t);if(-1!==i)return e[i]}function A(e,t){const i=e.length;for(let r=0;r<i;++r){const i=t(e[r],r);if(void 0!==i)return i}}function N(e){let t,i,r=e.length;for(;0!==r;)i=Math.floor(Math.random()*r),r-=1,t=e[r],e[r]=e[i],e[i]=t}function L(e,t){let i=0,r=e.length,s=!1;for(;i<r;){const n=i+r>>1,a=t(e[n]);a<0?i=n+1:0===a?(s=!0,i=n+1):r=n}return{found:s,index:s?i-1:i}}function j(e,t){let i=0,r=e.length,s=!1;for(;i<r;){const n=i+r>>1,a=t(e[n]);a<0?i=n+1:0===a?(s=!0,r=n):r=n}return{found:s,index:i}}function R(e,t){let i=e.length;for(;i>0;)--i,t(e[i])||e.splice(i,1)}},1112:function(e,t,i){"use strict";i.d(t,{$_:function(){return o},Il:function(){return l}});var r=i(6490),s=i(7652),n=i(5040);function a(e){return"#"===e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function o(e){return l.fromAny(e)}class l{constructor(e){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=0|e}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+s.padString(this.r.toString(16),2)+s.padString(this.g.toString(16),2)+s.padString(this.b.toString(16),2)}toHSL(e=1){return s.rgbToHsl({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,i){const r=s.hslToRgb({h:e,s:t,l:i});return this.fromRGB(r.r,r.g,r.b)}toString(){return this.toCSSHex()}static fromHex(e){return new l(e)}static fromRGB(e,t,i){return new l((0|i)+(t<<8)+(e<<16))}static fromString(e){return new l(a(e))}static fromCSS(e){return new l(function(e){let t=(e=e.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let i="";for(let e=1;e<=3;e++){let r=parseInt(t[e]).toString(16);1==r.length&&(r="0"+r),i+=r}return a(i)}(e))}static fromAny(e){if(n.isString(e)){if("#"==e[0])return l.fromString(e);if("rgb"==e.substr(0,3))return l.fromCSS(e)}else{if(n.isNumber(e))return l.fromHex(e);if(e instanceof l)return l.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,i){const r=s.alternativeColor({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(r.r,r.g,r.b)}static interpolate(e,t,i,s="rgb"){if("hsl"==s){const s=t.toHSL(),n=i.toHSL();return l.fromHSL((0,r.w6)(e,s.h,n.h),(0,r.w6)(e,s.s,n.s),(0,r.w6)(e,s.l,n.l))}return l.fromRGB((0,r.w6)(e,t.r,i.r),(0,r.w6)(e,t.g,i.g),(0,r.w6)(e,t.b,i.b))}static lighten(e,t){const i=s.lighten({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}static brighten(e,t){const i=s.brighten({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}static saturate(e,t){const i=s.saturate({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}}},2754:function(e,t,i){"use strict";i.d(t,{U:function(){return n}});var r=i(6331),s=i(1112);class n extends r.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",s.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);const i=this.getPrivate("numColors"),r=this.get("passOptions"),n=this.get("reuse");for(let a=0;a<i;a++)if(n)t.push(t[a]);else{const i=t[a].toHSL();let n=i.h+(r.hue||0)*e;for(;n>1;)n-=1;let o=i.s+(r.saturation||0)*e;o>1&&(o=1),o<0&&(o=0);let l=i.l+(r.lightness||0)*e;for(;l>1;)l-=1;t.push(s.Il.fromHSL(n,o,l))}}getIndex(e){const t=this.get("colors",[]),i=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):null!=i?s.Il.saturate(t[e],i):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([n.className])})},9582:function(e,t,i){"use strict";i.d(t,{Q:function(){return n},k:function(){return s}});var r=i(7144);class s extends r.aV{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,i){this.processor&&this.processor.processRow(i),super._onSetIndex(e,t,i)}}class n{constructor(e){Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}incrementRef(){}decrementRef(){}}},6460:function(e,t,i){"use strict";i.d(t,{C:function(){return l}});var r=i(6331),s=i(7255),n=i(462),a=i(5040),o=i(7652);class l extends r.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i=!1){let r;void 0!==t&&""!==t||(t=this.get("dateFormat","yyyy-MM-dd"));let s=e;if(a.isObject(t))try{const e=this.get("intlLocales");return e?new Intl.DateTimeFormat(e,t).format(s):new Intl.DateTimeFormat(void 0,t).format(s)}catch(e){return"Invalid"}let n=this.parseFormat(t);const o=this._root.timezone;let l=s;return!o||this._root.utc||i||(s=o.convertLocal(s)),a.isNumber(s.getTime())?(r=this.applyFormat(s,n,i,l),this.get("capitalize")&&(r=r.replace(/^.{1}/,r.substr(0,1).toUpperCase())),r):"Invalid date"}applyFormat(e,t,i=!1,r){let s,l,h,u,c,d,p,g,f=t.template,m=e.getTime();this._root.utc&&!i?(s=e.getUTCFullYear(),l=e.getUTCMonth(),h=e.getUTCDay(),u=e.getUTCDate(),c=e.getUTCHours(),d=e.getUTCMinutes(),p=e.getUTCSeconds(),g=e.getUTCMilliseconds()):(s=e.getFullYear(),l=e.getMonth(),h=e.getDay(),u=e.getDate(),c=e.getHours(),d=e.getMinutes(),p=e.getSeconds(),g=e.getMilliseconds());for(let i=0,b=t.parts.length;i<b;i++){let b="";switch(t.parts[i]){case"G":b=this._t(s<0?"_era_bc":"_era_ad");break;case"yyyy":b=Math.abs(s).toString(),s<0&&(b+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":b=Math.abs(s).toString().substr(-t.parts[i].length),s<0&&(b+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let a=o.getWeekYear(e,this._root.utc);b="YYYY"==t.parts[i]?Math.abs(a).toString():Math.abs(a).toString().substr(-t.parts[i].length),a<0&&(b+=this._t("_era_bc"));break;case"u":case"F":case"g":break;case"q":b=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":b=this._t(this._getMonth(l)).substr(0,1);break;case"MMMM":b=this._t(this._getMonth(l));break;case"MMM":b=this._t(this._getShortMonth(l));break;case"MM":b=o.padString(l+1,2,"0");break;case"M":b=(l+1).toString();break;case"ww":b=o.padString(o.getWeek(e,this._root.utc),2,"0");break;case"w":b=o.getWeek(e,this._root.utc).toString();break;case"W":b=o.getMonthWeek(e,this._root.utc).toString();break;case"dd":b=o.padString(u,2,"0");break;case"d":b=u.toString();break;case"DD":case"DDD":b=o.padString(o.getYearDay(e,this._root.utc).toString(),t.parts[i].length,"0");break;case"D":b=o.getYearDay(e,this._root.utc).toString();break;case"t":b=this._root.language.translateFunc("_dateOrd").call(this,u);break;case"E":b=(h||7).toString();break;case"EE":b=o.padString((h||7).toString(),2,"0");break;case"EEE":case"eee":b=this._t(this._getShortWeekday(h));break;case"EEEE":case"eeee":b=this._t(this._getWeekday(h));break;case"EEEEE":case"eeeee":b=this._t(this._getShortWeekday(h)).substr(0,1);break;case"e":case"ee":b=(h-(this._root.locale.firstDayOfWeek||1)+1).toString(),"ee"==t.parts[i]&&(b=o.padString(b,2,"0"));break;case"a":b=c>=12?this._t("PM"):this._t("AM");break;case"aa":b=c>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":b=c>=12?this._t("P"):this._t("A");break;case"h":b=o.get12Hours(c).toString();break;case"hh":b=o.padString(o.get12Hours(c),2,"0");break;case"H":b=c.toString();break;case"HH":b=o.padString(c,2,"0");break;case"K":b=o.get12Hours(c,0).toString();break;case"KK":b=o.padString(o.get12Hours(c,0),2,"0");break;case"k":b=(c+1).toString();break;case"kk":b=o.padString(c+1,2,"0");break;case"m":b=d.toString();break;case"mm":b=o.padString(d,2,"0");break;case"s":b=p.toString();break;case"ss":b=o.padString(p,2,"0");break;case"S":case"SS":case"SSS":b=Math.round(g/1e3*Math.pow(10,t.parts[i].length)).toString();break;case"x":b=m.toString();break;case"n":case"nn":case"nnn":b=o.padString(g,t.parts[i].length,"0");break;case"z":b=o.getTimeZone(r||e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":b=o.getTimeZone(r||e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":b=o.getTimeZone(r||e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":b=o.getTimeZone(r||e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof n.r&&(f=f.name);const _=f?o.getTimezoneOffset(f,r||e):e.getTimezoneOffset();let v=Math.abs(_)/60,y=Math.floor(v),w=60*v-60*y;this._root.utc&&(y=0,w=0),"Z"==t.parts[i]?(b="GMT",b+=_>0?"-":"+",b+=o.padString(y,2)+":"+o.padString(w,2)):(b=_>0?"-":"+",b+=o.padString(y,2)+o.padString(w,2));break;case"i":b=e.toISOString();break;case"I":b=e.toUTCString()}f=f.replace(a.PLACEHOLDER,b)}return f}parseFormat(e){let t={template:"",parts:[]},i=s.V.chunk(e,!0);for(let e=0;e<i.length;e++){let r=i[e];if("value"===r.type){if(r.text.match(/^date$/i)){let e=this.get("dateFormat","yyyy-MM-dd");a.isString(e)||(e="yyyy-MM-dd"),r.text=e}let e=r.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(e)for(let i=0;i<e.length;i++)t.parts.push(e[i]),r.text=r.text.replace(e[i],a.PLACEHOLDER)}t.template+=r.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t,i){if(void 0===i&&(i=this._root.utc),e instanceof Date)return e;if(a.isNumber(e))return new Date(e);if("x"==t)return new Date(parseInt(e));let r;a.isString(e)||(e=e.toString());let s="";t=(t=o.cleanFormat(t)).substr(0,e.length);let n=this.parseFormat(t),l={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},h={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},u=0,c=0;for(let e=0;e<n.parts.length;e++){switch(c=e+u+1,n.parts[e]){case"yyyy":case"YYYY":s+="([0-9]{4})",l.year=c;break;case"yyy":case"YYY":s+="([0-9]{3})",l.year3=c;break;case"yy":case"YY":s+="([0-9]{2})",l.year2=c;break;case"y":case"Y":s+="([0-9]{1})",l.year1=c;break;case"MMMM":s+="("+this.getStringList(this._months()).join("|")+")",l.monthLong=c;break;case"MMM":s+="("+this.getStringList(this._shortMonths()).join("|")+")",l.monthShort=c;break;case"MM":case"M":s+="([0-9]{2}|[0-9]{1})",l.month=c;break;case"ww":case"w":s+="([0-9]{2}|[0-9]{1})",l.week=c;break;case"dd":case"d":s+="([0-9]{2}|[0-9]{1})",l.day=c;break;case"DDD":case"DD":case"D":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",l.yearDay=c;break;case"dddd":s+="("+this.getStringList(this._weekdays()).join("|")+")",l.weekdayLong=c;break;case"ddd":s+="("+this.getStringList(this._shortWeekdays()).join("|")+")",l.weekdayShort=c;break;case"aaa":case"aa":case"a":s+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",l.am=c;break;case"hh":case"h":s+="([0-9]{2}|[0-9]{1})",l.hour12Base1=c;break;case"HH":case"H":s+="([0-9]{2}|[0-9]{1})",l.hourBase0=c;break;case"KK":case"K":s+="([0-9]{2}|[0-9]{1})",l.hour12Base0=c;break;case"kk":case"k":s+="([0-9]{2}|[0-9]{1})",l.hourBase1=c;break;case"mm":case"m":s+="([0-9]{2}|[0-9]{1})",l.minute=c;break;case"ss":case"s":s+="([0-9]{2}|[0-9]{1})",l.second=c;break;case"SSS":case"SS":case"S":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",l.millisecond=c,l.millisecondDigits=n.parts[e].length;break;case"nnn":case"nn":case"n":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",l.millisecond=c;break;case"x":s+="([0-9]{1,})",l.timestamp=c;break;case"Z":s+="GMT([-+]+[0-9]{2}:[0-9]{2})",l.zone=c;break;case"ZZ":s+="([\\-+]+[0-9]{2}[0-9]{2})",l.zone=c;break;case"i":s+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",l.iso=c,u+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":u--}s+="[^0-9]*"}let d=new RegExp(s),p=e.match(d);if(p){if(l.year>-1&&(h.year=parseInt(p[l.year])),l.year3>-1){let e=parseInt(p[l.year3]);e+=1e3,h.year=e}if(l.year2>-1){let e=parseInt(p[l.year2]);e+=e>50?1e3:2e3,h.year=e}if(l.year1>-1){let e=parseInt(p[l.year1]);e=10*Math.floor((new Date).getFullYear()/10)+e,h.year=e}if(l.monthLong>-1&&(h.month=this.resolveMonth(p[l.monthLong])),l.monthShort>-1&&(h.month=this.resolveShortMonth(p[l.monthShort])),l.month>-1&&(h.month=parseInt(p[l.month])-1),l.week>-1&&-1===l.day&&(h.month=0,h.day=o.getDayFromWeek(parseInt(p[l.week]),h.year,1,i)),l.day>-1&&(h.day=parseInt(p[l.day])),l.yearDay>-1&&(h.month=0,h.day=parseInt(p[l.yearDay])),l.hourBase0>-1&&(h.hour=parseInt(p[l.hourBase0])),l.hourBase1>-1&&(h.hour=parseInt(p[l.hourBase1])-1),l.hour12Base0>-1){let e=parseInt(p[l.hour12Base0]);11==e&&(e=0),l.am>-1&&!this.isAm(p[l.am])&&(e+=12),h.hour=e}if(l.hour12Base1>-1){let e=parseInt(p[l.hour12Base1]);12==e&&(e=0),l.am>-1&&!this.isAm(p[l.am])&&(e+=12),h.hour=e}if(l.minute>-1&&(h.minute=parseInt(p[l.minute])),l.second>-1&&(h.second=parseInt(p[l.second])),l.millisecond>-1){let e=parseInt(p[l.millisecond]);2==l.millisecondDigits?e*=10:1==l.millisecondDigits&&(e*=100),h.millisecond=e}if(l.timestamp>-1){h.timestamp=parseInt(p[l.timestamp]);const e=new Date(h.timestamp);h.year=e.getUTCFullYear(),h.month=e.getUTCMonth(),h.day=e.getUTCDate(),h.hour=e.getUTCHours(),h.minute=e.getUTCMinutes(),h.second=e.getUTCSeconds(),h.millisecond=e.getUTCMilliseconds()}l.zone>-1&&(h.offset=this.resolveTimezoneOffset(new Date(h.year,h.month,h.day),p[l.zone])),l.iso>-1&&(h.year=a.toNumber(p[l.iso+0]),h.month=a.toNumber(p[l.iso+1])-1,h.day=a.toNumber(p[l.iso+2]),h.hour=a.toNumber(p[l.iso+3]),h.minute=a.toNumber(p[l.iso+4]),h.second=a.toNumber(p[l.iso+5]),h.millisecond=a.toNumber(p[l.iso+6]),"Z"==p[l.iso+7]||"z"==p[l.iso+7]?h.utc=!0:""!=p[l.iso+7]&&(h.offset=this.resolveTimezoneOffset(new Date(h.year,h.month,h.day),p[l.iso+7]))),r=h.utc?new Date(Date.UTC(h.year,h.month,h.day,h.hour,h.minute,h.second,h.millisecond)):new Date(h.year,h.month,h.day,h.hour,h.minute+h.offset,h.second,h.millisecond)}else r=new Date(e);return r}resolveTimezoneOffset(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),r=i[1],s=i[2],n=i[3],a=60*parseInt(s)+parseInt(n);return"+"==r&&(a*=-1),a-(e||new Date).getTimezoneOffset()}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1?t:(t=this._months().indexOf(e),t>-1||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0)}isAm(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let i=0;i<e.length;i++)this._root.language?t.push(o.escapeForRgex(this._t(e[i]))):t.push(o.escapeForRgex(e[i]));return t}}},7449:function(e,t,i){"use strict";i.d(t,{DM:function(){return h},FV:function(){return o},KK:function(){return s},cx:function(){return l},ku:function(){return n},rk:function(){return a}});var r=i(5071);class s{constructor(){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class n{constructor(e){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class a extends s{constructor(){super(...arguments),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_dispose(){r.each(this._disposers,(e=>{e.dispose()}))}}class o extends s{constructor(e){super(),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposers=e}_dispose(){r.each(this._disposers,(e=>{e.dispose()}))}get disposers(){return this._disposers}}class l extends s{constructor(){super(...arguments),Object.defineProperty(this,"_disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(e,t){null!=this._disposer&&this._disposer.dispose(),this._disposer=t,this._value=e}reset(){this.set(void 0,void 0)}}class h extends n{constructor(){super(...arguments),Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:0})}increment(){return++this._counter,new n((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var r=i(6331),s=i(7255),n=i(256),a=i(7652),o=i(5040);class l extends r.JH{constructor(){super(...arguments),Object.defineProperty(this,"_unitAliases",{enumerable:!0,configurable:!0,writable:!0,value:{Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}})}_setDefaults(){const e="_duration_millisecond",t="_duration_second",i="_duration_minute",r="_duration_hour",s="_duration_day",n="_duration_week",a="_duration_month",o="_minute",l="_hour",h="_day",u="_week",c="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+"_second"),minute:this._t(e+o),hour:this._t(e+l),day:this._t(e+h),week:this._t(e+u),month:this._t(e+c),year:this._t(e+d)},second:{second:this._t(t),minute:this._t(t+o),hour:this._t(t+l),day:this._t(t+h),week:this._t(t+u),month:this._t(t+c),year:this._t(t+d)},minute:{minute:this._t(i),hour:this._t(i+l),day:this._t(i+h),week:this._t(i+u),month:this._t(i+c),year:this._t(i+d)},hour:{hour:this._t(r),day:this._t(r+h),week:this._t(r+u),month:this._t(r+c),year:this._t(r+d)},day:{day:this._t(s),week:this._t(s+u),month:this._t(s+c),year:this._t(s+d)},week:{week:this._t(n),month:this._t(n+c),year:this._t(n+d)},month:{month:this._t(a),year:this._t(a+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let r=i||this.get("baseUnit");void 0!==t&&""!==t||(t=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(o.toNumber(e),void 0,r)),t=a.cleanFormat(t);let s,n=this.parseFormat(t,r),l=Number(e);s=l>this.get("negativeBase")?n.positive:l<this.get("negativeBase")?n.negative:n.zero;let h=this.applyFormat(l,s);return""!==s.color&&(h="["+s.color+"]"+h+"[/]"),h}parseFormat(e,t){let i=t||this.get("baseUnit"),r={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}},a=(e=e.replace("||",o.PLACEHOLDER2)).split("|");return r.positive.source=a[0],void 0===a[2]?r.zero=r.positive:r.zero.source=a[2],void 0===a[1]?r.negative=r.positive:r.negative.source=a[1],n.each(r,((e,t)=>{if(t.parsed)return;let i=t.source,r=[];r=t.source.match(/^\[([^\]]*)\]/),r&&r.length&&""!==r[0]&&(i=t.source.substr(r[0].length),t.color=r[1]);let n=s.V.chunk(i,!0);for(let e=0;e<n.length;e++){let i=n[e];if(i.text=i.text.replace(o.PLACEHOLDER2,"|"),"value"===i.type){i.text.match(/[yYMdDwhHKkmsSn]+a/)&&(t.absolute=!0,i.text=i.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let e=i.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(e)for(let r=0;r<e.length;r++)null==e[r]&&(e[r]=this._unitAliases[e[r]]),t.parts.push(e[r]),i.text=i.text.replace(e[r],o.PLACEHOLDER)}t.template+=i.text}t.parsed=!0})),r}applyFormat(e,t){let i=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let r=this.toTimeStamp(e,t.baseUnit),s=t.template;const l={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let e=0,i=t.parts.length;e<i;e++){let s,n=t.parts[e],a=this._toTimeUnit(n.substr(0,1));const o=this._getUnitValue(a);s=e<i-1?Math.floor(r/o):Math.round(r/o),l[a]+=s,r-=s*o}n.each(l,((e,i)=>{"millisecond"==e&&1e3==i?(l.second++,l.millisecond=0):"second"==e&&60==i?(l.minute++,l.second=0):"minute"==e&&60==i?(l.hour++,l.minute=0):"hour"==e&&24==i?(l.day++,l.hour=0):"day"==e&&7==i&&-1!==t.parts.indexOf("w")?(l.week++,l.day=0):"day"==e&&30==i?(l.month++,l.day=0):"month"==e&&12==i&&(l.year++,l.month=0)}));for(let e=0,i=t.parts.length;e<i;e++){let i=t.parts[e],r=this._toTimeUnit(i.substr(0,1)),n=i.length;s=s.replace(o.PLACEHOLDER,a.padString(l[r],n,"0"))}return i&&(s="-"+s),s}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,i){if(null!=this.get("durationFormat"))return this.get("durationFormat");if(i||(i=this.get("baseUnit")),null!=t&&e!=t){e=Math.abs(e),t=Math.abs(t);let r=this.getValueUnit(Math.max(e,t),i);return this.get("durationFormats")[i][r]}{let t=this.getValueUnit(e,i);return this.get("durationFormats")[i][t]}}getValueUnit(e,t){let i;t||(t=this.get("baseUnit"));let r=this.getMilliseconds(e,t);return n.eachContinue(this._getUnitValues(),((e,s)=>{if(e==t||i){if(r/s<=1)return i||(i=e),!1;i=e}return!0})),i}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(e,t,i){"use strict";i.r(t),i.d(t,{bounce:function(){return D},circle:function(){return u},cubic:function(){return a},elastic:function(){return S},exp:function(){return l},inOut:function(){return p},linear:function(){return s},out:function(){return d},pow:function(){return o},quad:function(){return n},sine:function(){return h},yoyo:function(){return c}});var r=i(751);function s(e){return e}function n(e){return e*e}function a(e){return e*e*e}function o(e,t){return Math.pow(e,t)}function l(e){return Math.pow(2,10*e-10)}function h(e){return 1-Math.cos(e*r.HALFPI)}function u(e){return 1-Math.sqrt(1-e*e)}function c(e){return function(t){return e(t<.5?2*t:2*(1-t))}}function d(e){return function(t){return 1-e(1-t)}}function p(e){return function(t){return t<=.5?e(2*t)/2:1-e(2*(1-t))/2}}let g=4/11,f=6/11,m=8/11,b=3/4,_=9/11,v=10/11,y=15/16,w=21/22,x=63/64,P=1/g/g;function D(e){return 1-function(e){return e<g?P*e*e:e<m?P*(e-=f)*e+b:e<v?P*(e-=_)*e+y:P*(e-=w)*e+x}(1-e)}let O=2*Math.PI,k=1,T=.3/O,M=Math.asin(1/k)*T;function S(e){let t=e;return k*Math.pow(2,10*--t)*Math.sin((M-t)/T)}},6331:function(e,t,i){"use strict";i.d(t,{JH:function(){return b},Zr:function(){return m}});var r=i(7449),s=i(9770),n=i(6490),a=i(256),o=i(9395);class l{constructor(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t,a.each(t,(e=>{this._userSettings[e]=!0}))}get(e,t){const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){a.keys(e).forEach((t=>{this.set(t,e[t])}))}_eachSetting(e){a.each(this._settings,e)}apply(){const e={stateAnimationEasing:!0,stateAnimationDuration:!0},t=this._entity.states.lookup("default");this._eachSetting(((i,r)=>{e[i]||(e[i]=!0,this!==t&&(i in t._settings||(t._settings[i]=this._entity.get(i))),this._entity.set(i,r))}))}applyAnimate(e){null==e&&(e=this._settings.stateAnimationDuration),null==e&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;null==t&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",o.cubic)));const i=this._entity.states.lookup("default"),r={stateAnimationEasing:!0,stateAnimationDuration:!0},s={};return this._eachSetting(((n,a)=>{if(!r[n]){r[n]=!0,this!=i&&(n in i._settings||(i._settings[n]=this._entity.get(n)));const o=this._entity.animate({key:n,to:a,duration:e,easing:t});o&&(s[n]=o)}})),s}}class h{constructor(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new l(this._entity,t);return this._states[e]=i,i}}remove(e){delete this._states[e]}apply(e){const t=this._states[e];t&&t.apply(),this._entity._applyState(e)}applyAnimate(e,t){let i;const r=this._states[e];return r&&(i=r.applyAnimate(t)),this._entity._applyStateAnimated(e,t),i}}var u=i(3145),c=i(5071),d=i(3540);class p{constructor(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),this._entity._markDirtyKey(e),new r.ku((()=>{c.removeFirst(i,t)&&this._entity._markDirtyKey(e)}))}remove(e){const t=this._callbacks[e];void 0!==t&&(delete this._callbacks[e],0!==t.length&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){const i=this._callbacks[e];if(void 0!==i)for(let r=0,s=i.length;r<s;++r)t=i[r](t,this._entity,e)}return t}}class g{constructor(e,t,i,r,a,o,l){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new s.p}),this._animation=e,this._from=t,this._to=i,this._duration=r,this._easing=a,this._loops=o,this._interpolate=(0,n.XG)(t,i),this._oldTime=l}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){this._stopped||this._playing||(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise(((e,t)=>{if(this._stopped)e();else{const t=()=>{i.dispose(),e()},i=this.events.on("stopped",t)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(e){null!==this._oldTime&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return this._interpolate(this._easing(e),this._from,this._to)}}let f=0;class m{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++f}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=e}_checkDirty(){a.keys(this._settings).forEach((e=>{this._userProperties[e]=!0,this._markDirtyKey(e)}))}resetUserSettings(){this._userProperties={}}_runAnimation(e){let t=n.SR.Stopped;if(!this.isDisposed()){let i=!1,r=!1;a.each(this._animatingSettings,((t,s)=>{if(s.stopped)this._stopAnimation(t);else if(s.playing){s._run(e);const r=s.percentage;r>=1?s._checkEnded()?this.set(t,s._value(1)):(i=!0,s._reset(e),this._set(t,s._value(1))):(i=!0,this._set(t,s._value(r)))}else r=!0})),a.each(this._animatingPrivateSettings,((t,s)=>{if(s.stopped)this._stopAnimationPrivate(t);else if(s.playing){s._run(e);const r=s.percentage;r>=1?s._checkEnded()?this.setPrivate(t,s._value(1)):(i=!0,s._reset(e),this._setPrivate(t,s._value(1))):(i=!0,this._setPrivate(t,s._value(r)))}else r=!0})),i?t=n.SR.Playing:r&&(t=n.SR.Paused)}return t}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new r.ku((()=>{c.removeFirst(i,t),0===i.length&&delete this._settingEvents[e]}))}off(e,t){let i=this._settingEvents[e];void 0!==i&&void 0!==t?c.removeFirst(i,t):delete this._settingEvents[e]}onPrivate(e,t){let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new r.ku((()=>{c.removeFirst(i,t),0===i.length&&delete this._privateSettingEvents[e]}))}offPrivate(e,t){let i=this._privateSettingEvents[e];void 0!==i&&void 0!==t?c.removeFirst(i,t):delete this._privateSettingEvents[e]}getRaw(e,t){const i=this._settings[e];return void 0!==i?i:t}has(e){return e in this._settings}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){const i=this._settingEvents[e];void 0!==i&&c.each(i,(i=>{i(t,this,e)}))}_sendPrivateKeyEvent(e,t){const i=this._privateSettingEvents[e];void 0!==i&&c.each(i,(i=>{i(t,this,e)}))}_setRaw(e,t,i){this._prevSettings[e]=t,this._sendKeyEvent(e,i)}setRaw(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&this._setRaw(e,i,t)}_set(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&(this._setRaw(e,i,t),this._markDirtyKey(e))}_stopAnimation(e){const t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){c.each(a.keys(this._settings),(e=>{this.remove(e)}))}getPrivate(e,t){const i=this._privateSettings[e];return void 0!==i?i:t}_setPrivateRaw(e,t,i){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,i)}setPrivateRaw(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&this._setPrivateRaw(e,i,t)}_setPrivate(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&(this._setPrivateRaw(e,i,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){const t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){a.each(e,((e,t)=>{this.set(e,t)}))}animate(e){const t=e.key,i=e.to,r=e.duration||0,s=e.loops||1,n=void 0===e.from?this.get(t):e.from,a=void 0===e.easing?o.linear:e.easing;if(0===r)this.set(t,i);else{if(void 0!==n&&n!==i){this.set(t,n);const e=this._animatingSettings[t]=new g(this,n,i,r,a,s,this._animationTime());return this._startAnimation(),e}this.set(t,i)}const l=new g(this,n,i,r,a,s,null);return l.stop(),l}animatePrivate(e){const t=e.key,i=e.to,r=e.duration||0,s=e.loops||1,n=void 0===e.from?this.getPrivate(t):e.from,a=void 0===e.easing?o.linear:e.easing;if(0===r)this.setPrivate(t,i);else{if(void 0!==n&&n!==i){this.setPrivate(t,n);const e=this._animatingPrivateSettings[t]=new g(this,n,i,r,a,s,this._animationTime());return this._startAnimation(),e}this.setPrivate(t,i)}const l=new g(this,n,i,r,a,s,null);return l.stop(),l}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class b extends m{constructor(e,t,i,r=[]){if(super(t),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new h(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new p(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=r,t.id&&this._registerId(t.id)}static new(e,t,i){const r=new this(e,t,!0);return r._template=i,r._afterNew(),r}static _new(e,t,i=[]){const r=new this(e,t,!0,i);return r._afterNew(),r}_afterNew(){this._checkDirty();let e=!1;const t=this._template;t&&(e=!0,t._setObjectTemplate(this)),c.each(this._internalTemplates,(t=>{e=!0,t._setObjectTemplate(this)})),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const e=this._template;e&&e._setObjectTemplate(this),c.each(this._internalTemplates,(e=>{e._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new s.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(e,t){const i=this.get(e);if(i)return i;{const i=t();return this.set(e,i),i}}_setDefault(e,t){this.has(e)||super.set(e,t)}_setRawDefault(e,t){this.has(e)||super.setRaw(e,t)}_clearDirty(){a.keys(this._dirty).forEach((e=>{this._dirty[e]=!1})),a.keys(this._dirtyPrivate).forEach((e=>{this._dirtyPrivate[e]=!1}))}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return-1!==this.classNames.indexOf(e)}_pushPropertyDisposer(e,t){let i=this._disposerProperties[e];return void 0===i&&(i=this._disposerProperties[e]=[]),i.push(t),t}_disposeProperty(e){const t=this._disposerProperties[e];void 0!==t&&(c.each(t,(e=>{e.dispose()})),delete this._disposerProperties[e])}set template(e){const t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){const i=this.adapters.fold(e,this._settings[e]);return void 0!==i?i:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,i){this._userProperties[t]||e===this._findTemplateByKey(t)&&super.set(t,i)}_setTemplatePrivateProperty(e,t,i){this._userPrivateProperties[t]||e===this._findTemplateByPrivateKey(t)&&super.setPrivate(t,i)}_removeTemplateProperty(e){if(!this._userProperties[e]){const t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){const t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){const t=this.states.create(e,{}),i={};this._eachTemplate((r=>{const s=r.states.lookup(e);s&&s._apply(t,i)})),a.each(t._settings,(e=>{i[e]||t._userSettings[e]||t.remove(e)}))}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),a.each(e._settings,((e,i)=>{t.settings[e]||this._userProperties[e]||(t.settings[e]=!0,super.set(e,i))})),a.each(e._privateSettings,((e,i)=>{t.privateSettings[e]||this._userPrivateProperties[e]||(t.privateSettings[e]=!0,super.setPrivate(e,i))})),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate((t=>(e(t),!1))),c.eachReverse(this._internalTemplates,e),c.each(this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();const t={settings:{},privateSettings:{},states:{}};this._eachTemplate((e=>{this._applyTemplate(e,t)})),e&&(a.each(this._settings,(e=>{this._userProperties[e]||t.settings[e]||super.remove(e)})),a.each(this._privateSettings,(e=>{this._userPrivateProperties[e]||t.privateSettings[e]||super.removePrivate(e)})))}_findTemplate(e){const t=this._findStaticTemplate(e);if(void 0===t){const t=c.findReverse(this._internalTemplates,e);return void 0===t?c.find(this._templates,e):t}return t}_findTemplateByKey(e){return this._findTemplate((t=>e in t._settings))}_findTemplateByPrivateKey(e){return this._findTemplate((t=>e in t._privateSettings))}_disposeTemplates(){c.each(this._templateDisposers,(e=>{e.dispose()})),this._templateDisposers.length=0}_removeTemplates(){c.each(this._templates,(e=>{e._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(e=!1){let t=!1;const i=[];let r=[];const s=new Set,n=this.get("themeTagsSelf");return n&&c.each(n,(e=>{s.add(e)})),this._walkParents((e=>{e===this._root._rootContainer&&(t=!0),e._defaultThemes.length>0&&i.push(e._defaultThemes);const n=e.get("themes");n&&r.push(n);const a=e.get("themeTags");a&&c.each(a,(e=>{s.add(e)}))})),r=i.concat(r),this._removeTemplates(),(t||e)&&c.eachReverse(this.classNames,(e=>{const t=[];c.each(r,(i=>{c.each(i,(i=>{const r=i._lookupRules(e);r&&c.eachReverse(r,(e=>{if(e.tags.every((e=>s.has(e)))){const i=c.getFirstSortedIndex(t,(t=>{const i=d.qu(e.tags.length,t.tags.length);return 0===i?d.wq(e.tags,t.tags,d.qu):i}));t.splice(i.index,0,e)}}))}))})),c.each(t,(e=>{this._templates.push(e.template),e.template._setObjectTemplate(this)}))})),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){const e=this.get("id");e&&this._registerId(e);const t=this._prevSettings.id;t&&(delete this._root.entitiesById[t],delete u.i_.entitiesById[t])}}_registerId(e){if(this._root.entitiesById[e]&&this._root.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');this._root.entitiesById[e]=this,u.i_.entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();const e=this._template;e&&e._removeObjectTemplate(this),c.each(this._internalTemplates,(e=>{e._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((e=>{e.dispose()})),a.each(this._disposerProperties,((e,t)=>{c.each(t,(e=>{e.dispose()}))}));const t=this.get("id");t&&(delete this._root.entitiesById[t],delete u.i_.entitiesById[t])}setTimeout(e,t){const i=setTimeout((()=>{this.removeDispose(s),e()}),t),s=new r.ku((()=>{clearTimeout(i)}));return this._disposers.push(s),s}removeDispose(e){if(!this.isDisposed()){let t=c.indexOf(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return-1!==c.indexOf(this.get("themeTags",[]),e)}addTag(e){if(!this.hasTag(e)){const t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){const t=this.get("themeTags",[]);c.remove(t,e),this.set("themeTags",t)}}_t(e,t,...i){return this._root.language.translate(e,t,...i)}get root(){return this._root}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]})},9770:function(e,t,i){"use strict";i.d(t,{p:function(){return a}});var r=i(7449),s=i(5071),n=i(5040);class a{constructor(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{s.each(e,(e=>{e.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(e){return s.any(this._listeners,(t=>(null===t.type||t.type===e)&&!t.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(0===this._iterating){const t=this._listeners.indexOf(e);if(-1===t)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,i,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((s=>{s.once!==e||s.type!==t||void 0!==i&&s.callback!==i||s.context!==r||s.disposer.dispose()}))}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&void 0===this._disabled[e]}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((t=>{t.type===e&&t.disposer.dispose()}))}has(e,t,i){return-1!==s.findIndex(this._listeners,(r=>!0!==r.once&&r.type===e&&(void 0===t||r.callback===t)&&r.context===i))}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");const t=this._disabled[e];return n.isNumber(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{s.each(this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(s.each(this._killed,(e=>{this._removeListener(e)})),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==e||i.dispatch(e,t)}))}_on(e,t,i,s,n,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,i,s);const o={type:t,callback:i,context:s,shouldClone:n,dispatch:a,killed:!1,once:e,disposer:new r.ku((()=>{o.killed=!0,this._removeListener(o)}))};return this._listeners.push(o),o}onAll(e,t,i=!0){return this._on(!1,null,e,t,i,((i,r)=>e.call(t,r))).disposer}on(e,t,i,r=!0){return this._on(!1,e,t,i,r,((e,r)=>t.call(i,r))).disposer}once(e,t,i,r=!0){const s=this._on(!0,e,t,i,r,((e,r)=>{s.disposer.dispose(),t.call(i,r)}));return s.disposer}off(e,t,i){this._removeExistingListener(!1,e,t,i)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const t=[];return s.each(e._listeners,(e=>{!e.killed&&e.shouldClone&&(null===e.type?t.push(this.onAll(e.callback,e.context)):e.once?t.push(this.once(e.type,e.callback,e.context)):t.push(this.on(e.type,e.callback,e.context)))})),new r.FV(t)}}},9821:function(e,t,i){"use strict";i.d(t,{v:function(){return s}});var r=i(6331);class s extends r.JH{}Object.defineProperty(s,"className",{enumerable:!0,configurable:!0,writable:!0,value:"InterfaceColors"}),Object.defineProperty(s,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([s.className])})},7144:function(e,t,i){"use strict";i.d(t,{aV:function(){return a},dn:function(){return o},o:function(){return l}});var r=i(9770),s=i(5071);function n(e,t){if(!(e>=0&&e<t))throw new Error("Index out of bounds: "+e)}class a{constructor(e=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new r.p}),this._values=e}get values(){return this._values}contains(e){return-1!==this._values.indexOf(e)}removeValue(e){let t=0,i=this._values.length;for(;t<i;)this._values[t]===e?(this.removeIndex(t),--i):++t}indexOf(e){return s.indexOf(this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:i})}_onSwap(e,t){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:e,b:t})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:i})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){n(e,this._values.length);const i=this._values[e];return i!==t&&(this._values[e]=t,this._onSetIndex(e,i,t)),i}insertIndex(e,t){return n(e,this._values.length+1),s.insertIndex(this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){const i=this._values.length;if(n(e,i),n(t,i),e!==t){const i=this._values[e],r=this._values[t];this._values[e]=r,this._values[t]=i,this._onSwap(i,r)}}removeIndex(e){n(e,this._values.length);const t=this._values[e];return s.removeIndex(this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let i=this.indexOf(e);if(-1!==i)if(s.removeIndex(this._values,i),null==t){const t=this._values.length;this._values.push(e),this._onMoveIndex(i,t,e)}else s.insertIndex(this._values,t,e),this._onMoveIndex(i,t,e);else null==t?(this._values.push(e),this._onPush(e)):(s.insertIndex(this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){s.each(e,(e=>{this.push(e)}))}copyFrom(e){this.pushAll(e._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){const t=this._values;this._values=[],this._onClear(t),s.each(e,(e=>{this._values.push(e),this._onPush(e)}))}clear(){this.setAll([])}*[Symbol.iterator](){const e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){s.each(this._values,e)}eachReverse(e){s.eachReverse(this._values,e)}}class o extends a{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(e,t){const i=this.autoDispose;this.autoDispose=!1,super.swap(e,t),this.autoDispose=i}_onSetIndex(e,t,i){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,i)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&s.each(e,(e=>{e.dispose()})),super._onClear(e)}_dispose(){this.autoDispose&&s.each(this._values,(e=>{e.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class l extends o{constructor(e,t){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=e,this.make=t}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(e,t,i){"use strict";i.r(t),i.d(t,{DEGREES:function(){return o},HALFPI:function(){return n},PI:function(){return s},RADIANS:function(){return a},boundsOverlap:function(){return k},ceil:function(){return h},circlesOverlap:function(){return M},closest:function(){return O},cos:function(){return f},fitAngleToRange:function(){return y},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return b},getArcPoint:function(){return _},getCubicControlPointA:function(){return u},getCubicControlPointB:function(){return c},getPointOnLine:function(){return D},getPointOnQuadraticCurve:function(){return P},inBounds:function(){return w},mergeBounds:function(){return v},normalizeAngle:function(){return m},round:function(){return l},sin:function(){return p},spiralPoints:function(){return T},tan:function(){return g}});var r=i(5040);const s=Math.PI,n=s/2,a=s/180,o=180/s;function l(e,t,i){if(!(0,r.isNumber)(t)||t<=0){let t=Math.round(e);return i&&t-e==.5&&t--,t}{let i=Math.pow(10,t);return Math.round(e*i)/i}}function h(e,t){if(!(0,r.isNumber)(t)||t<=0)return Math.ceil(e);{let i=Math.pow(10,t);return Math.ceil(e*i)/i}}function u(e,t,i,r,s){return{x:(-e.x+t.x/r+i.x)*r,y:(-e.y+t.y/s+i.y)*s}}function c(e,t,i,r,s){return{x:(e.x+t.x/r-i.x)*r,y:(e.y+t.y/s-i.y)*s}}function d(e,t,i){return Math.min(Math.max(e,t),i)}function p(e){return Math.sin(a*e)}function g(e){return Math.tan(a*e)}function f(e){return Math.cos(a*e)}function m(e){return(e%=360)<0&&(e+=360),e}function b(e,t,i,r,s){let n=Number.MAX_VALUE,a=Number.MAX_VALUE,o=-Number.MAX_VALUE,l=-Number.MAX_VALUE,h=[];h.push(_(s,i)),h.push(_(s,r));let u=Math.min(90*Math.floor(i/90),90*Math.floor(r/90)),c=Math.max(90*Math.ceil(i/90),90*Math.ceil(r/90));for(let e=u;e<=c;e+=90)e>=i&&e<=r&&h.push(_(s,e));for(let e=0;e<h.length;e++){let t=h[e];t.x<n&&(n=t.x),t.y<a&&(a=t.y),t.x>o&&(o=t.x),t.y>l&&(l=t.y)}return{left:e+n,top:t+a,right:e+o,bottom:t+l}}function _(e,t){return{x:e*f(t),y:e*p(t)}}function v(e){const t=e.length;if(t>0){let i=e[0],r=i.left,s=i.top,n=i.right,a=i.bottom;if(t>1)for(let o=1;o<t;o++)i=e[o],r=Math.min(i.left,r),n=Math.max(i.right,n),s=Math.min(i.top,s),a=Math.max(i.bottom,a);return{left:r,right:n,top:s,bottom:a}}return{left:0,right:0,top:0,bottom:0}}function y(e,t,i){if(t>i){let e=t;t=i,i=e}e=m(e);let r=(t-m(t))/360;return e<t&&(e+=360*(r+1)),e>i&&(e-360>t?e-=360:e=e<t+(i-t)/2+180?i:t),e<t&&(e=e>t+(i-t)/2-180?t:i),e}function w(e,t){return e.x>=t.left&&e.y>=t.top&&e.x<=t.right&&e.y<=t.bottom}function x(e,t){t||(t={x:2*e.x,y:2*e.y});let i=t.x-e.x,r=t.y-e.y,s=Math.atan2(r,i)*o;return s<0&&(s+=360),m(s)}function P(e,t,i,r){return{x:(1-r)*(1-r)*e.x+2*(1-r)*r*i.x+r*r*t.x,y:(1-r)*(1-r)*e.y+2*(1-r)*r*i.y+r*r*t.y}}function D(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function O(e,t){return e.reduce((function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e}))}function k(e,t){const i=e.left<t.right&&e.right>t.left,r=e.top<t.bottom&&e.bottom>t.top;return i&&r}function T(e,t,i,r,s,n,l,h,u){let c=s+.01;h=m(h),u=m(u);let d=h*a;u<h&&(u+=360);let p=[];for(;c<i+l;){let a=n;a/2>c&&(a=2*c),a*=Math.max(.01,Math.min(1,c/200));let g=d*o,f={x:e+c*Math.cos(d),y:t+c*r/i*Math.sin(d)};if(p.push(f),c=s+.01+(g-h)/360*l,d+=2*Math.asin(a/2/c),d*o>u+360*Math.ceil((i-s)/l))break}return p.shift(),p}function M(e,t){return Math.hypot(e.x-t.x,e.y-t.y)<=e.radius+t.radius}},8219:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var r=i(6331),s=i(7652),n=i(7449);let a;class o extends r.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(e,t,i){const r=t.interfaceColors,o=r.get("secondaryButton").toCSS(),l=r.get("text").toCSS(),h=r.get("alternativeBackground").toCSS(.45);if(!a){const i=new n.FV([new s.StyleRule(e,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},t.nonce),new s.StyleRule(e,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:r.get("background").toCSS(.5),"z-index":"100"},t.nonce),new s.StyleRule(e,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:r.get("background").toCSS(.5),"z-index":"101"},t.nonce),new s.StyleRule(e,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},t.nonce),new s.StyleRule(e,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:r.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+h,"box-shadow":"0px 0px 36px 0px "+h,color:l},t.nonce),new s.StyleRule(e,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},t.nonce),new s.StyleRule(e,".am5-modal-table",{display:"table",margin:"1em 0"},t.nonce),new s.StyleRule(e,".am5-modal-table-row",{display:"table-row"},t.nonce),new s.StyleRule(e,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},t.nonce),new s.StyleRule(e,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},t.nonce),new s.StyleRule(e,".am5-modal-table-cell > *",{"vertical-align":"middle"},t.nonce),new s.StyleRule(e,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+o,"border-radius":"4px",padding:"3px 5px",margin:"2px"},t.nonce),new s.StyleRule(e,".am5-modal-input-narrow",{width:"50px"},t.nonce),new s.StyleRule(e,".am5-modal-button",{"font-weight":"400",color:r.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+r.get("secondaryButtonStroke").toCSS(),background:r.get("secondaryButton").toCSS()},t.nonce),new s.StyleRule(e,".am5-modal-button:hover",{background:r.get("secondaryButtonHover").toCSS()},t.nonce),new s.StyleRule(e,".am5-modal-button.am5-modal-primary",{color:r.get("primaryButtonText").toCSS(),border:"1px solid "+r.get("primaryButtonStroke").toCSS(),background:r.get("primaryButton").toCSS()},t.nonce),new s.StyleRule(e,".am5-modal-button.am5-modal-primary:hover",{background:r.get("primaryButtonHover").toCSS()},t.nonce)]);a=new n.DM((()=>{a=void 0,i.dispose()}))}a.increment()}(s.getShadowRoot(this._root.dom),this._root);const e=document.createElement("div");e.className="am5-modal",e.style.display="none",this.root._inner.appendChild(e),this.setPrivate("container",e);const t=document.createElement("div");t.className="am5-modal-curtain",e.appendChild(t),this.setPrivate("curtain",t),this._disposers.push(s.addEventListener(t,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",e.appendChild(i),this.setPrivate("wrapper",i);const r=document.createElement("div");r.className="am5-modal-content",i.appendChild(r),this.setPrivate("content",r);const o=this.get("content");o&&(r.innerHTML=o),s.supports("keyboardevents")&&this._disposers.push(s.addEventListener(document,"keydown",(e=>{this.isOpen()&&"Escape"==s.getEventKey(e)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const e=this.getPrivate("container");e.parentElement&&e.parentElement.removeChild(e)}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Modal"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([o.className])})},780:function(e,t,i){"use strict";i.d(t,{e:function(){return l}});var r=i(6331),s=i(7255),n=i(256),a=i(7652),o=i(5040);class l extends r.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const e="_big_number_suffix_",t="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let r;(null==t||o.isString(t)&&"number"===t.toLowerCase())&&(t=this.get("numberFormat",""));let s=Number(e);if(o.isObject(t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(s):new Intl.NumberFormat(void 0,t).format(s)}catch(e){return"Invalid"}else{t=a.cleanFormat(t);let e,l=this.parseFormat(t,this._root.language);e=s>this.get("negativeBase")?l.positive:s<this.get("negativeBase")?l.negative:l.zero,null==i||e.mod||(e=n.copy(e),e.decimals.active=0==s?0:i),r=e.template.split(o.PLACEHOLDER).join(this.applyFormat(s,e))}return!0===this.get("forceLTR")&&(r=""+r),r}parseFormat(e,t){const i=t.translateEmpty("_thousandSeparator"),r=t.translateEmpty("_decimalSeparator");let a={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1}},l=(e=e.replace("||",o.PLACEHOLDER2)).split("|");return a.positive.source=l[0],void 0===l[2]?a.zero=a.positive:a.zero.source=l[2],void 0===l[1]?a.negative=a.positive:a.negative.source=l[1],n.each(a,((e,t)=>{if(t.parsed)return;let i=t.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let r=s.V.chunk(i,!0);for(let e=0;e<r.length;e++){let i=r[e];if(i.text=i.text.replace(o.PLACEHOLDER2,"|"),"value"===i.type){let e=i.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(e)if(null===e||""===e[0])t.template+=i.text;else{let r=e[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);r&&(t.mod=r[0].toLowerCase(),t.modSpacing=!!e[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let s=e[0].split(".");if(""===s[0]);else{t.thousands.active=(s[0].match(/0/g)||[]).length,t.thousands.passive=(s[0].match(/\#/g)||[]).length+t.thousands.active;let e=s[0].split(",");1===e.length||(t.thousands.interval=(e.pop()||"").length,0===t.thousands.interval&&(t.thousands.interval=-1))}void 0===s[1]||(t.decimals.active=(s[1].match(/0/g)||[]).length,t.decimals.passive=(s[1].match(/\#/g)||[]).length+t.decimals.active),t.template+=i.text.split(e[0]).join(o.PLACEHOLDER)}}else t.template+=i.text}t.parsed=!0})),a}applyFormat(e,t){let i=e<0;e=Math.abs(e);let r="",s="",n=t.mod?t.mod.split(""):[];if(-1!==n.indexOf("b")){let i=this.applyPrefix(e,this.get("bytePrefixes"),-1!==n.indexOf("!"));e=i[0],r=i[1],s=i[2],t.modSpacing&&(s=" "+s)}else if(-1!==n.indexOf("a")){let i=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),-1!==n.indexOf("!"));e=i[0],r=i[1],s=i[2],t.modSpacing&&(s=" "+s)}else if(-1!==n.indexOf("p")){let t=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(t)),r=this._root.language.translate("_percentPrefix"),s=this._root.language.translate("_percentSuffix"),""==r&&""==s&&(s="%")}else if(-1!==n.indexOf("%")){let t=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(t)),s="%"}else if(-1!==n.indexOf("‰")){let t=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(t)),s="‰"}if(-1!==n.indexOf("e")){let i;i=t.decimals.passive>=0?e.toExponential(t.decimals.passive).split("e"):e.toExponential().split("e"),e=Number(i[0]),s="e"+i[1],t.modSpacing&&(s=" "+s)}else if(0===t.decimals.passive)e=Math.round(e);else if(t.decimals.passive>0){const i=a.decimalPlaces(e);if(i>0){const r=Math.pow(10,t.decimals.passive);e=Math.round(parseFloat((e*r).toFixed(i)))/r}}let l="",h=o.numberToString(e).split("."),u=h[0];if(u.length<t.thousands.active&&(u=Array(t.thousands.active-u.length+1).join("0")+u),t.thousands.interval>0){let e=[],i=u.split("").reverse().join("");for(let r=0,s=u.length;r<=s;r+=t.thousands.interval){let s=i.substr(r,t.thousands.interval).split("").reverse().join("");""!==s&&e.unshift(s)}u=e.join(t.thousands.separator)}l+=u,1===h.length&&h.push("");let c=h[1];return c.length<t.decimals.active&&(c+=Array(t.decimals.active-c.length+1).join("0")),""!==c&&(l+=t.decimals.separator+c),""===l&&(l="0"),0!==e&&i&&-1===n.indexOf("s")&&(l="-"+l),r&&(l=r+l),s&&(l+=s),l}applyPrefix(e,t,i=!1){let r=e,s="",n="",a=!1,o=1;for(let i=0,l=t.length;i<l;i++)t[i].number<=e&&(0===t[i].number?r=0:(r=e/t[i].number,o=t[i].number),s=t[i].prefix,n=t[i].suffix,a=!0);return!a&&i&&t.length&&0!=e&&(r=e/t[0].number,s=t[0].prefix,n=t[0].suffix,a=!0),a&&(r=parseFloat(r.toPrecision(Math.min(o.toString().length+Math.floor(r).toString().replace(/[^0-9]*/g,"").length,21)))),[r,s,n]}escape(e){return e.replace("||",o.PLACEHOLDER2)}unescape(e){return e.replace(o.PLACEHOLDER2,"|")}}},256:function(e,t,i){"use strict";i.r(t),i.d(t,{copy:function(){return a},each:function(){return o},eachContinue:function(){return l},eachOrdered:function(){return h},hasKey:function(){return u},keys:function(){return s},keysOrdered:function(){return n},softCopyProperties:function(){return c}});var r=i(5071);function s(e){return Object.keys(e)}function n(e,t){return s(e).sort(t)}function a(e){return Object.assign({},e)}function o(e,t){s(e).forEach((i=>{t(i,e[i])}))}function l(e,t){for(let i in e)if(u(e,i)&&!t(i,e[i]))break}function h(e,t,i){r.each(n(e,i),(i=>{t(i,e[i])}))}function u(e,t){return{}.hasOwnProperty.call(e,t)}function c(e,t){return o(e,((e,i)=>{null!=i&&null==t[e]&&(t[e]=i)})),t}},3540:function(e,t,i){"use strict";function r(e,t){return e===t?0:e<t?-1:1}function s(e,t,i){const s=e.length,n=t.length,a=Math.min(s,n);for(let r=0;r<a;++r){const s=i(e[r],t[r]);if(0!==s)return s}return r(s,n)}function n(e,t){return e===t?0:e<t?-1:1}i.d(t,{HO:function(){return n},qu:function(){return r},wq:function(){return s}})},6245:function(e,t,i){"use strict";i.d(t,{AQ:function(){return a},CI:function(){return o},aQ:function(){return s},gG:function(){return r},hU:function(){return l},p0:function(){return n}});class r{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,i){return e instanceof r?e:new r(t===i?0:100*Math.min(Math.max(1/(i-t)*(e-t),0),1))}}function s(e){return new r(e)}const n=s(0),a=s(100),o=s(50);function l(e){return e instanceof r}},2132:function(e,t,i){"use strict";i.d(t,{q:function(){return o}});var r=i(5040),s=i(7652),n=i(4596),a=i(7255);function o(e,t){if(null!=t){t=""+t;let i,r=(t=a.V.escape(t)).match(/\{([^}]+)\}/g);if(r)for(i=0;i<r.length;i++){let s=l(e,r[i].replace(/\{([^}]+)\}/,"$1"),"");null==s&&(s=""),t=t.split(r[i]).join(s)}t=a.V.unescape(t)}else t="";return t}function l(e,t,i){let n;const a=e.dataItem;let o,h=[],c=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;for(;o=c.exec(t),null!==o;)if(o[3]){h.push({prop:o[3]});const t=e.getDateFormatter().get("dateFields",[]),i=e.getNumberFormatter().get("numericFields",[]),r=e.getDurationFormatter().get("durationFields",[]);-1!==t.indexOf(o[3])?h.push({method:"formatDate",params:[]}):-1!==i.indexOf(o[3])?h.push({method:"formatNumber",params:[]}):-1!==r.indexOf(o[3])&&h.push({method:"formatDuration",params:[]})}else{let e=[];if(""!=s.trim(o[2])){let t,i=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g;for(;t=i.exec(o[2]),null!==t;)e.push(t[1]||t[2]||t[3])}h.push({method:o[1],params:e})}if(a){n=u(e,h,a._settings),(null==n||r.isObject(n))&&(n=u(e,h,a));let s=a.dataContext;null==n&&s&&(n=u(e,h,s),null==n&&(n=u(e,[{prop:t}],s)),null==n&&s.dataContext&&(n=u(e,h,s.dataContext))),null==n&&a.component&&a.component.dataItem!==a&&(n=l(a.component,t,i))}return null==n&&(n=u(e,h,e)),null==n&&e.parent&&(n=l(e.parent,t,i)),n}function h(e,t){const i=e.getPrivate("customData");if(r.isObject(i))return i[t]}function u(e,t,i,a){let o=i,l=!1;for(let s=0,u=t.length;s<u;s++){let u=t[s];if(u.prop){if(o instanceof n.j){let e=o.get(u.prop);null==e&&(e=o.getPrivate(u.prop)),null==e&&(e=h(o,u.prop)),null==e&&(e=o[u.prop]),o=e}else if(o.get){let e=o.get(u.prop);null==e&&(e=o[u.prop]),o=e}else o=o[u.prop];if(null==o)return}else switch(u.method){case"formatNumber":let t=r.toNumber(o);null!=t&&(o=e.getNumberFormatter().format(t,a||u.params[0]||void 0),l=!0);break;case"formatDate":let s=r.toDate(o);if(!r.isDate(s)||r.isNaN(s.getTime()))return;null!=s&&(o=e.getDateFormatter().format(s,a||u.params[0]||void 0),l=!0);break;case"formatDuration":let n=r.toNumber(o);null!=n&&(o=e.getDurationFormatter().format(n,a||u.params[0]||void 0,u.params[1]||void 0),l=!0);break;case"urlEncode":case"encodeURIComponent":o=encodeURIComponent(o);break;default:o[u.method]&&o[u.method].apply(i,u.params)}}if(!l){let t=[{method:"",params:a}];if(null==a)r.isNumber(o)?(t[0].method="formatNumber",t[0].params=""):r.isDate(o)&&(t[0].method="formatDate",t[0].params="");else{let e=s.getFormat(a);"number"===e?t[0].method="formatNumber":"date"===e?t[0].method="formatDate":"duration"===e&&(t[0].method="formatDuration")}t[0].method&&(o=u(e,t,o))}return o}},5769:function(e,t,i){"use strict";i.d(t,{YS:function(){return d}});var r=i(9770),s=i(7449),n=i(5071),a=i(256),o=i(5040);function l(e){a.each(e,((e,t)=>{o.isObject(t)&&"function"==typeof t.dispose&&(t.enableDispose=!0,t.dispose())}))}class h{constructor(e,t,i){Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._name=e,this._template=t,this._settings=i}_dispose(){l(this._settings)}get(e,t){const i=this._settings[e];return void 0!==i?i:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){a.keys(e).forEach((t=>{this._settings[t]=e[t]})),this._template._stateChanged(this._name)}_apply(e,t){a.each(this._settings,((i,r)=>{t[i]||e._userSettings[i]||(t[i]=!0,e.setRaw(i,r))}))}}class u{constructor(e){Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._template=e}_dispose(){a.each(this._states,((e,t)=>{t._dispose()}))}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new h(e,this._template,t);return this._states[e]=i,this._template._stateChanged(e),i}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){a.each(this._states,((i,r)=>{let s=t.states[i];null==s&&(s=t.states[i]={});const n=e.states.create(i,{});r._apply(n,s)}))}}class c{constructor(){Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),new s.ku((()=>{n.removeFirst(i,t),0===i.length&&delete this._callbacks[e]}))}remove(e){void 0!==this._callbacks[e]&&delete this._callbacks[e]}_apply(e){const t=[];return a.each(this._callbacks,((i,r)=>{n.each(r,(r=>{t.push(e.adapters.add(i,r))}))})),new s.FV(t)}}class d{constructor(e,t){if(Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entities",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new u(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new c}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new r.p}),Object.defineProperty(this,"setup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new d(e,!0)}_dispose(){l(this._settings),l(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(e,t){this._checkDisposed();const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._checkDisposed(),this._settings[e]=t}set(e,t){this._checkDisposed(),this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach((i=>{i._setTemplateProperty(this,e,t)})))}remove(e){this._checkDisposed(),e in this._settings&&(delete this._settings[e],this._entities.forEach((t=>{t._removeTemplateProperty(e)})))}removeAll(){this._checkDisposed(),a.each(this._settings,((e,t)=>{this.remove(e)}))}getPrivate(e,t){this._checkDisposed();const i=this._privateSettings[e];return void 0!==i?i:t}setPrivateRaw(e,t){return this._checkDisposed(),this._privateSettings[e]=t,t}setPrivate(e,t){return this._checkDisposed(),this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,e,t)}))),t}removePrivate(e){this._checkDisposed(),e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach((t=>{t._removeTemplatePrivateProperty(e)})))}setAll(e){this._checkDisposed(),a.each(e,((e,t)=>{this.set(e,t)}))}on(e,t){this._checkDisposed();let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new s.ku((()=>{n.removeFirst(i,t),0===i.length&&delete this._settingEvents[e]}))}onPrivate(e,t){this._checkDisposed();let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new s.ku((()=>{n.removeFirst(i,t),0===i.length&&delete this._privateSettingEvents[e]}))}_apply(e,t){this._checkDisposed();const i=[];return a.each(this._settingEvents,((t,r)=>{n.each(r,(r=>{i.push(e.on(t,r))}))})),a.each(this._privateSettingEvents,((t,r)=>{n.each(r,(r=>{i.push(e.onPrivate(t,r))}))})),this.states._apply(e,t),i.push(this.adapters._apply(e)),i.push(e.events.copyFrom(this.events)),new s.FV(i)}_setObjectTemplate(e){this._checkDisposed(),this._entities.push(e)}_removeObjectTemplate(e){n.remove(this._entities,e)}_stateChanged(e){this._checkDisposed(),this._entities.forEach((t=>{t._applyStateByKey(e)}))}}},7255:function(e,t,i){"use strict";i.d(t,{V:function(){return n}});var r=i(1112),s=i(5040);class n{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,i=!1){let r=[];e=this.escape(e);let n=t?e.split("'"):[e];for(let e=0;e<n.length;e++){let t=n[e];if(""!==t)if(e%2==0){t=t.replace(/\]\[/g,"]"+s.PLACEHOLDER+"["),t=t.replace(/\[\]/g,"[ ]");let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let n=this.cleanUp(this.unescape(e[t]));n!==s.PLACEHOLDER&&""!==n&&(t%2==0?r.push({type:"value",text:n}):r.push({type:i?"value":"format",text:"["+n+"]"}))}}else{let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let i=this.cleanUp(this.unescape(e[t]));""!==i&&(t%2==0?r.push({type:"text",text:i}):this.isImage(i)?r.push({type:"image",text:"["+i+"]"}):r.push({type:"format",text:"["+i+"]"}))}}}return r}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(""==e||"[ ]"==e)return{};const i=e.match(/('[^']*')|("[^"]*")/gi);if(i)for(let t=0;t<i.length;t++)e=e.replace(i[t],i[t].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let s=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!s)return{};for(let e=0;e<s.length;e++)if(s[e].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=s[e];else if(s[e].match(/^(underline|line-through)$/i))t.textDecoration=s[e];else if("/"==s[e]);else if(s[e].match(/:/)){const i=s[e].replace("+"," ").split(/:[ ]*/);t[i[0]]=i[1]}else t.fill=r.Il.fromString(s[e]);return t}}Object.defineProperty(n,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"})},1926:function(e,t,i){"use strict";i.r(t),i.d(t,{add:function(){return f},checkChange:function(){return g},chooseInterval:function(){return _},copy:function(){return p},getDateIntervalDuration:function(){return u},getDuration:function(){return l},getIntervalDuration:function(){return h},getNextUnit:function(){return o},getTime:function(){return d},getUnitValue:function(){return v},now:function(){return c},roun:function(){return m},round:function(){return b},sleep:function(){return n},timeUnitDurations:function(){return a}});var r=i(5040),s=i(7652);function n(e){return new Promise(((t,i)=>{setTimeout(t,e)}))}let a={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function o(e){switch(e){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function l(e,t){return null==t&&(t=1),a[e]*t}function h(e){return e?a[e.timeUnit]*e.count:0}function u(e,t,i,r,s){const n=e.timeUnit,o=e.count;if("hour"==n||"minute"==n||"second"==n||"millisecond"==n)return a[e.timeUnit]*e.count;{const e=b(new Date(t.getTime()),n,o,i,r,void 0,s).getTime();let a=e+o*l(n)*1.05;return a=b(new Date(a),n,1,i,r,void 0,s).getTime(),a-e}}function c(){return new Date}function d(){return c().getTime()}function p(e){return new Date(e.getTime())}function g(e,t,i,r,s){if(t-e>l(i,1.2))return!0;let n=new Date(e),a=new Date(t);s&&(n=s.convertLocal(n),a=s.convertLocal(a));let h=0,u=0;r||"millisecond"==i||(h=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-h),u=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-u));let c=!1;switch(i){case"year":n.getUTCFullYear()!=a.getUTCFullYear()&&(c=!0);break;case"month":(n.getUTCFullYear()!=a.getUTCFullYear()||n.getUTCMonth()!=a.getUTCMonth())&&(c=!0);break;case"day":(n.getUTCMonth()!=a.getUTCMonth()||n.getUTCDate()!=a.getUTCDate())&&(c=!0);break;case"hour":n.getUTCHours()!=a.getUTCHours()&&(c=!0);break;case"minute":n.getUTCMinutes()!=a.getUTCMinutes()&&(c=!0);break;case"second":n.getUTCSeconds()!=a.getUTCSeconds()&&(c=!0);break;case"millisecond":n.getTime()!=a.getTime()&&(c=!0)}if(c)return c;let d=o(i);return!!d&&g(e,t,d,r,s)}function f(e,t,i,r,s){let n=0;switch(r||"millisecond"==t||(n=e.getTimezoneOffset(),s&&(n-=s.offsetUTC(e)),e.setUTCMinutes(e.getUTCMinutes()-n)),t){case"day":let t=e.getUTCDate();e.setUTCDate(t+i);break;case"second":let r=e.getUTCSeconds();e.setUTCSeconds(r+i);break;case"millisecond":let s=e.getUTCMilliseconds();e.setUTCMilliseconds(s+i);break;case"hour":let n=e.getUTCHours();e.setUTCHours(n+i);break;case"minute":let a=e.getUTCMinutes();e.setUTCMinutes(a+i);break;case"year":let o=e.getUTCFullYear();e.setUTCFullYear(o+i);break;case"month":const l=e.getUTCDate(),h=new Date(e.getUTCFullYear(),e.getUTCMonth(),0).getUTCDate();let u=e.getUTCMonth();l>h?e.setUTCMonth(u+i,h):e.setUTCMonth(u+i);break;case"week":let c=e.getUTCDate();e.setUTCDate(c+7*i)}if(!r&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+n),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(s&&(t+=s.offsetUTC(e)),t!=n){let i=t-n;e.setUTCMinutes(e.getUTCMinutes()+i),e.getTimezoneOffset()!=t&&e.setUTCMinutes(e.getUTCMinutes()-i)}}return e}function m(e,t,i,r,s){let n;return null!=s&&(n=new Date(s)),b(new Date(e),t,i,r.locale.firstDayOfWeek,r.utc,n,r.timezone).getTime()}function b(e,t,i,s,n,a,o){if(!o||n){let o=0;switch(n||"millisecond"==t||(o=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-o)),t){case"day":let t=e.getUTCDate();if(i>1){if(a){a=b(a,"day",1);let t=e.getTime()-a.getTime(),r=Math.floor(t/l("day")/i),s=l("day",r*i);e.setTime(a.getTime()+s-o*l("minute"))}}else e.setUTCDate(t);e.setUTCHours(0,0,0,0);break;case"second":let n=e.getUTCSeconds();i>1&&(n=Math.floor(n/i)*i),e.setUTCSeconds(n,0);break;case"millisecond":if(1==i)return e;let h=e.getUTCMilliseconds();h=Math.floor(h/i)*i,e.setUTCMilliseconds(h);break;case"hour":let u=e.getUTCHours();i>1&&(u=Math.floor(u/i)*i),e.setUTCHours(u,0,0,0);break;case"minute":let c=e.getUTCMinutes();i>1&&(c=Math.floor(c/i)*i),e.setUTCMinutes(c,0,0);break;case"month":let d=e.getUTCMonth();i>1&&(d=Math.floor(d/i)*i),e.setUTCMonth(d,1),e.setUTCHours(0,0,0,0);break;case"year":let p=e.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),e.setUTCFullYear(p,0,1),e.setUTCHours(0,0,0,0);break;case"week":if(i>1&&a){a=b(a,"week",1);let t=e.getTime()-a.getTime(),r=Math.floor(t/l("week")/i),s=l("week",r*i);e.setTime(a.getTime()+s-o*l("minute"))}let g=e.getUTCDate(),f=e.getUTCDay();r.isNumber(s)||(s=1),g=f>=s?g-f+s:g-(7+f)+s,e.setUTCDate(g),e.setUTCHours(0,0,0,0)}if(!n&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+o),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=o){let i=t-o;e.setUTCMinutes(e.getUTCMinutes()+i)}}return e}{if(isNaN(e.getTime()))return e;let h=e.getTime(),u=o.offsetUTC(e),c=e.getTimezoneOffset(),d=o.parseDate(e),p=d.year,g=d.month,f=d.day,m=d.hour,_=d.minute,v=d.second,y=d.millisecond,w=d.weekday,x=u-c;switch(t){case"day":if(i>1&&a){a=b(a,"day",1,s,n,void 0,o);let t=e.getTime()-a.getTime(),r=Math.floor(t/l("day")/i),h=l("day",r*i);e.setTime(a.getTime()+h),d=o.parseDate(e),p=d.year,g=d.month,f=d.day}m=0,_=x,v=0,y=0;break;case"second":_+=x,i>1&&(v=Math.floor(v/i)*i),y=0;break;case"millisecond":_+=x,i>1&&(y=Math.floor(y/i)*i);break;case"hour":i>1&&(m=Math.floor(m/i)*i),_=x,v=0,y=0;break;case"minute":i>1&&(_=Math.floor(_/i)*i),_+=x,v=0,y=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,m=0,_=x,v=0,y=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,m=0,_=x,v=0,y=0;break;case"week":r.isNumber(s)||(s=1),f=w>=s?f-w+s:f-(7+w)+s,m=0,_=x,v=0,y=0}const P=(e=new Date(p,g,f,m,_,v,y)).getTime();let D=36e5;"hour"==t&&(D=36e5*i),P+D<=h&&("hour"!=t&&"minute"!=t&&"second"!=t&&"millisecond"!=t||(e=new Date(P+D)));let O=e.getTimezoneOffset(),k=o.offsetUTC(e)-O;return k!=x&&e.setTime(e.getTime()+6e4*(k-x)),e}}function _(e,t,i,r){let s=h(r[e]),n=r.length-1;if(e>=n)return Object.assign({},r[n]);let a=Math.ceil(t/s);return t<s&&e>0?Object.assign({},r[e-1]):a<=i?Object.assign({},r[e]):e+1<r.length?_(e+1,t,i,r):Object.assign({},r[e])}function v(e,t){switch(t){case"day":return e.getDate();case"second":return e.getSeconds();case"millisecond":return e.getMilliseconds();case"hour":return e.getHours();case"minute":return e.getMinutes();case"month":return e.getMonth();case"year":return e.getFullYear();case"week":return s.getWeek(e)}}},462:function(e,t,i){"use strict";function r(e,t){let i=0,r=0,s=1,n=0,a=0,o=0,l=0,h=0;return e.formatToParts(t).forEach((e=>{switch(e.type){case"year":i=+e.value;break;case"month":r=+e.value-1;break;case"day":s=+e.value;break;case"hour":n=+e.value;break;case"minute":a=+e.value;break;case"second":o=+e.value;break;case"fractionalSecond":l=+e.value;break;case"weekday":switch(e.value){case"Sun":h=0;break;case"Mon":h=1;break;case"Tue":h=2;break;case"Wed":h=3;break;case"Thu":h=4;break;case"Fri":h=5;break;case"Sat":h=6}}})),24===n&&(n=0),{year:i,month:r,day:s,hour:n,minute:a,second:o,millisecond:l,weekday:h}}function s(e,t){const{year:i,month:s,day:n,hour:a,minute:o,second:l,millisecond:h}=r(e,t);return Date.UTC(i,s,n,a,o,l,h)}i.d(t,{r:function(){return n}});class n{constructor(e,t){if(Object.defineProperty(this,"_utc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dtf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){const t=this.offsetUTC(e),i=e.getTimezoneOffset(),r=new Date(e);r.setUTCMinutes(r.getUTCMinutes()-(t-i));const s=r.getTimezoneOffset();return i!=s&&r.setUTCMinutes(r.getUTCMinutes()+s-i),r}offsetUTC(e){return(s(this._utc,e)-s(this._dtf,e))/6e4}parseDate(e){return r(this._dtf,e)}}},5040:function(e,t,i){"use strict";function r(e){return Number(e)!==e}function s(e){return{}.toString.call(e)}function n(e,t="Assertion failed"){if(!e)throw new Error(t)}function a(e){if(null!=e&&!d(e)){let t=Number(e);return r(t)&&c(e)&&""!=e&&e.match(/[0-9]+/)?a(e.replace(/[^0-9.\-]+/g,"")):t}return e}function o(e){if(u(e))return new Date(e);if(d(e))return new Date(e);{let t=Number(e);return d(t)?new Date(t):new Date(e)}}function l(e){if(r(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e&&1/e==-1/0)return"-0";let t=e<0;e=Math.abs(e);let i,s=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+e),n=s[1],a=s[2]||"";if(void 0===s[3])i=""===a?n:n+"."+a;else{let t=+s[3];if(e<1)i="0."+h("0",t-1)+n+a;else{let e=t-a.length;i=0===e?n+a:e<0?n+a.slice(0,e)+"."+a.slice(e):n+a+h("0",e)}}return t?"-"+i:i}function h(e,t){return new Array(t+1).join(e)}function u(e){return"[object Date]"===s(e)}function c(e){return"string"==typeof e}function d(e){return"number"==typeof e&&Number(e)==e}function p(e){return"object"==typeof e&&null!==e}function g(e){return Array.isArray(e)}i.r(t),i.d(t,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return m},assert:function(){return n},getType:function(){return s},isArray:function(){return g},isDate:function(){return u},isNaN:function(){return r},isNumber:function(){return d},isObject:function(){return p},isString:function(){return c},numberToString:function(){return l},repeat:function(){return h},toDate:function(){return o},toNumber:function(){return a}});const f="__§§§__",m="__§§§§__"},7652:function(e,t,i){"use strict";i.r(t),i.d(t,{StyleRule:function(){return T},StyleSheet:function(){return M},addClass:function(){return S},addEventListener:function(){return h},addSpacing:function(){return G},alternativeColor:function(){return de},blur:function(){return p},brighten:function(){return le},capitalizeFirst:function(){return te},cleanFormat:function(){return Y},contains:function(){return y},decimalPlaces:function(){return L},escapeForRgex:function(){return X},focus:function(){return g},get12Hours:function(){return q},getBrightnessStep:function(){return he},getDayFromWeek:function(){return Q},getEventKey:function(){return P},getEventTarget:function(){return v},getFormat:function(){return B},getLightnessStep:function(){return oe},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return A},getShadowRoot:function(){return D},getStyle:function(){return _},getTimeZone:function(){return J},getTimezoneOffset:function(){return ee},getWeek:function(){return Z},getWeekYear:function(){return $},getYearDay:function(){return W},hslToHsv:function(){return ne},hslToRgb:function(){return ie},hsvToHsl:function(){return se},iOS:function(){return C},isLight:function(){return ue},isLocalEvent:function(){return w},isTouchEvent:function(){return m},lighten:function(){return ae},mergeTags:function(){return pe},onZoom:function(){return u},padString:function(){return j},plainText:function(){return z},ready:function(){return o},relativeToValue:function(){return N},removeClass:function(){return E},removeElement:function(){return l},rgbToHsl:function(){return re},sameBounds:function(){return ge},saturate:function(){return ce},setInteractive:function(){return x},setStyle:function(){return b},splitString:function(){return V},stripTags:function(){return H},supports:function(){return c},trim:function(){return I},trimLeft:function(){return R},trimRight:function(){return F},truncateTextWithEllipsis:function(){return U}});var r=i(5040),s=i(5071),n=i(256),a=i(7449);function o(e){if("loading"!==document.readyState)e();else{const t=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,i,r){return e.addEventListener(t,i,r||!1),new a.ku((()=>{e.removeEventListener(t,i,r||!1)}))}function u(e){return h(window,"resize",(t=>{e()}))}function c(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(e){return e.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function g(e){e&&e.focus()}function f(e){if(c("pointerevents"))return e;if(c("touchevents"))switch(e){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(c("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function m(e){if("undefined"!=typeof Touch&&e instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&e instanceof PointerEvent&&null!=e.pointerType)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(null!=e.type&&e.type.match(/^mouse/))return!1;return!0}function b(e,t,i){e.style[t]=i}function _(e,t){return e.style[t]}function v(e){if(e.composedPath){const t=e.composedPath();return 0===t.length?null:t[0]}return e.target}function y(e,t){let i=t;for(;;){if(e===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function w(e,t){return e.target&&y(t.root.dom,e.target)}function x(e,t){e.style.pointerEvents=t?"auto":"none"}function P(e){if(void 0!==e.key)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function D(e){let t=e;for(;;){if(null===t.parentNode)return null!=t.host?t:null;t=t.parentNode}}let O;function k(e,t){const i=e.cssRules.length;return e.insertRule(t+"{}",i),e.cssRules[i]}class T extends a.KK{constructor(e,t,i,r=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=function(e,t=""){if(null===e){if(null==O){const e=document.createElement("style");e.type="text/css",""!=t&&e.setAttribute("nonce",t),document.head.appendChild(e),O=e.sheet}return O}{const i=document.createElement("style");return i.type="text/css",""!=t&&i.setAttribute("nonce",t),e.appendChild(i),i.sheet}}(e,r);try{this._rule=k(this._root,t)}catch(e){this._rule=k(this._root,":not(*)")}n.each(i,((e,t)=>{this.setStyle(e,t)}))}set selector(e){this._rule.selectorText=e}get selector(){return this._rule.selectorText}_dispose(){const e=s.indexOf(this._root.cssRules,this._rule);if(-1===e)throw new Error("Could not dispose StyleRule");this._root.deleteRule(e)}_setVendorPrefixName(e,t){const i=this._rule.style;i.setProperty("-webkit-"+e,t,""),i.setProperty("-moz-"+e,t,""),i.setProperty("-ms-"+e,t,""),i.setProperty("-o-"+e,t,""),i.setProperty(e,t,"")}setStyle(e,t){"transition"===e?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")}}class M extends a.KK{constructor(e,t,i=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=function(e,t,i=""){const r=document.createElement("style");return r.type="text/css",""!=i&&r.setAttribute("nonce",i),r.textContent=t,null===e?document.head.appendChild(r):e.appendChild(r),r}(e,t,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function S(e,t){if(e)if(e.classList){const i=t.split(" ");s.each(i,(t=>{e.classList.add(t)}))}else{let i=e.getAttribute("class");i?e.setAttribute("class",i.split(" ").filter((e=>e!==t)).join(" ")+" "+t):e.setAttribute("class",t)}}function E(e,t){if(e)if(e.classList)e.classList.remove(t);else{let i=e.getAttribute("class");i&&e.setAttribute("class",i.split(" ").filter((e=>e!==t)).join(" "))}}function C(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function A(){return C()?1:void 0}function N(e,t){return r.isNumber(e)?e:null!=e&&r.isNumber(e.value)&&r.isNumber(t)?t*e.value:0}function L(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function j(e,t=0,i="0"){return"string"!=typeof e&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(i)+e:e}function R(e){return e.replace(/^[\s]*/,"")}function F(e){return e.replace(/[\s]*$/,"")}function I(e){return R(F(e))}function U(e,t,i=!1,r="..."){if(e.length>t){let s=t-1;for(;s>=0&&e.charAt(s).match(/\w/);)s--;return s>=0&&0==i?e.substring(0,s+1)+"...":e.substring(0,t)+r}return e}function B(e){if(void 0===e)return"string";let t=(e=(e=(e=e.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return t?t[1]:"number"===e?"number":"date"===e?"date":"duration"===e?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Y(e){return e.replace(/\/(date|number|duration)$/i,"")}function H(e){return e?e.replace(/<[^>]*>/g,""):e}function z(e){return e?H((""+e).replace(/[\n\r]+/g,". ")):e}function X(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function G(e){let t="";for(let i=0;i<e.length;i++){const r=e.charAt(i);r.toUpperCase()==r&&0!=i&&(t+=" "),t+=r}return t}function V(e){const t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,i=/([^اأدذرزو]*[اأدذرزو])/gi;let r=e.split(/(\s+)/),s=[];return r.forEach((e=>{if(e.match(/^\s+$/))(e=" ")&&(e=" "),s.push(e);else if(t.test(e)){let t=e.split(i).filter((e=>""!==e));s=s.concat(t)}else s=s.concat([...e])})),s}function W(e,t=!1){const i=new Date(e.getFullYear(),0,0),r=e.getTime()-i.getTime()+60*(i.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}function Z(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-r);const s=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-s.getTime())/864e5+1)/7)}function $(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-r),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(e,t=!1){const i=Z(new Date(e.getFullYear(),e.getMonth(),1),t);let r=Z(e,t);return 1==r&&(r=53),r-i+1}function Q(e,t,i=1,r=!1){let s=new Date(t,0,4,0,0,0,0);return r&&s.setUTCFullYear(t),7*e+i-((s.getDay()||7)+3)}function q(e,t){return e>12?e-=12:0===e&&(e=12),null!=t?e+(t-1):e}function J(e,t=!1,i=!1,r=!1,s){if(r)return t?"Coordinated Universal Time":"UTC";if(s){const i=e.toLocaleString("en-US",{timeZone:s});return I(e.toLocaleString("en-US",{timeZone:s,timeZoneName:t?"long":"short"}).substr(i.length))}let n=e.toLocaleString("UTC"),a=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(n.length);return!1===i&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),I(a)}function ee(e,t){const i=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),r=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:e})).getTime()-r.getTime())/6e4*-1}function te(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ie(e){let t,i,r,s=e.h,n=e.s,a=e.l;if(0==n)t=i=r=a;else{let e=function(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},o=a<.5?a*(1+n):a+n-a*n,l=2*a-o;t=e(l,o,s+1/3),i=e(l,o,s),r=e(l,o,s-1/3)}return{r:Math.round(255*t),g:Math.round(255*i),b:Math.round(255*r)}}function re(e){let t=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(t,i,r),n=Math.min(t,i,r),a=0,o=0,l=(s+n)/2;if(s===n)a=o=0;else{let e=s-n;switch(o=l>.5?e/(2-s-n):e/(s+n),s){case t:a=(i-r)/e+(i<r?6:0);break;case i:a=(r-t)/e+2;break;case r:a=(t-i)/e+4}a/=6}return{h:a,s:o,l:l}}function se(e){const t=e.v*(1-e.s/2),i=0===t||1===t?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:i,l:t,a:e.a}}function ne(e){const t=e.l+e.s*Math.min(e.l,1-e.l),i=0===t?0:2*(1-e.l/t);return{h:e.h,s:i,v:t,a:e.a}}function ae(e,t){return e?{r:Math.max(0,Math.min(255,e.r+oe(e.r,t))),g:Math.max(0,Math.min(255,e.g+oe(e.g,t))),b:Math.max(0,Math.min(255,e.b+oe(e.b,t))),a:e.a}:e}function oe(e,t){let i=t>0?255-e:e;return Math.round(i*t)}function le(e,t){if(e){let i=oe(Math.min(Math.max(e.r,e.g,e.b),230),t);return{r:Math.max(0,Math.min(255,Math.round(e.r+i))),g:Math.max(0,Math.min(255,Math.round(e.g+i))),b:Math.max(0,Math.min(255,Math.round(e.b+i))),a:e.a}}return e}function he(e,t){return Math.round(255*t)}function ue(e){return(299*e.r+587*e.g+114*e.b)/1e3>=128}function ce(e,t){if(void 0===e||1==t)return e;let i=re(e);return i.s=t,ie(i)}function de(e,t={r:255,g:255,b:255},i={r:255,g:255,b:255}){let r=t,s=i;return ue(i)&&(r=i,s=t),ue(e)?s:r}function pe(e,t){return e||(e=[]),[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t))}function ge(e,t){return!!t&&e.left==t.left&&e.right==t.right&&e.top==t.top&&e.bottom==t.bottom}},3360:function(e,t,i){"use strict";i.d(t,{z:function(){return y},m:function(){return w}});var r=i(7582),s=i(6331),n=i(4596),a=i(8777),o=i(1112),l=i(6245),h=i(5769),u=i(5040),c=i(5071),d=i(256),p={AccelerationBands:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((function(){if(!i.m[396]){var e=new Error("Module '396' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(396)})).then((e=>e.Annotator)),ArcDiagram:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Aroon)),AverageSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.AwesomeOscillator)),Axis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.Axis)),AxisBullet:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisBullet)),AxisLabel:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisRendererY)),AxisTick:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.BullBearPower)),Bullet:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Bullet)),Button:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Button)),CalloutSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.CalloutSeries)),Candlestick:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ChaikinOscillator)),Chart:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Chart)),ChartIndicator:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ChartIndicator)),Chord:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.Chord)),ChordDirected:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ChordDirected)),ChordLink:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.ChordNonRibbon)),Circle:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Circle)),CirclePattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.CirclePattern)),ClockHand:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ColorControl)),ColorSet:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.ColorSet)),ColumnSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ComparisonControl)),Component:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Component)),Container:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Container)),CurveChart:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DataSaveControl)),DateAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Dropdown)),DropdownColors:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DropdownColors)),DropdownControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DropdownControl)),DropdownList:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DropdownList)),DropdownListControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.DurationAxis)),EditableLabel:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.EditableLabel)),Ellipse:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Ellipse)),EllipseSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.EllipseSeries)),Entity:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Entity)),Exporting:()=>Promise.resolve().then((function(){if(!i.m[396]){var e=new Error("Module '396' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(396)})).then((e=>e.Exporting)),ExportingMenu:()=>Promise.resolve().then((function(){if(!i.m[396]){var e=new Error("Module '396' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(396)})).then((e=>e.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.Flow)),FlowLink:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.FlowLink)),FlowNode:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.FlowNode)),FlowNodes:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.FlowNodes)),ForceDirected:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.FunnelSlice)),GaplessDateAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Gradient)),GrainPattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.GrainPattern)),Graphics:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Graphics)),GraticuleSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.GraticuleSeries)),Grid:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.Grid)),GridLayout:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.GridLayout)),HeatLegend:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.IconControl)),IconSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.IconSeries)),Indicator:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Indicator)),IndicatorControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.IntervalControl)),Label:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Label)),LabelSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.LabelSeries)),Layout:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Layout)),Legend:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Legend)),Line:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Line)),LineArrowSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.LinePattern)),LineSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.LineSeries)),LinearGradient:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.LinearGradient)),LinkedHierarchy:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MACD)),MACross:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MACross)),MapChart:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapChart)),MapLine:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapLine)),MapLineSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.MapSeries)),Measure:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Measure)),MedianPrice:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MedianPrice)),Modal:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Modal)),Momentum:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Momentum)),MovingAverage:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.MovingAverageEnvelope)),OHLC:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.OHLC)),OHLCSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.OnBalanceVolume)),OverboughtOversold:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.OverboughtOversold)),PVT:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.PVT)),Pack:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Pack)),PanelControls:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Partition)),PathPattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.PathPattern)),Pattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Pattern)),PatternSet:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.PatternSet)),PercentChart:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PercentChart)),PercentSeries:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Picture)),PicturePattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.PicturePattern)),PieChart:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PieChart)),PieSeries:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PieSeries)),PointedRectangle:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.PointedRectangle)),Polygon:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Polygon)),PolylineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.PolylineSeries)),PyramidSeries:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.RadialGradient)),RadialLabel:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.RadialLabel)),RadialText:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.RadialText)),Rectangle:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Rectangle)),RectanglePattern:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.RoundedRectangle)),Sankey:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.Sankey)),SankeyLink:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((function(){if(!i.m[2924]){var e=new Error("Module '2924' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2924)})).then((e=>e.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Scrollbar)),SerialChart:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.SerialChart)),Serializer:()=>Promise.resolve().then((function(){if(!i.m[9075]){var e=new Error("Module '9075' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(9075)})).then((e=>e.Serializer)),Series:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Series)),SeriesTypeControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.SettingsControl)),SettingsModal:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.SimpleLineSeries)),Slice:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Slice)),SliceGrouper:()=>Promise.resolve().then((function(){if(!i.m[1790]){var e=new Error("Module '1790' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(1790)})).then((e=>e.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((function(){if(!i.m[2536]){var e=new Error("Module '2536' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2536)})).then((e=>e.SlicedChart)),Slider:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((function(){if(!i.m[2051]){var e=new Error("Module '2051' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2051)})).then((e=>e.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((function(){if(!i.m[4397]){var e=new Error("Module '4397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(4397)})).then((e=>e.SpiralChart)),Sprite:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Sprite)),SpriteResizer:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StandardDeviation)),Star:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Star)),StepLineSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StochasticOscillator)),StockChart:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StockChart)),StockControl:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StockControl)),StockLegend:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StockLegend)),StockPanel:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StockPanel)),StockToolbar:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.StockToolbar)),Sunburst:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Sunburst)),SuperTrend:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.SuperTrend)),Text:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Text)),Tick:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Tick)),Tooltip:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Tooltip)),Tree:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Tree)),Treemap:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.Treemap)),TrendLineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.TrendLineSeries)),Triangle:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.Triangle)),Trix:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Trix)),TypicalPrice:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.TypicalPrice)),VWAP:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.VWAP)),ValueAxis:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.ValueAxis)),Venn:()=>Promise.resolve().then((function(){if(!i.m[8034]){var e=new Error("Module '8034' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8034)})).then((e=>e.Venn)),VerticalLayout:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.VerticalLineSeries)),Volume:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.Volume)),VolumeProfile:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((function(){if(!i.m[8447]){var e=new Error("Module '8447' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(8447)})).then((e=>e.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.WilliamsR)),WordCloud:()=>Promise.resolve().then((function(){if(!i.m[6769]){var e=new Error("Module '6769' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6769)})).then((e=>e.WordCloud)),XYChart:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.XYCursor)),XYSeries:()=>Promise.resolve().then((function(){if(!i.m[3405]){var e=new Error("Module '3405' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(3405)})).then((e=>e.XYSeries)),ZigZag:()=>Promise.resolve().then((function(){if(!i.m[6397]){var e=new Error("Module '6397' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(6397)})).then((e=>e.ZigZag)),ZoomControl:()=>Promise.resolve().then((function(){if(!i.m[7533]){var e=new Error("Module '7533' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(7533)})).then((e=>e.ZoomControl)),ZoomTools:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((function(){if(!i.m[2926]){var e=new Error("Module '2926' is not available (weak dependency)");throw e.code="MODULE_NOT_FOUND",e}return i(2926)})).then((e=>e.ZoomableContainer))};function g(e){return u.isObject(e)}function f(e,t){if("#"===e[0]||"@"===e[0]){if(e[1]===e[0])return{isValue:!0,value:e.slice(1)};{const i=e.split(/\./g);let r=function(e,t){let i=e.length;for(;i--;){const r=e[i];if(t in r)return r[t]}throw new Error("Could not find ref "+t)}(t,i[0]);for(let e=1;e<i.length;++e){const t=i[e],s=/get\((["'])([^\1]*)\1\)/.exec(t);r=s?r.get(s[2]):r[t]}return{isValue:!0,value:r}}}return{isValue:!0,value:e}}function m(e,t){t.properties&&c.each(t.properties,(t=>{t(e)}))}function b(e,t){m(e,t),t.adapters&&c.each(t.adapters,(t=>{e.adapters.add(t.key,t.callback)})),e instanceof a.W&&t.children&&t.children.forEach((t=>{null==t.index?e.children.push(t.value):e.children.insertIndex(t.index,t.value)}))}function _(e,t){if(!t.construct)return t.value;const i=t.construct.new(e,t.settings||{});return b(i,t),i}class v{constructor(){Object.defineProperty(this,"_caching",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_delayed",{enumerable:!0,configurable:!0,writable:!0,value:[]})}afterParse(){this._delayed.forEach((e=>{e()}))}getClass(e){return this._cache[e]}storeClass(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=p[e];this._cache[e]=yield t()}))}cacheClass(e){let t=this._caching[e];return null==t&&(t=this._caching[e]=this.storeClass(e)),t}parseAsyncArray(e){return(0,r.mG)(this,void 0,void 0,(function*(){yield Promise.all(c.map(e,(e=>this.parseAsync(e))))}))}parseAsyncObject(e){return(0,r.mG)(this,void 0,void 0,(function*(){yield Promise.all(c.map(d.keys(e),(t=>this.parseAsync(e[t]))))}))}parseAsyncSettings(e){return(0,r.mG)(this,void 0,void 0,(function*(){yield Promise.all(c.map(d.keys(e),(t=>this.parseAsyncSetting(t,e[t]))))}))}parseAsyncSetting(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){"geoJSON"!==e&&(yield this.parseAsync(t))}))}parseAsyncRefs(e){return(0,r.mG)(this,void 0,void 0,(function*(){u.isArray(e)?yield Promise.all(c.map(e,(e=>this.parseAsyncRefs(e)))):yield this.parseAsyncObject(e)}))}parseAsync(e){return(0,r.mG)(this,void 0,void 0,(function*(){u.isArray(e)?yield this.parseAsyncArray(e):g(e)&&("Color"===e.type||"Percent"===e.type||("Template"===e.type?yield Promise.all([e.refs?this.parseAsyncRefs(e.refs):Promise.resolve(void 0),e.settings?this.parseAsyncObject(e.settings):Promise.resolve(void 0)]):!0===e.__parse?yield this.parseAsyncObject(e):!1!==e.__parse&&(yield Promise.all([e.type?this.cacheClass(e.type):Promise.resolve(void 0),e.refs?this.parseAsyncRefs(e.refs):Promise.resolve(void 0),e.settings?this.parseAsyncSettings(e.settings):Promise.resolve(void 0),e.properties?this.parseAsyncObject(e.properties):Promise.resolve(void 0),e.children?this.parseAsyncArray(e.children):Promise.resolve(void 0)]))))}))}parseObject(e,t,i){const r={};return c.each(d.keys(t),(s=>{r[s]=this.parse(e,t[s],i)})),r}parseArray(e,t,i){return c.map(t,(t=>this.parse(e,t,i)))}parseChildren(e,t,i){return c.map(t,(t=>this.parseChild(e,t,i)))}parseStops(e,t,i){return c.map(t,(t=>this.parseObject(e,t,i)))}parseSetting(e,t,i,r){if("layout"===t)switch(i){case"horizontal":return e.horizontalLayout;case"vertical":return e.verticalLayout;case"grid":return e.gridLayout}return"geoJSON"===t?i:"stops"===t?this.parseStops(e,i,r):this.parse(e,i,r)}parseSettings(e,t,i){const r={};return c.each(d.keys(t),(s=>{r[s]=this.parseSetting(e,s,t[s],i)})),r}parseProperties(e,t,i){return c.map(d.keys(t),(r=>{const n=t[r];return t=>{const a=()=>{const a=this.parseValue(e,n,i),o=t[r];o?a.isValue?u.isArray(a.value)?c.each(a.value,(e=>{o.push(e)})):t[r]=a.value:a.construct?t[r]=_(e,a):o instanceof s.JH||o instanceof h.YS?function(e,t){t.settings&&e.setAll(t.settings),b(e,t)}(o,a):m(o,a):a.isValue?t[r]=a.value:t[r]=_(e,a)};if("data"===r)this._delayed.push(a);else if("bullets"===r){const s=t[r];u.assert(null!=s),u.assert(u.isArray(n)),c.each(n,(t=>{s.push(((r,s)=>{const n=i.concat([{"@series":s}]);return this.parse(e,t,n)}))}))}else a()}}))}parseRefsObject(e,t,i){const r={};return c.each(d.keys(t),(s=>{r["#"+s]=this.parse(e,t[s],i)})),r}parseRefs(e,t,i){if(u.isArray(t)){const r=t.length;for(let s=0;s<r;++s)i=i.concat([this.parseRefsObject(e,t[s],i)])}else i=i.concat([this.parseRefsObject(e,t,i)]);return i}parseChild(e,t,i){if(u.isString(t))return{index:void 0,value:f(t,i).value};if(null!=t.ref)return{index:null==t.index?void 0:t.index,value:f(t.ref,i).value};{const r=this.parseEntity(e,t,i);return{index:r.index,value:_(e,r)}}}parseEntity(e,t,i){t.refs&&(i=this.parseRefs(e,t.refs,i));const r=t.type?this.getClass(t.type):void 0,s=t.settings?this.parseSettings(e,t.settings,i):void 0,n=t.properties?this.parseProperties(e,t.properties,i):void 0,a=t.children?this.parseChildren(e,t.children,i):void 0,o=null==t.index?void 0:t.index;return{isValue:!1,type:t.type,construct:r,settings:s,adapters:t.adapters,children:a,properties:n,index:o,value:t}}parseValue(e,t,i){if(t instanceof s.JH)return{isValue:!0,value:t};if(u.isArray(t))return{isValue:!0,value:this.parseArray(e,t,i)};if(g(t)){if("Color"===t.type)return{isValue:!0,value:o.Il.fromAny(t.value)};if("Percent"===t.type)return{isValue:!0,value:new l.gG(t.value)};if("Template"===t.type){t.refs&&(i=this.parseRefs(e,t.refs,i));const r=t.settings?this.parseSettings(e,t.settings,i):{};return{isValue:!0,value:h.YS.new(r)}}return!0===t.__parse?{isValue:!0,value:this.parseObject(e,t,i)}:!1===t.__parse?{isValue:!0,value:t}:this.parseEntity(e,t,i)}return u.isString(t)?f(t,i):{isValue:!0,value:t}}parse(e,t,i){const r=this.parseValue(e,t,i);return r.isValue?r.value:_(e,r)}}class y{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e}static new(e){return new this(e,!0)}parse(e,t={}){return(0,r.mG)(this,void 0,void 0,(function*(){const i=new v;yield i.parseAsync(e);const r=i.parse(this._root,e,[]);if(t.parent){if(!(r instanceof n.j))throw new Error("When using the parent setting, the entity must be a Sprite");t.parent.children.push(r)}else r instanceof s.JH&&r._applyThemes(!0);return i.afterParse(),r}))}parseString(e,t={}){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(e),t)}))}}function w(e,t){p[e]||(p[e]=()=>new Promise((e=>{e(t)})))}},6890:function(e,t,i){"use strict";i.d(t,{e:function(){return d}});var r=i(6331),s=i(9361),n=i(1112),a=i(6245),o=i(5769),l=i(9582),h=i(5040),u=i(5071),c=i(256);class d extends r.JH{constructor(){super(...arguments),Object.defineProperty(this,"_refs",{enumerable:!0,configurable:!0,writable:!0,value:{}})}serialize(e,t=0,i=!1){if(t>this.get("maxDepth",2))return;if(!1===e||!0===e)return e;if(h.isArray(e)){const r=[];return u.each(e,(e=>{r.push(this.serialize(e,t,i))})),r}if(e instanceof l.k){const r=[];return u.each(e.values,(e=>{r.push(this.serialize(e,t,i))})),r}const d={},p=e instanceof r.JH||e instanceof o.YS||e instanceof n.Il||e instanceof a.gG,g=this.get("fullSettings",[]);if(e instanceof r.JH){d.type=e.className;let r=c.keys(e._settings);const s=this.get("includeSettings",[]),n=this.get("excludeSettings",[]);s.length?r=s:n.length&&(r=r.filter((e=>-1===n.indexOf(e)))),r=r.filter((t=>e.isUserSetting(t))),r.length&&(d.settings={},u.each(r,(r=>{const s=e.get(r);void 0!==s&&(d.settings[r]=this.serialize(s,t+1,i||-1!==g.indexOf(r)))})))}else if(e instanceof o.YS){d.type="Template";let i=c.keys(e._settings);return i.length&&(d.settings={},u.each(i,(i=>{d.settings[i]=this.serialize(e.get(i),t+1,-1!==g.indexOf(i))}))),d}if(e instanceof s.w&&e.data.length&&(d.properties={data:this.serialize(e.data.values,1,!0)}),e instanceof n.Il)return{type:"Color",value:e.toCSSHex()};if(e instanceof a.gG)return{type:"Percent",value:e.percent};if(h.isString(e)||h.isNumber(e))return e;if(h.isObject(e)&&i&&!p){const r=this.get("excludeProperties",[]);c.each(e,((e,s)=>{-1===r.indexOf(e)&&void 0!==s&&(d[e]=this.serialize(s,t+1,i))}))}return 0==t&&c.keys(this._refs).length&&(d.refs=this._refs),d}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Serializer"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.JH.classNames.concat([d.className])})},3783:function(e,t,i){"use strict";i.d(t,{X:function(){return h},v:function(){return l}});var r=i(3409),s=i(6245),n=i(1112),a=i(6881),o=i(9395);function l(e,t,i,r){e.set(t,i.get(r)),i.on(r,(i=>{e.set(t,i)}))}class h extends r.Q{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,t=this._root.interfaceColors,i=this._root.horizontalLayout,r=this._root.verticalLayout,h=this.rule.bind(this);h("InterfaceColors").setAll({stroke:n.Il.fromHex(15066597),fill:n.Il.fromHex(15987699),primaryButton:n.Il.fromHex(6788316),primaryButtonHover:n.Il.fromHex(6779356),primaryButtonDown:n.Il.fromHex(6872182),primaryButtonActive:n.Il.fromHex(6872182),primaryButtonDisabled:n.Il.fromHex(14342874),primaryButtonTextDisabled:n.Il.fromHex(16777215),primaryButtonText:n.Il.fromHex(16777215),primaryButtonStroke:n.Il.fromHex(16777215),secondaryButton:n.Il.fromHex(14277081),secondaryButtonHover:n.Il.fromHex(10724259),secondaryButtonDown:n.Il.fromHex(9276813),secondaryButtonActive:n.Il.fromHex(15132390),secondaryButtonText:n.Il.fromHex(0),secondaryButtonStroke:n.Il.fromHex(16777215),grid:n.Il.fromHex(0),background:n.Il.fromHex(16777215),alternativeBackground:n.Il.fromHex(0),text:n.Il.fromHex(0),alternativeText:n.Il.fromHex(16777215),disabled:n.Il.fromHex(11382189),positive:n.Il.fromHex(5288704),negative:n.Il.fromHex(11730944)});{const e=h("ColorSet");e.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[n.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),e.setPrivate("currentStep",0),e.setPrivate("currentPass",0)}h("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:o.out(o.cubic)}),h("Component").setAll({interpolationDuration:0,interpolationEasing:o.out(o.cubic)}),h("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:s.CI,tooltipY:s.CI,tooltipPosition:"fixed",isMeasured:!0}),h("Sprite").states.create("default",{visible:!0,opacity:1}),h("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),h("Graphics").setAll({strokeWidth:1}),h("Chart").setAll({width:s.AQ,height:s.AQ,interactiveChildren:!1}),h("ZoomableContainer").setAll({width:s.AQ,height:s.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:o.out(o.cubic),animationDuration:600,maxPanOut:.4}),h("Sprite",["horizontal","center"]).setAll({centerX:s.CI,x:s.CI}),h("Sprite",["vertical","center"]).setAll({centerY:s.CI,y:s.CI}),h("Container",["horizontal","layout"]).setAll({layout:i}),h("Container",["vertical","layout"]).setAll({layout:r}),h("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),h("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),h("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),h("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),h("GrainPattern").setAll({width:200,height:200,colors:[n.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const e=h("PatternSet");e.setAll({step:1}),l(e,"color",t,"stroke")}h("LinearGradient").setAll({rotation:90}),h("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:a.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),h("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const e=h("Rectangle",["legend","item","background"]);e.setAll({fillOpacity:0}),l(e,"fill",t,"background")}h("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:s.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),h("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:s.AQ,height:s.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const e=h("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(e,"fill",t,"disabled"),l(e,"stroke",t,"disabled")}h("Label",["legend","label"]).setAll({centerY:s.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(h("Label",["legend","label"]).states.create("disabled",{}),"fill",t,"disabled"),h("Label",["legend","value","label"]).setAll({centerY:s.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:s.AQ,populateText:!0}),l(h("Label",["legend","value","label"]).states.create("disabled",{}),"fill",t,"disabled"),h("HeatLegend").setAll({stepCount:1}),h("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),h("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:s.AQ,width:15}),h("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:s.AQ,height:15}),h("HeatLegend",["vertical"]).setAll({height:s.AQ}),h("HeatLegend",["horizontal"]).setAll({width:s.AQ}),h("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),h("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const e=h("Label");e.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(e,"fill",t,"text")}h("RadialLabel").setAll({textType:"regular",centerY:s.CI,centerX:s.CI,inside:!1,radius:0,baseRadius:s.AQ,orientation:"auto",textAlign:"center"}),h("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),h("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:n.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:n.Il.fromHex(0)}),h("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),h("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),h("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),h("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const e=h("Tick");e.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(e,"stroke",t,"grid")}h("Bullet").setAll({locationX:.5,locationY:.5}),h("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:s.CI,centerY:s.CI,animationEasing:o.out(o.cubic),exportable:!1}),h("Polygon").setAll({animationEasing:o.out(o.cubic)}),h("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:n.Il.fromHex(16777215)});{const e=h("Label",["tooltip"]);e.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(e,"fill",t,"alternativeText")}h("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),h("Button").states.create("hover",{}),h("Button").states.create("down",{stateAnimationDuration:0}),h("Button").states.create("active",{}),h("Button").states.create("disabled",{forceInactive:!0});{const e=h("RoundedRectangle",["button","background"]);l(e,"fill",t,"primaryButton"),l(e,"stroke",t,"primaryButtonStroke")}l(h("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",t,"primaryButtonHover"),l(h("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown"),l(h("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",t,"primaryButtonActive"),l(h("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",t,"primaryButtonDisabled"),l(h("Graphics",["button","icon"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled"),l(h("Label",["button"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled");{const e=h("Graphics",["button","icon"]);e.setAll({forceInactive:!0}),l(e,"stroke",t,"primaryButtonText")}l(h("Label",["button"]),"fill",t,"primaryButtonText"),h("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:s.AQ,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const e=h("RoundedRectangle",["background","button","zoom"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"primaryButton")}l(h("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",t,"primaryButtonHover"),l(h("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown");{const e=h("Graphics",["icon","button","zoom"]);e.setAll({crisp:!0,strokeOpacity:.7,draw:e=>{e.moveTo(0,0),e.lineTo(12,0)}}),l(e,"stroke",t,"primaryButtonText")}h("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:s.CI,centerY:s.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const e=h("RoundedRectangle",["background","resize","button"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"secondaryButton"),l(e,"stroke",t,"secondaryButtonStroke")}l(h("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",t,"secondaryButtonHover"),l(h("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown");{const e=h("Graphics",["resize","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),l(e,"stroke",t,"secondaryButtonText")}h("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),h("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),h("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const e=h("RoundedRectangle",["play","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Graphics",["play","icon"]);e.setAll({stateAnimationDuration:0,dx:1,draw:e=>{e.moveTo(0,-5),e.lineTo(8,0),e.lineTo(0,5),e.lineTo(0,-5)}}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),h("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:e=>{e.moveTo(-4,-5),e.lineTo(-1,-5),e.lineTo(-1,5),e.lineTo(-4,5),e.lineTo(-4,-5),e.moveTo(4,-5),e.lineTo(1,-5),e.lineTo(1,5),e.lineTo(4,5),e.lineTo(4,-5)}}),h("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const e=h("RoundedRectangle",["switch","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Circle",["switch","icon"]);e.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["switch","icon"]).states.create("active",{dx:16}),h("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:o.out(o.cubic)}),h("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:s.AQ}),h("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:s.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const e=h("RoundedRectangle",["scrollbar","main","background"]);e.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(e,"fill",t,"fill")}{const e=h("RoundedRectangle",["scrollbar","thumb"]);e.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(e,"fill",t,"secondaryButton")}l(h("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",t,"secondaryButtonHover"),l(h("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown"),h("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:s.CI,width:s.AQ,centerX:s.CI,ariaLabel:e.translate("Use up and down arrows to move selection")}),h("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:s.CI,centerY:s.CI,height:s.AQ,ariaLabel:e.translate("Use left and right arrows to move selection")});{const e=h("PointedRectangle",["axis","tooltip","background"]);e.setAll({cornerRadius:0}),l(e,"fill",t,"alternativeBackground")}h("Label",["axis","tooltip"]).setAll({role:void 0}),h("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),h("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),h("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),h("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),h("Star").setAll({spikes:5,innerRadius:5,radius:10}),h("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),h("Tooltip",["indicator"]).setAll({forceHidden:!0}),h("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),h("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),h("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),h("Container",["resizer","grip"]).states.create("hover",{});{const e=h("RoundedRectangle",["resizer","grip"]);e.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(e,"fill",t,"background"),l(e,"stroke",t,"alternativeBackground")}{const e=h("RoundedRectangle",["resizer","grip","outline"]);e.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),e.states.create("hover",{fillOpacity:.3}),l(e,"fill",t,"alternativeBackground")}h("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),h("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const e=h("Rectangle",["resizer","rectangle"]);e.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(e,"stroke",t,"alternativeBackground")}h("Graphics",["button","plus","icon"]).setAll({x:s.CI,y:s.CI,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0),e.moveTo(0,-4),e.lineTo(0,4)}}),h("Graphics",["button","minus","icon"]).setAll({x:s.CI,y:s.CI,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0)}}),h("Graphics",["button","home","icon"]).setAll({x:s.CI,y:s.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),h("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),h("ZoomTools").setAll({x:s.AQ,centerX:s.AQ,y:s.AQ,centerY:s.AQ,paddingRight:10,paddingBottom:10})}}},2926:function(e,t,i){"use strict";i.r(t),i.d(t,{ArrayDisposer:function(){return u.rk},BlendMode:function(){return re.b},Bullet:function(){return c.g},Button:function(){return d.z},CSVParser:function(){return _e},CanvasLayer:function(){return ke.mM},CanvasRenderer:function(){return ke.uK},Chart:function(){return Z.k},Circle:function(){return p.C},CirclePattern:function(){return le},Color:function(){return T.Il},ColorSet:function(){return ge.U},Component:function(){return _.w},Container:function(){return v.W},CounterDisposer:function(){return u.DM},DataItem:function(){return _.z},DataProcessor:function(){return ve},DateFormatter:function(){return ye.C},Disposer:function(){return u.ku},DurationFormatter:function(){return we.$},EditableLabel:function(){return N.Y},Ellipse:function(){return f.P},Entity:function(){return h.JH},Gradient:function(){return se.p},GrainPattern:function(){return ie},Graphics:function(){return m.T},GridLayout:function(){return w.M},HeatLegend:function(){return C},HorizontalLayout:function(){return A.G},InterfaceColors:function(){return xe.v},JSONParser:function(){return be},JsonData:function(){return fe.Q},Label:function(){return x._},Layout:function(){return L.A},Legend:function(){return j.D},Line:function(){return R.x},LinePattern:function(){return he},LinearGradient:function(){return S.o},ListData:function(){return fe.k},ListTemplate:function(){return k.o},Modal:function(){return l.u},MultiDisposer:function(){return u.FV},MutableValueDisposer:function(){return u.cx},NumberFormatter:function(){return Pe.e},PathPattern:function(){return de},Pattern:function(){return te.c},PatternSet:function(){return pe},Percent:function(){return P.gG},Picture:function(){return F.t},PicturePattern:function(){return ue.v},PointedRectangle:function(){return I.i},Polygon:function(){return g.m},RadialGradient:function(){return ae},RadialLabel:function(){return U.x},RadialText:function(){return B.f},Rectangle:function(){return Y.A},RectanglePattern:function(){return ce},Root:function(){return s.f},RoundedRectangle:function(){return D.c},Scrollbar:function(){return z.L},SerialChart:function(){return $.j},Series:function(){return W.F},Slice:function(){return G.p},Slider:function(){return X},Sprite:function(){return V.j},SpriteResizer:function(){return Oe.b},Star:function(){return b},Template:function(){return O.YS},Text:function(){return K.x},TextFormatter:function(){return De.V},Theme:function(){return n.Q},Tick:function(){return Q.d},Timezone:function(){return J.r},Tooltip:function(){return M.u},Triangle:function(){return H.C},VerticalLayout:function(){return q.Z},ZoomTools:function(){return ee.H},ZoomableContainer:function(){return y.Y},addLicense:function(){return a.cP},array:function(){return ne},color:function(){return T.$_},disposeAllRootElements:function(){return a.UZ},ease:function(){return Te},getRootById:function(){return a.f_},math:function(){return oe},net:function(){return r},object:function(){return me},p0:function(){return P.p0},p100:function(){return P.AQ},p50:function(){return P.CI},percent:function(){return P.aQ},ready:function(){return o.ready},registry:function(){return a.i_},time:function(){return Ee},type:function(){return E},utils:function(){return o}});var r={};i.r(r),i.d(r,{load:function(){return Me},readBlob:function(){return Se}});var s=i(2855),n=i(3409),a=i(3145),o=i(7652),l=i(8219),h=i(6331),u=i(7449),c=i(5108),d=i(8054),p=i(8035),g=i(7770),f=i(2433),m=i(1479);class b extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this._display,t=this.get("radius",0),i=o.relativeToValue(this.get("innerRadius",0),t),r=this.get("spikes",0),s=Math.PI/r;let n=Math.PI/2*3;e.moveTo(0,-t);for(let a=0;a<r;a++)e.lineTo(Math.cos(n)*t,Math.sin(n)*t),n+=s,e.lineTo(Math.cos(n)*i,Math.sin(n)*i),n+=s;e.lineTo(0,-t),e.closePath()}}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Star"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:m.T.classNames.concat([b.className])});var _=i(9361),v=i(8777),y=i(2647),w=i(6881),x=i(962),P=i(6245),D=i(3497),O=i(5769),k=i(7144),T=i(1112),M=i(2876),S=i(1747),E=i(5040);class C extends v.W{constructor(){super(...arguments),Object.defineProperty(this,"labelContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(v.W.new(this._root,{}))}),Object.defineProperty(this,"markerContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(v.W.new(this._root,{}))}),Object.defineProperty(this,"startLabel",{enumerable:!0,configurable:!0,writable:!0,value:this.labelContainer.children.push(x._.new(this._root,{themeTags:["start"]}))}),Object.defineProperty(this,"endLabel",{enumerable:!0,configurable:!0,writable:!0,value:this.labelContainer.children.push(x._.new(this._root,{themeTags:["end"]}))}),Object.defineProperty(this,"markers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new k.o(O.YS.new({}),(()=>D.c._new(this._root,{themeTags:o.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))})}_afterNew(){this._settings.themeTags=o.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",M.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const e=this.markers.make();return e.states.create("disabled",{}),e}showValue(e,t,i){const r=this.getTooltip();if(r&&E.isNumber(e)){const s=this.get("startValue",0);let n=(e-s)/(this.get("endValue",1)-s);(n==1/0||n==-1/0||isNaN(n))&&(n=.5);const a=this.get("startColor"),o=this.get("endColor");let l;t||(t=this.getNumberFormatter().format(e)),i||(i=T.Il.interpolate(n,a,o)),r.label.set("text",t),l="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-n)}):this.markerContainer.toGlobal({x:this.innerWidth()*n,y:0});let h=r.get("background");h&&h.set("fill",i),r.set("pointTo",l),r.show()}}_prepareChildren(){super._prepareChildren();const e=this.labelContainer,t=this.get("orientation"),i=this.startLabel,r=this.endLabel,s=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==t?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:P.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:P.AQ,x:void 0,centerY:P.AQ,centerX:P.AQ}),r.setAll({y:0,x:void 0,centerY:0,centerX:P.AQ}),e.setAll({height:P.AQ,width:void 0}),s&&s.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:P.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),r.setAll({x:P.AQ,y:void 0,centerX:P.AQ,centerY:0}),e.setAll({width:P.AQ,height:void 0}),s&&s.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const e=this.get("stepCount",1),i=this.get("startColor"),r=this.get("endColor");if(this.markerContainer.children.clear(),e>1)for(let s=0;s<e;s++){const n=this.makeMarker();"vertical"==t?this.markerContainer.children.moveValue(n,0):this.markerContainer.children.push(n),i&&r&&n.set("fill",T.Il.interpolate(s/e,i,r))}else if(1==e){const e=this.makeMarker();this.markerContainer.children.push(e);const s=S.o.new(this._root,{stops:[{color:i},{color:r}]});if("vertical"==t){s.set("rotation",90);let e=s.get("stops");e&&e.reverse()}else s.set("rotation",0);i&&r&&e.set("fillGradient",s)}}(this.isDirty("startText")||this.isDirty("startValue"))&&i.set("text",this.get("startText",this.getNumberFormatter().format(this.get("startValue",0)))),(this.isDirty("endText")||this.isDirty("endValue"))&&r.set("text",this.get("endText",this.getNumberFormatter().format(this.get("endValue",1))))}}Object.defineProperty(C,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HeatLegend"}),Object.defineProperty(C,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:v.W.classNames.concat([C.className])});var A=i(4431),N=i(6691),L=i(2010),j=i(3105),R=i(2077),F=i(5021),I=i(8931),U=i(815),B=i(4244),Y=i(7142),H=i(941),z=i(6001);class X extends z.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const e=this.startGrip;this.endGrip.setAll({x:e.x(),y:e.y()}),this.setRaw("end",this.get("start"))}}Object.defineProperty(X,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slider"}),Object.defineProperty(X,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.L.classNames.concat([X.className])});var G=i(5863),V=i(4596),W=i(3399),Z=i(1337),$=i(5829),K=i(2036),Q=i(2438),q=i(1706),J=i(462),ee=i(6044),te=i(3437);class ie extends te.c{constructor(){super(...arguments),Object.defineProperty(this,"canvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:this.canvas.getContext("2d")}),Object.defineProperty(this,"_clearGrain",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){this.canvas.width=this.get("width",200),this.canvas.height=this.get("height",200),(this.isDirty("size")||this.isDirty("density")||this.isDirty("minOpacity")||this.isDirty("maxOpacity")||this.isDirty("colors")||this.isDirty("horizontalGap")||this.isDirty("verticalGap"))&&(this._clearGrain=!0),super._beforeChanged()}_changed(){if(super._changed(),this._clearGrain){const e=this.get("width",200),t=this.get("height",200),i=this.context.getImageData(0,0,e,t),r=Math.max(1,this.get("size",1)),s=this.get("minOpacity",0),n=this.get("maxOpacity",.3),a=this.get("colors",[this.get("color",T.Il.fromHex(0))]),o=e/r,l=t/r,h=this.get("density",1),u=this.get("horizontalGap",0)+1,c=this.get("verticalGap",0)+1;for(let t=0;t<l;t++)if(!(c>0&&t/c!=Math.round(t/c)))for(let l=0;l<o;l++){const o=a[Math.floor(Math.random()*a.length)],c=255*(s+Math.random()*(n-s)),d=Math.random();u>0&&l/u!=Math.round(l/u)||d<h&&this._setRectData(l,t,r,e,i.data,o.r,o.g,o.b,c)}this.context.putImageData(i,0,0),this._pattern=this.context.createPattern(this.canvas,"repeat")}this._clearGrain=!1}_checkDirtyFill(){return!1}_setRectData(e,t,i,r,s,n,a,o,l){for(var h=e*i;h<e*i+i;h++)for(var u=t*i;u<t*i+i;u++){var c=4*(u*r+h);s[c]=n,s[c+1]=a,s[c+2]=o,s[c+3]=l}}}Object.defineProperty(ie,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GrainPattern"}),Object.defineProperty(ie,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:te.c.classNames.concat([ie.className])});var re=i(4680),se=i(1437),ne=i(5071);class ae extends se.p{getFill(e){const t=this.getBounds(e);let i=0,r=0,s=t.left||0,n=t.right||0,a=t.top||0;const l=n-s,h=(t.bottom||0)-a;let u=e.get("radius");E.isNumber(u)?(i=0,r=0):(u=Math.min(l,h)/2,i=l/2,r=h/2);let c=this.get("x"),d=this.get("y");null!=c&&(i=o.relativeToValue(c,l)),null!=d&&(r=o.relativeToValue(d,h));const p=this._root._renderer.createRadialGradient(i,r,0,i,r,u),g=this.get("stops");if(g){let e=0;ne.each(g,(t=>{let i=t.offset;E.isNumber(i)||(i=e/(g.length-1));let r=t.opacity;E.isNumber(r)||(r=1);let s=t.color;if(s){const e=t.lighten;e&&(s=T.Il.lighten(s,e));const n=t.brighten;n&&(s=T.Il.brighten(s,n)),p.addColorStop(i,"rgba("+s.r+","+s.g+","+s.b+","+r+")")}e++}))}return p}}Object.defineProperty(ae,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialGradient"}),Object.defineProperty(ae,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:se.p.classNames.concat([ae.className])});var oe=i(751);class le extends te.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("checkered",!1),t=this.get("centered",!0),i=this.get("gap",0),r=this.get("rotation",0);let s=this.get("width",100),n=this.get("height",100),a=this.get("radius",3),o=2*a+i,l=2*a+i,h=Math.round(s/o),u=Math.round(n/l);o=s/h,l=n/u,0!=r&&(this._display.x=o*oe.cos(r),this._display.y=l*oe.sin(r));const c=this.get("color"),d=this.get("colorOpacity");(c||d)&&this._display.beginFill(c,d);for(let s=0==r?0:2*-u;s<2*u;s++)for(let n=0==r?0:2*-h;n<2*h;n++)if(!e||1!=(1&s)&&1!=(1&n)||1==(1&s)&&1==(1&n)){let e=n*o,r=s*l;t&&(e+=o+i/2,r+=l+i/2),this._display.drawCircle(e-a,r-a,a)}e?(s=s/2-2*i,n=n/2-2*i):(s-=i,n-=i),(c||d)&&this._display.endFill()}}Object.defineProperty(le,"className",{enumerable:!0,configurable:!0,writable:!0,value:"CirclePattern"}),Object.defineProperty(le,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:te.c.classNames.concat([le.className])});class he extends te.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("width",100),t=this.get("height",100),i=this.get("gap",0),r=this.get("strokeWidth",1);if(i){let s=i+r,n=t/s;for(let t=-n;t<2*n;t++){const i=Math.round(t*s-s/2)+.5;this._display.moveTo(-e,i),this._display.lineTo(2*e,i)}}else this._display.moveTo(0,0),this._display.lineTo(e,0);this._display.lineStyle(r,this.get("color"),this.get("colorOpacity"));let s=this.get("strokeDasharray");E.isNumber(s)&&(s=s<.5?[0]:[s]),this._display.setLineDash(s);const n=this.get("strokeDashoffset");n&&this._display.setLineDashOffset(n),this._display.endStroke()}}Object.defineProperty(he,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LinePattern"}),Object.defineProperty(he,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:te.c.classNames.concat([he.className])});var ue=i(4429);class ce extends te.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("checkered",!1),t=this.get("centered",!0),i=this.get("gap",0),r=this.get("rotation",0);let s=this.get("width",100),n=this.get("height",100),a=this.get("maxWidth",5),o=this.get("maxHeight",5);const l=this._display;let h=a+i,u=o+i,c=Math.round(s/h),d=Math.round(n/u);h=s/c,u=n/d,0!=r&&(l.x=h/2*oe.cos(r),l.y=-u/2*oe.sin(r));for(let i=0==r?0:2*-d;i<2*d;i++)for(let s=0==r?0:2*-c;s<2*c;s++)if(!e||1!=(1&i)&&1!=(1&s)||1==(1&i)&&1==(1&s)){let e=s*h,r=i*u;t&&(e+=(h-a)/2,r+=(u-o)/2),l.drawRect(e,r,a,o)}e?(s=s/2-2*i,n=n/2-2*i):(s-=i,n-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(l.beginFill(p,g),l.endFill())}}Object.defineProperty(ce,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RectanglePattern"}),Object.defineProperty(ce,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:te.c.classNames.concat([ce.className])});class de extends te.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("svgPath");null!=e&&this._display.svgPath(e);const t=this.get("color"),i=this.get("colorOpacity");(t||i)&&(this._display.beginFill(t,i),this._display.endFill())}}Object.defineProperty(de,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PathPattern"}),Object.defineProperty(de,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:te.c.classNames.concat([de.className])});class pe extends h.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const e=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:e}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:e}),this.getCirclePattern({width:11,height:11,radius:2,color:e}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:e}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:e}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:e}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:e}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:e}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:e})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(e){const t=this.get("patterns",[]);return e<t.length&&null!==t[e]?t[e]:e>t.length-1?t[e-Math.floor(e*(e/t.length))]:t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(e){return he.new(this.root,e)}getRectanglePattern(e){return ce.new(this.root,e)}getCirclePattern(e){return le.new(this.root,e)}}Object.defineProperty(pe,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PatternSet"}),Object.defineProperty(pe,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:h.JH.classNames.concat([pe.className])});var ge=i(2754),fe=i(9582),me=i(256);class be{static parse(e,t){t=this._applyDefaults(t);try{if(E.isString(e)){let i=JSON.parse(e);return t.reverse&&E.isArray(i)&&i.reverse(),i}if(E.isArray(e)||E.isObject(e))return e;throw"Unable to parse JSON data"}catch(e){return}}static _applyDefaults(e){const t={};return e||(e={}),me.each({reverse:!1},((i,r)=>{t[i]=e[i]||r})),t}}class _e{static parse(e,t){t=this._applyDefaults(t);let i,r,s,n=this.CSVToArray(e,t.delimiter),a=[],o=[];for(r=0;r<t.skipRows;r++)n.shift();if(t.useColumnNames){o=n.shift();for(let e=0;e<o.length;e++)i=null!=o[e]?o[e].replace(/^\s+|\s+$/gm,""):"",""===i&&(i="col"+e),o[e]=i}for(;s=t.reverse?n.pop():n.shift(),s;){if(t.skipEmpty&&1===s.length&&""===s[0])continue;let e={};for(r=0;r<s.length;r++)i=void 0===o[r]?"col"+r:o[r],e[i]=s[r];a.push(e)}return a}static CSVToArray(e,t){t=t||",";let i=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),r=[[]],s=null;for(;s=i.exec(e),s;){let e,i=s[1];i.length&&i!==t&&r.push([]),e=s[2]?s[2].replace(new RegExp('""',"g"),'"'):s[3],r[r.length-1].push(e)}return r}static _applyDefaults(e){const t={};return e||(e={}),me.each({delimiter:",",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},((i,r)=>{t[i]=e[i]||r})),t}}class ve extends h.JH{constructor(){super(...arguments),Object.defineProperty(this,"_checkDates",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkNumbers",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkColors",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkEmpty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkDeep",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const e=[];ne.each(["dateFields","numericFields","colorFields"],(t=>{ne.each(this.get(t,[]),(t=>{const i=t.split(".");for(i.pop();i.length>0;)e.push(i.join(".")),i.pop()}))})),this._checkDeep=e.length>0,this.setPrivate("deepFields",e)}processMany(e){E.isArray(e)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ne.each(e,(e=>{this.processRow(e)}))}processRow(e,t=""){me.each(e,((i,r)=>{const s=t+i;this._checkEmpty&&(e[i]=this._maybeToEmpty(e[i])),this._checkNumbers&&(e[i]=this._maybeToNumber(s,e[i])),this._checkDates&&(e[i]=this._maybeToDate(s,e[i])),this._checkColors&&(e[i]=this._maybeToColor(s,e[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(s)&&E.isObject(e[i])&&this.processRow(e[i],s+".")}))}_maybeToNumber(e,t){return-1!==this.get("numericFields").indexOf(e)?E.toNumber(t):t}_maybeToDate(e,t){return-1!==this.get("dateFields").indexOf(e)?this._root.dateFormatter.parse(t,this.get("dateFormat","")).getTime():t}_maybeToEmpty(e){return null!=e&&""!=e||null==this.get("emptyAs")?e:this.get("emptyAs")}_maybeToColor(e,t){return-1!==this.get("colorFields").indexOf(e)?T.Il.fromAny(t):t}}var ye=i(6460),we=i(798),xe=i(9821),Pe=i(780),De=i(7255),Oe=i(1195),ke=i(4102),Te=i(9395);function Me(e,t,i){return new Promise(((r,s)=>{let n=null!=i&&"blob"==i.responseType,a=new XMLHttpRequest;if(a.onload=()=>{if(200===a.status){let e,i;if(n)return i=a.response,void Se(i).then((e=>{let s={xhr:a,error:!1,response:e,blob:i,type:a.getResponseHeader("Content-Type"),target:t};r(s)}));e=a.responseText||a.response;let s={xhr:a,error:!1,response:e,blob:i,type:a.getResponseHeader("Content-Type"),target:t};r(s)}else s({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.onerror=()=>{s({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.open("GET",e,!0),i&&i.withCredentials&&(a.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let e=0;e<i.requestHeaders.length;e++){let t=i.requestHeaders[e];a.setRequestHeader(t.key,t.value)}null!=i.responseType&&(a.responseType=i.responseType)}a.send()}))}function Se(e){return new Promise(((t,i)=>{const r=new FileReader;r.onload=e=>{t(r.result)},r.onerror=e=>{i(e)},r.readAsText(e)}))}var Ee=i(1926)},3100:function(e,t){"use strict";t.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(e){let t="th";if(e<11||e>13)switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd"}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""}},9629:function(e){var t=function(e){"use strict";var t,i=Object.prototype,r=i.hasOwnProperty,s=Object.defineProperty||function(e,t,i){e[t]=i.value},n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function h(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,i){return e[t]=i}}function u(e,t,i,r){var n=t&&t.prototype instanceof b?t:b,a=Object.create(n.prototype),o=new E(r||[]);return s(a,"_invoke",{value:k(e,i,o)}),a}function c(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",m={};function b(){}function _(){}function v(){}var y={};h(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(C([])));x&&x!==i&&r.call(x,a)&&(y=x);var P=v.prototype=b.prototype=Object.create(y);function D(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(s,n,a,o){var l=c(e[s],e,n);if("throw"!==l.type){var h=l.arg,u=h.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,a,o)}),(function(e){i("throw",e,a,o)})):t.resolve(u).then((function(e){h.value=e,a(h)}),(function(e){return i("throw",e,a,o)}))}o(l.arg)}var n;s(this,"_invoke",{value:function(e,r){function s(){return new t((function(t,s){i(e,r,t,s)}))}return n=n?n.then(s,s):s()}})}function k(e,t,i){var r=d;return function(s,n){if(r===g)throw new Error("Generator is already running");if(r===f){if("throw"===s)throw n;return A()}for(i.method=s,i.arg=n;;){var a=i.delegate;if(a){var o=T(a,i);if(o){if(o===m)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===d)throw r=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var l=c(e,t,i);if("normal"===l.type){if(r=i.done?f:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=f,i.method="throw",i.arg=l.arg)}}}function T(e,i){var r=i.method,s=e.iterator[r];if(s===t)return i.delegate=null,"throw"===r&&e.iterator.return&&(i.method="return",i.arg=t,T(e,i),"throw"===i.method)||"return"!==r&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var n=c(s,e.iterator,i.arg);if("throw"===n.type)return i.method="throw",i.arg=n.arg,i.delegate=null,m;var a=n.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,m):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,m)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function C(e){if(e){var i=e[a];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,n=function i(){for(;++s<e.length;)if(r.call(e,s))return i.value=e[s],i.done=!1,i;return i.value=t,i.done=!0,i};return n.next=n}}return{next:A}}function A(){return{value:t,done:!0}}return _.prototype=v,s(P,"constructor",{value:v,configurable:!0}),s(v,"constructor",{value:_,configurable:!0}),_.displayName=h(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,h(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},e.awrap=function(e){return{__await:e}},D(O.prototype),h(O.prototype,o,(function(){return this})),e.AsyncIterator=O,e.async=function(t,i,r,s,n){void 0===n&&(n=Promise);var a=new O(u(t,i,r,s),n);return e.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},D(P),h(P,l,"Generator"),h(P,a,(function(){return this})),h(P,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),i=[];for(var r in t)i.push(r);return i.reverse(),function e(){for(;i.length;){var r=i.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function s(r,s){return o.type="throw",o.arg=e,i.next=r,s&&(i.method="next",i.arg=t),!!s}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return s("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),h=r.call(a,"finallyLoc");if(l&&h){if(this.prev<a.catchLoc)return s(a.catchLoc,!0);if(this.prev<a.finallyLoc)return s(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return s(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return s(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&r.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var n=s;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),S(i),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var r=i.completion;if("throw"===r.type){var s=r.arg;S(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,r){return this.delegate={iterator:C(e),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},8494:function(e,t,i){"use strict";i.r(t),i.d(t,{am5:function(){return f}});const r=window.Promise,s=r&&r.prototype.then,n=r&&r.prototype.catch,a=r&&r.prototype.finally,o=r&&r.reject,l=r&&r.resolve,h=r&&r.allSettled,u=r&&r.all,c=r&&r.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(2926);var m;i.p=(m=function(){if(document.currentScript)return document.currentScript;var e=document.getElementsByTagName("script");return e[e.length-1]}().src,/(.*\/)[^\/]*$/.exec(m)[1]),r&&(window.Promise=r,s&&(r.prototype.then=s),n&&(r.prototype.catch=n),a&&(r.prototype.finally=a),o&&(r.reject=o),l&&(r.resolve=l),h&&(r.allSettled=h),u&&(r.all=u),c&&(r.race=c)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(e,t){"use strict";var i={value:()=>{}};function r(){for(var e,t=0,i=arguments.length,r={};t<i;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new s(r)}function s(e){this._=e}function n(e,t){for(var i,r=0,s=e.length;r<s;++r)if((i=e[r]).name===t)return i.value}function a(e,t,r){for(var s=0,n=e.length;s<n;++s)if(e[s].name===t){e[s]=i,e=e.slice(0,s).concat(e.slice(s+1));break}return null!=r&&e.push({name:t,value:r}),e}s.prototype=r.prototype={constructor:s,on:function(e,t){var i,r,s=this._,o=(r=s,(e+"").trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".");if(i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,h=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++l<h;)if(i=(e=o[l]).type)s[i]=a(s[i],e.name,t);else if(null==t)for(i in s)s[i]=a(s[i],e.name,null);return this}for(;++l<h;)if((i=(e=o[l]).type)&&(i=n(s[i],e.name)))return i},copy:function(){var e={},t=this._;for(var i in t)e[i]=t[i].slice();return new s(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,r,s=new Array(i),n=0;n<i;++n)s[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(n=0,i=(r=this._[e]).length;n<i;++n)r[n].value.apply(t,s)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],s=0,n=r.length;s<n;++s)r[s].value.apply(t,i)}},t.Z=r},8433:function(e,t,i){"use strict";function r(e){return null==e?null:s(e)}function s(e){if("function"!=typeof e)throw new Error;return e}i.d(t,{C:function(){return s},j:function(){return r}})},7639:function(e,t,i){"use strict";function r(){return 0}function s(e){return function(){return e}}i.d(t,{G:function(){return r},Z:function(){return s}})},2156:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var r=i(8433),s=i(7639);const n=1664525,a=1013904223,o=4294967296;function l(e,t){var i,r;if(c(t,e))return[t];for(i=0;i<e.length;++i)if(h(t,e[i])&&c(p(e[i],t),e))return[e[i],t];for(i=0;i<e.length-1;++i)for(r=i+1;r<e.length;++r)if(h(p(e[i],e[r]),t)&&h(p(e[i],t),e[r])&&h(p(e[r],t),e[i])&&c(g(e[i],e[r],t),e))return[e[i],e[r],t];throw new Error}function h(e,t){var i=e.r-t.r,r=t.x-e.x,s=t.y-e.y;return i<0||i*i<r*r+s*s}function u(e,t){var i=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,s=t.y-e.y;return i>0&&i*i>r*r+s*s}function c(e,t){for(var i=0;i<t.length;++i)if(!u(e,t[i]))return!1;return!0}function d(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return p(e[0],e[1]);case 3:return g(e[0],e[1],e[2])}}function p(e,t){var i=e.x,r=e.y,s=e.r,n=t.x,a=t.y,o=t.r,l=n-i,h=a-r,u=o-s,c=Math.sqrt(l*l+h*h);return{x:(i+n+l/c*u)/2,y:(r+a+h/c*u)/2,r:(c+s+o)/2}}function g(e,t,i){var r=e.x,s=e.y,n=e.r,a=t.x,o=t.y,l=t.r,h=i.x,u=i.y,c=i.r,d=r-a,p=r-h,g=s-o,f=s-u,m=l-n,b=c-n,_=r*r+s*s-n*n,v=_-a*a-o*o+l*l,y=_-h*h-u*u+c*c,w=p*g-d*f,x=(g*y-f*v)/(2*w)-r,P=(f*m-g*b)/w,D=(p*v-d*y)/(2*w)-s,O=(d*b-p*m)/w,k=P*P+O*O-1,T=2*(n+x*P+D*O),M=x*x+D*D-n*n,S=-(Math.abs(k)>1e-6?(T+Math.sqrt(T*T-4*k*M))/(2*k):M/T);return{x:r+x+P*S,y:s+D+O*S,r:S}}function f(e,t,i){var r,s,n,a,o=e.x-t.x,l=e.y-t.y,h=o*o+l*l;h?(s=t.r+i.r,s*=s,a=e.r+i.r,s>(a*=a)?(r=(h+a-s)/(2*h),n=Math.sqrt(Math.max(0,a/h-r*r)),i.x=e.x-r*o-n*l,i.y=e.y-r*l+n*o):(r=(h+s-a)/(2*h),n=Math.sqrt(Math.max(0,s/h-r*r)),i.x=t.x+r*o-n*l,i.y=t.y+r*l+n*o)):(i.x=t.x+i.r,i.y=t.y)}function m(e,t){var i=e.r+t.r-1e-6,r=t.x-e.x,s=t.y-e.y;return i>0&&i*i>r*r+s*s}function b(e){var t=e._,i=e.next._,r=t.r+i.r,s=(t.x*i.r+i.x*t.r)/r,n=(t.y*i.r+i.y*t.r)/r;return s*s+n*n}function _(e){this._=e,this.next=null,this.previous=null}function v(e,t){if(!(a=(i=e,e="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,r,s,n,a,o,h,c,p,g,v,y;if((r=e[0]).x=0,r.y=0,!(a>1))return r.r;if(s=e[1],r.x=-s.r,s.x=r.r,s.y=0,!(a>2))return r.r+s.r;f(s,r,n=e[2]),r=new _(r),s=new _(s),n=new _(n),r.next=n.previous=s,s.next=r.previous=n,n.next=s.previous=r;e:for(c=3;c<a;++c){f(r._,s._,n=e[c]),n=new _(n),p=s.next,g=r.previous,v=s._.r,y=r._.r;do{if(v<=y){if(m(p._,n._)){s=p,r.next=s,s.previous=r,--c;continue e}v+=p._.r,p=p.next}else{if(m(g._,n._)){(r=g).next=s,s.previous=r,--c;continue e}y+=g._.r,g=g.previous}}while(p!==g.next);for(n.previous=r,n.next=s,r.next=s.previous=s=n,o=b(r);(n=n.next)!==s;)(h=b(n))<o&&(r=n,o=h);s=r.next}for(r=[s._],n=s;(n=n.next)!==s;)r.push(n._);for(n=function(e,t){for(var i,r,s=0,n=(e=function(e,t){let i,r,s=e.length;for(;s;)r=t()*s--|0,i=e[s],e[s]=e[r],e[r]=i;return e}(Array.from(e),t)).length,a=[];s<n;)i=e[s],r&&u(r,i)?++s:(r=d(a=l(a,i)),s=0);return r}(r,t),c=0;c<a;++c)(r=e[c]).x-=n.x,r.y-=n.y;return n.r}function y(e){return Math.sqrt(e.value)}function w(){var e=null,t=1,i=1,l=s.G;function h(r){const h=function(){let e=1;return()=>(e=(n*e+a)%o)/o}();return r.x=t/2,r.y=i/2,e?r.eachBefore(x(e)).eachAfter(P(l,.5,h)).eachBefore(D(1)):r.eachBefore(x(y)).eachAfter(P(s.G,1,h)).eachAfter(P(l,r.r/Math.min(t,i),h)).eachBefore(D(Math.min(t,i)/(2*r.r))),r}return h.radius=function(t){return arguments.length?(e=(0,r.j)(t),h):e},h.size=function(e){return arguments.length?(t=+e[0],i=+e[1],h):[t,i]},h.padding=function(e){return arguments.length?(l="function"==typeof e?e:(0,s.Z)(+e),h):l},h}function x(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function P(e,t,i){return function(r){if(s=r.children){var s,n,a,o=s.length,l=e(r)*t||0;if(l)for(n=0;n<o;++n)s[n].r+=l;if(a=v(s,i),l)for(n=0;n<o;++n)s[n].r-=l;r.r=a+l}}}function D(e){return function(t){var i=t.parent;t.r*=e,i&&(t.x=i.x+e*t.x,t.y=i.y+e*t.y)}}},5493:function(e,t,i){"use strict";i.d(t,{ET:function(){return h},y$:function(){return l}});const r=Math.PI,s=2*r,n=1e-6,a=s-n;function o(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=arguments[t]+e[t]}class l{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?o:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return o;const i=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*i)/i+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,i,r){this._append`Q${+e},${+t},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,t,i,r,s,n){this._append`C${+e},${+t},${+i},${+r},${this._x1=+s},${this._y1=+n}`}arcTo(e,t,i,s,a){if(e=+e,t=+t,i=+i,s=+s,(a=+a)<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,h=i-e,u=s-t,c=o-e,d=l-t,p=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>n)if(Math.abs(d*h-u*c)>n&&a){let g=i-o,f=s-l,m=h*h+u*u,b=g*g+f*f,_=Math.sqrt(m),v=Math.sqrt(p),y=a*Math.tan((r-Math.acos((m+p-b)/(2*_*v)))/2),w=y/v,x=y/_;Math.abs(w-1)>n&&this._append`L${e+w*c},${t+w*d}`,this._append`A${a},${a},0,0,${+(d*g>c*f)},${this._x1=e+x*h},${this._y1=t+x*u}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,i,o,l,h){if(e=+e,t=+t,h=!!h,(i=+i)<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(o),c=i*Math.sin(o),d=e+u,p=t+c,g=1^h,f=h?o-l:l-o;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>n||Math.abs(this._y1-p)>n)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%s+s),f>a?this._append`A${i},${i},0,1,${g},${e-u},${t-c}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>n&&this._append`A${i},${i},0,${+(f>=r)},${g},${this._x1=e+i*Math.cos(l)},${this._y1=t+i*Math.sin(l)}`)}rect(e,t,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function h(){return new l}h.prototype=l.prototype},832:function(e,t,i){"use strict";i.d(t,{Z:function(){return P}});var r=i(3141);const s=Math.abs,n=Math.atan2,a=Math.cos,o=Math.max,l=Math.min,h=Math.sin,u=Math.sqrt,c=1e-12,d=Math.PI,p=d/2,g=2*d;function f(e){return e>=1?p:e<=-1?-p:Math.asin(e)}var m=i(5987);function b(e){return e.innerRadius}function _(e){return e.outerRadius}function v(e){return e.startAngle}function y(e){return e.endAngle}function w(e){return e&&e.padAngle}function x(e,t,i,r,s,n,a){var l=e-i,h=t-r,c=(a?n:-n)/u(l*l+h*h),d=c*h,p=-c*l,g=e+d,f=t+p,m=i+d,b=r+p,_=(g+m)/2,v=(f+b)/2,y=m-g,w=b-f,x=y*y+w*w,P=s-n,D=g*b-m*f,O=(w<0?-1:1)*u(o(0,P*P*x-D*D)),k=(D*w-y*O)/x,T=(-D*y-w*O)/x,M=(D*w+y*O)/x,S=(-D*y+w*O)/x,E=k-_,C=T-v,A=M-_,N=S-v;return E*E+C*C>A*A+N*N&&(k=M,T=S),{cx:k,cy:T,x01:-d,y01:-p,x11:k*(s/P-1),y11:T*(s/P-1)}}function P(){var e=b,t=_,i=(0,r.Z)(0),o=null,P=v,D=y,O=w,k=null,T=(0,m.d)(M);function M(){var r,m,b,_=+e.apply(this,arguments),v=+t.apply(this,arguments),y=P.apply(this,arguments)-p,w=D.apply(this,arguments)-p,M=s(w-y),S=w>y;if(k||(k=r=T()),v<_&&(m=v,v=_,_=m),v>c)if(M>g-c)k.moveTo(v*a(y),v*h(y)),k.arc(0,0,v,y,w,!S),_>c&&(k.moveTo(_*a(w),_*h(w)),k.arc(0,0,_,w,y,S));else{var E,C,A=y,N=w,L=y,j=w,R=M,F=M,I=O.apply(this,arguments)/2,U=I>c&&(o?+o.apply(this,arguments):u(_*_+v*v)),B=l(s(v-_)/2,+i.apply(this,arguments)),Y=B,H=B;if(U>c){var z=f(U/_*h(I)),X=f(U/v*h(I));(R-=2*z)>c?(L+=z*=S?1:-1,j-=z):(R=0,L=j=(y+w)/2),(F-=2*X)>c?(A+=X*=S?1:-1,N-=X):(F=0,A=N=(y+w)/2)}var G=v*a(A),V=v*h(A),W=_*a(j),Z=_*h(j);if(B>c){var $,K=v*a(N),Q=v*h(N),q=_*a(L),J=_*h(L);if(M<d)if($=function(e,t,i,r,s,n,a,o){var l=i-e,h=r-t,u=a-s,d=o-n,p=d*l-u*h;if(!(p*p<c))return[e+(p=(u*(t-n)-d*(e-s))/p)*l,t+p*h]}(G,V,q,J,K,Q,W,Z)){var ee=G-$[0],te=V-$[1],ie=K-$[0],re=Q-$[1],se=1/h(((b=(ee*ie+te*re)/(u(ee*ee+te*te)*u(ie*ie+re*re)))>1?0:b<-1?d:Math.acos(b))/2),ne=u($[0]*$[0]+$[1]*$[1]);Y=l(B,(_-ne)/(se-1)),H=l(B,(v-ne)/(se+1))}else Y=H=0}F>c?H>c?(E=x(q,J,G,V,v,H,S),C=x(K,Q,W,Z,v,H,S),k.moveTo(E.cx+E.x01,E.cy+E.y01),H<B?k.arc(E.cx,E.cy,H,n(E.y01,E.x01),n(C.y01,C.x01),!S):(k.arc(E.cx,E.cy,H,n(E.y01,E.x01),n(E.y11,E.x11),!S),k.arc(0,0,v,n(E.cy+E.y11,E.cx+E.x11),n(C.cy+C.y11,C.cx+C.x11),!S),k.arc(C.cx,C.cy,H,n(C.y11,C.x11),n(C.y01,C.x01),!S))):(k.moveTo(G,V),k.arc(0,0,v,A,N,!S)):k.moveTo(G,V),_>c&&R>c?Y>c?(E=x(W,Z,K,Q,_,-Y,S),C=x(G,V,q,J,_,-Y,S),k.lineTo(E.cx+E.x01,E.cy+E.y01),Y<B?k.arc(E.cx,E.cy,Y,n(E.y01,E.x01),n(C.y01,C.x01),!S):(k.arc(E.cx,E.cy,Y,n(E.y01,E.x01),n(E.y11,E.x11),!S),k.arc(0,0,_,n(E.cy+E.y11,E.cx+E.x11),n(C.cy+C.y11,C.cx+C.x11),S),k.arc(C.cx,C.cy,Y,n(C.y11,C.x11),n(C.y01,C.x01),!S))):k.arc(0,0,_,j,L,S):k.lineTo(W,Z)}else k.moveTo(0,0);if(k.closePath(),r)return k=null,r+""||null}return M.centroid=function(){var i=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+P.apply(this,arguments)+ +D.apply(this,arguments))/2-d/2;return[a(r)*i,h(r)*i]},M.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),M):e},M.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.Z)(+e),M):t},M.cornerRadius=function(e){return arguments.length?(i="function"==typeof e?e:(0,r.Z)(+e),M):i},M.padRadius=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:(0,r.Z)(+e),M):o},M.startAngle=function(e){return arguments.length?(P="function"==typeof e?e:(0,r.Z)(+e),M):P},M.endAngle=function(e){return arguments.length?(D="function"==typeof e?e:(0,r.Z)(+e),M):D},M.padAngle=function(e){return arguments.length?(O="function"==typeof e?e:(0,r.Z)(+e),M):O},M.context=function(e){return arguments.length?(k=null==e?null:e,M):k},M}},3794:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var r=i(8457),s=i(3141),n=i(964),a=i(774),o=i(5987),l=i(6758);function h(e,t,i){var h=null,u=(0,s.Z)(!0),c=null,d=n.Z,p=null,g=(0,o.d)(f);function f(s){var n,a,o,l,f,m=(s=(0,r.Z)(s)).length,b=!1,_=new Array(m),v=new Array(m);for(null==c&&(p=d(f=g())),n=0;n<=m;++n){if(!(n<m&&u(l=s[n],n,s))===b)if(b=!b)a=n,p.areaStart(),p.lineStart();else{for(p.lineEnd(),p.lineStart(),o=n-1;o>=a;--o)p.point(_[o],v[o]);p.lineEnd(),p.areaEnd()}b&&(_[n]=+e(l,n,s),v[n]=+t(l,n,s),p.point(h?+h(l,n,s):_[n],i?+i(l,n,s):v[n]))}if(f)return p=null,f+""||null}function m(){return(0,a.Z)().defined(u).curve(d).context(c)}return e="function"==typeof e?e:void 0===e?l.x:(0,s.Z)(+e),t="function"==typeof t?t:void 0===t?(0,s.Z)(0):(0,s.Z)(+t),i="function"==typeof i?i:void 0===i?l.y:(0,s.Z)(+i),f.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.Z)(+t),h=null,f):e},f.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.Z)(+t),f):e},f.x1=function(e){return arguments.length?(h=null==e?null:"function"==typeof e?e:(0,s.Z)(+e),f):h},f.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.Z)(+e),i=null,f):t},f.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.Z)(+e),f):t},f.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:(0,s.Z)(+e),f):i},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(i)},f.lineX1=function(){return m().x(h).y(t)},f.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,s.Z)(!!e),f):u},f.curve=function(e){return arguments.length?(d=e,null!=c&&(p=d(c)),f):d},f.context=function(e){return arguments.length?(null==e?c=p=null:p=d(c=e),f):c},f}},8457:function(e,t,i){"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}i.d(t,{Z:function(){return r}}),Array.prototype.slice},3141:function(e,t,i){"use strict";function r(e){return function(){return e}}i.d(t,{Z:function(){return r}})},964:function(e,t,i){"use strict";function r(e){this._context=e}function s(e){return new r(e)}i.d(t,{Z:function(){return s}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},774:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var r=i(8457),s=i(3141),n=i(964),a=i(5987),o=i(6758);function l(e,t){var i=(0,s.Z)(!0),l=null,h=n.Z,u=null,c=(0,a.d)(d);function d(s){var n,a,o,d=(s=(0,r.Z)(s)).length,p=!1;for(null==l&&(u=h(o=c())),n=0;n<=d;++n)!(n<d&&i(a=s[n],n,s))===p&&((p=!p)?u.lineStart():u.lineEnd()),p&&u.point(+e(a,n,s),+t(a,n,s));if(o)return u=null,o+""||null}return e="function"==typeof e?e:void 0===e?o.x:(0,s.Z)(e),t="function"==typeof t?t:void 0===t?o.y:(0,s.Z)(t),d.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.Z)(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.Z)(+e),d):t},d.defined=function(e){return arguments.length?(i="function"==typeof e?e:(0,s.Z)(!!e),d):i},d.curve=function(e){return arguments.length?(h=e,null!=l&&(u=h(l)),d):h},d.context=function(e){return arguments.length?(null==e?l=u=null:u=h(l=e),d):l},d}},5987:function(e,t,i){"use strict";i.d(t,{d:function(){return s}});var r=i(5493);function s(e){let t=3;return e.digits=function(i){if(!arguments.length)return t;if(null==i)t=null;else{const e=Math.floor(i);if(!(e>=0))throw new RangeError(`invalid digits: ${i}`);t=e}return e},()=>new r.y$(t)}},6758:function(e,t,i){"use strict";function r(e){return e[0]}function s(e){return e[1]}i.d(t,{x:function(){return r},y:function(){return s}})},7738:function(e,t,i){"use strict";i.d(t,{B7:function(){return m},HT:function(){return b},zO:function(){return g}});var r,s,n=0,a=0,o=0,l=1e3,h=0,u=0,c=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function g(){return u||(p(f),u=d.now()+c)}function f(){u=0}function m(){this._call=this._time=this._next=null}function b(e,t,i){var r=new m;return r.restart(e,t,i),r}function _(){u=(h=d.now())+c,n=a=0;try{!function(){g(),++n;for(var e,t=r;t;)(e=u-t._time)>=0&&t._call.call(void 0,e),t=t._next;--n}()}finally{n=0,function(){for(var e,t,i=r,n=1/0;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:r=t);s=e,y(n)}(),u=0}}function v(){var e=d.now(),t=e-h;t>l&&(c-=t,h=e)}function y(e){n||(a&&(a=clearTimeout(a)),e-u>24?(e<1/0&&(a=setTimeout(_,e-d.now()-c)),o&&(o=clearInterval(o))):(o||(h=d.now(),o=setInterval(v,l)),n=1,p(_)))}m.prototype=b.prototype={constructor:m,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==t?0:+t),this._next||s===this||(s?s._next=this:r=this,s=this),this._call=e,this._time=i,y()},stop:function(){this._call&&(this._call=null,this._time=1/0,y())}}},7896:function(e,t,i){"use strict";function r(){}function s(e){return null==e?r:function(){return this.querySelector(e)}}function n(){return[]}function a(e){return null==e?n:function(){return this.querySelectorAll(e)}}function o(e){return function(){return this.matches(e)}}function l(e){return function(t){return t.matches(e)}}var h=Array.prototype.find;function u(){return this.firstElementChild}var c=Array.prototype.filter;function d(){return Array.from(this.children)}function p(e){return new Array(e.length)}function g(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,i,r,s,n){for(var a,o=0,l=t.length,h=n.length;o<h;++o)(a=t[o])?(a.__data__=n[o],r[o]=a):i[o]=new g(e,n[o]);for(;o<l;++o)(a=t[o])&&(s[o]=a)}function m(e,t,i,r,s,n,a){var o,l,h,u=new Map,c=t.length,d=n.length,p=new Array(c);for(o=0;o<c;++o)(l=t[o])&&(p[o]=h=a.call(l,l.__data__,o,t)+"",u.has(h)?s[o]=l:u.set(h,l));for(o=0;o<d;++o)h=a.call(e,n[o],o,n)+"",(l=u.get(h))?(r[o]=l,l.__data__=n[o],u.delete(h)):i[o]=new g(e,n[o]);for(o=0;o<c;++o)(l=t[o])&&u.get(p[o])===l&&(s[o]=l)}function b(e){return e.__data__}function _(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}g.prototype={constructor:g,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var y="http://www.w3.org/1999/xhtml",w={svg:"http://www.w3.org/2000/svg",xhtml:y,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(e){var t=e+="",i=t.indexOf(":");return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),w.hasOwnProperty(t)?{space:w[t],local:e}:e}function P(e){return function(){this.removeAttribute(e)}}function D(e){return function(){this.removeAttributeNS(e.space,e.local)}}function O(e,t){return function(){this.setAttribute(e,t)}}function k(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function T(e,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function M(e,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function S(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function E(e){return function(){this.style.removeProperty(e)}}function C(e,t,i){return function(){this.style.setProperty(e,t,i)}}function A(e,t,i){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,i)}}function N(e,t){return e.style.getPropertyValue(t)||S(e).getComputedStyle(e,null).getPropertyValue(t)}function L(e){return function(){delete this[e]}}function j(e,t){return function(){this[e]=t}}function R(e,t){return function(){var i=t.apply(this,arguments);null==i?delete this[e]:this[e]=i}}function F(e){return e.trim().split(/^|\s+/)}function I(e){return e.classList||new U(e)}function U(e){this._node=e,this._names=F(e.getAttribute("class")||"")}function B(e,t){for(var i=I(e),r=-1,s=t.length;++r<s;)i.add(t[r])}function Y(e,t){for(var i=I(e),r=-1,s=t.length;++r<s;)i.remove(t[r])}function H(e){return function(){B(this,e)}}function z(e){return function(){Y(this,e)}}function X(e,t){return function(){(t.apply(this,arguments)?B:Y)(this,e)}}function G(){this.textContent=""}function V(e){return function(){this.textContent=e}}function W(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Z(){this.innerHTML=""}function $(e){return function(){this.innerHTML=e}}function K(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function q(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function J(e){return function(){var t=this.ownerDocument,i=this.namespaceURI;return i===y&&t.documentElement.namespaceURI===y?t.createElement(e):t.createElementNS(i,e)}}function ee(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function te(e){var t=x(e);return(t.local?ee:J)(t)}function ie(){return null}function re(){var e=this.parentNode;e&&e.removeChild(this)}function se(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ne(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ae(e){return function(){var t=this.__on;if(t){for(var i,r=0,s=-1,n=t.length;r<n;++r)i=t[r],e.type&&i.type!==e.type||i.name!==e.name?t[++s]=i:this.removeEventListener(i.type,i.listener,i.options);++s?t.length=s:delete this.__on}}}function oe(e,t,i){return function(){var r,s=this.__on,n=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(s)for(var a=0,o=s.length;a<o;++a)if((r=s[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=i),void(r.value=t);this.addEventListener(e.type,n,i),r={type:e.type,name:e.name,value:t,listener:n,options:i},s?s.push(r):this.__on=[r]}}function le(e,t,i){var r=S(e),s=r.CustomEvent;"function"==typeof s?s=new s(t,i):(s=r.document.createEvent("Event"),i?(s.initEvent(t,i.bubbles,i.cancelable),s.detail=i.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function he(e,t){return function(){return le(this,e,t)}}function ue(e,t){return function(){return le(this,e,t.apply(this,arguments))}}U.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ce=[null];function de(e,t){this._groups=e,this._parents=t}function pe(){return new de([[document.documentElement]],ce)}de.prototype=pe.prototype={constructor:de,select:function(e){"function"!=typeof e&&(e=s(e));for(var t=this._groups,i=t.length,r=new Array(i),n=0;n<i;++n)for(var a,o,l=t[n],h=l.length,u=r[n]=new Array(h),c=0;c<h;++c)(a=l[c])&&(o=e.call(a,a.__data__,c,l))&&("__data__"in a&&(o.__data__=a.__data__),u[c]=o);return new de(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}(e):a(e);for(var t=this._groups,i=t.length,r=[],s=[],n=0;n<i;++n)for(var o,l=t[n],h=l.length,u=0;u<h;++u)(o=l[u])&&(r.push(e.call(o,o.__data__,u,l)),s.push(o));return new de(r,s)},selectChild:function(e){return this.select(null==e?u:function(e){return function(){return h.call(this.children,e)}}("function"==typeof e?e:l(e)))},selectChildren:function(e){return this.selectAll(null==e?d:function(e){return function(){return c.call(this.children,e)}}("function"==typeof e?e:l(e)))},filter:function(e){"function"!=typeof e&&(e=o(e));for(var t=this._groups,i=t.length,r=new Array(i),s=0;s<i;++s)for(var n,a=t[s],l=a.length,h=r[s]=[],u=0;u<l;++u)(n=a[u])&&e.call(n,n.__data__,u,a)&&h.push(n);return new de(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,b);var i,r=t?m:f,s=this._parents,n=this._groups;"function"!=typeof e&&(i=e,e=function(){return i});for(var a=n.length,o=new Array(a),l=new Array(a),h=new Array(a),u=0;u<a;++u){var c=s[u],d=n[u],p=d.length,g=_(e.call(c,c&&c.__data__,u,s)),v=g.length,y=l[u]=new Array(v),w=o[u]=new Array(v);r(c,d,y,w,h[u]=new Array(p),g,t);for(var x,P,D=0,O=0;D<v;++D)if(x=y[D]){for(D>=O&&(O=D+1);!(P=w[O])&&++O<v;);x._next=P||null}}return(o=new de(o,s))._enter=l,o._exit=h,o},enter:function(){return new de(this._enter||this._groups.map(p),this._parents)},exit:function(){return new de(this._exit||this._groups.map(p),this._parents)},join:function(e,t,i){var r=this.enter(),s=this,n=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(s=t(s))&&(s=s.selection()),null==i?n.remove():i(n),r&&s?r.merge(s).order():s},merge:function(e){for(var t=e.selection?e.selection():e,i=this._groups,r=t._groups,s=i.length,n=r.length,a=Math.min(s,n),o=new Array(s),l=0;l<a;++l)for(var h,u=i[l],c=r[l],d=u.length,p=o[l]=new Array(d),g=0;g<d;++g)(h=u[g]||c[g])&&(p[g]=h);for(;l<s;++l)o[l]=i[l];return new de(o,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var r,s=e[t],n=s.length-1,a=s[n];--n>=0;)(r=s[n])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=v);for(var i=this._groups,r=i.length,s=new Array(r),n=0;n<r;++n){for(var a,o=i[n],l=o.length,h=s[n]=new Array(l),u=0;u<l;++u)(a=o[u])&&(h[u]=a);h.sort(t)}return new de(s,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var r=e[t],s=0,n=r.length;s<n;++s){var a=r[s];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,i=0,r=t.length;i<r;++i)for(var s,n=t[i],a=0,o=n.length;a<o;++a)(s=n[a])&&e.call(s,s.__data__,a,n);return this},attr:function(e,t){var i=x(e);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((null==t?i.local?D:P:"function"==typeof t?i.local?M:T:i.local?k:O)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?E:"function"==typeof t?A:C)(e,t,null==i?"":i)):N(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?L:"function"==typeof t?R:j)(e,t)):this.node()[e]},classed:function(e,t){var i=F(e+"");if(arguments.length<2){for(var r=I(this.node()),s=-1,n=i.length;++s<n;)if(!r.contains(i[s]))return!1;return!0}return this.each(("function"==typeof t?X:t?H:z)(i,t))},text:function(e){return arguments.length?this.each(null==e?G:("function"==typeof e?W:V)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Z:("function"==typeof e?K:$)(e)):this.node().innerHTML},raise:function(){return this.each(Q)},lower:function(){return this.each(q)},append:function(e){var t="function"==typeof e?e:te(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:te(e),r=null==t?ie:"function"==typeof t?t:s(t);return this.select((function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(re)},clone:function(e){return this.select(e?ne:se)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var r,s,n=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".");return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}(e+""),a=n.length;if(!(arguments.length<2)){for(o=t?oe:ae,r=0;r<a;++r)this.each(o(n[r],t,i));return this}var o=this.node().__on;if(o)for(var l,h=0,u=o.length;h<u;++h)for(r=0,l=o[h];r<a;++r)if((s=n[r]).type===l.type&&s.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?ue:he)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var r,s=e[t],n=0,a=s.length;n<a;++n)(r=s[n])&&(yield r)}};var ge=pe,fe=i(4138),me=i(7738);function be(e,t,i){var r=new me.B7;return t=null==t?0:+t,r.restart((i=>{r.stop(),e(i+t)}),t,i),r}var _e=(0,fe.Z)("start","end","cancel","interrupt"),ve=[],ye=0,we=3;function xe(e,t,i,r,s,n){var a=e.__transition;if(a){if(i in a)return}else e.__transition={};!function(e,t,i){var r,s=e.__transition;function n(l){var h,u,c,d;if(1!==i.state)return o();for(h in s)if((d=s[h]).name===i.name){if(d.state===we)return be(n);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete s[h]):+h<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete s[h])}if(be((function(){i.state===we&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(l))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=we,r=new Array(c=i.tween.length),h=0,u=-1;h<c;++h)(d=i.tween[h].value.call(e,e.__data__,i.index,i.group))&&(r[++u]=d);r.length=u+1}}function a(t){for(var s=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(o),i.state=5,1),n=-1,a=r.length;++n<a;)r[n].call(e,s);5===i.state&&(i.on.call("end",e,e.__data__,i.index,i.group),o())}function o(){for(var r in i.state=6,i.timer.stop(),delete s[t],s)return;delete e.__transition}s[t]=i,i.timer=(0,me.HT)((function(e){i.state=1,i.timer.restart(n,i.delay,i.time),i.delay<=e&&n(e-i.delay)}),0,i.time)}(e,i,{name:t,index:r,group:s,on:_e,tween:ve,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:ye})}function Pe(e,t){var i=Oe(e,t);if(i.state>ye)throw new Error("too late; already scheduled");return i}function De(e,t){var i=Oe(e,t);if(i.state>we)throw new Error("too late; already running");return i}function Oe(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function ke(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}var Te,Me=180/Math.PI,Se={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ee(e,t,i,r,s,n){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*i+t*r)&&(i-=e*l,r-=t*l),(o=Math.sqrt(i*i+r*r))&&(i/=o,r/=o,l/=o),e*r<t*i&&(e=-e,t=-t,l=-l,a=-a),{translateX:s,translateY:n,rotate:Math.atan2(t,e)*Me,skewX:Math.atan(l)*Me,scaleX:a,scaleY:o}}function Ce(e,t,i,r){function s(e){return e.length?e.pop()+" ":""}return function(n,a){var o=[],l=[];return n=e(n),a=e(a),function(e,r,s,n,a,o){if(e!==s||r!==n){var l=a.push("translate(",null,t,null,i);o.push({i:l-4,x:ke(e,s)},{i:l-2,x:ke(r,n)})}else(s||n)&&a.push("translate("+s+t+n+i)}(n.translateX,n.translateY,a.translateX,a.translateY,o,l),function(e,t,i,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:i.push(s(i)+"rotate(",null,r)-2,x:ke(e,t)})):t&&i.push(s(i)+"rotate("+t+r)}(n.rotate,a.rotate,o,l),function(e,t,i,n){e!==t?n.push({i:i.push(s(i)+"skewX(",null,r)-2,x:ke(e,t)}):t&&i.push(s(i)+"skewX("+t+r)}(n.skewX,a.skewX,o,l),function(e,t,i,r,n,a){if(e!==i||t!==r){var o=n.push(s(n)+"scale(",null,",",null,")");a.push({i:o-4,x:ke(e,i)},{i:o-2,x:ke(t,r)})}else 1===i&&1===r||n.push(s(n)+"scale("+i+","+r+")")}(n.scaleX,n.scaleY,a.scaleX,a.scaleY,o,l),n=a=null,function(e){for(var t,i=-1,r=l.length;++i<r;)o[(t=l[i]).i]=t.x(e);return o.join("")}}}var Ae=Ce((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Se:Ee(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Ne=Ce((function(e){return null==e?Se:(Te||(Te=document.createElementNS("http://www.w3.org/2000/svg","g")),Te.setAttribute("transform",e),(e=Te.transform.baseVal.consolidate())?Ee((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Se)}),", ",")",")");function Le(e,t){var i,r;return function(){var s=De(this,e),n=s.tween;if(n!==i)for(var a=0,o=(r=i=n).length;a<o;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}s.tween=r}}function je(e,t,i){var r,s;if("function"!=typeof i)throw new Error;return function(){var n=De(this,e),a=n.tween;if(a!==r){s=(r=a).slice();for(var o={name:t,value:i},l=0,h=s.length;l<h;++l)if(s[l].name===t){s[l]=o;break}l===h&&s.push(o)}n.tween=s}}function Re(e,t,i){var r=e._id;return e.each((function(){var e=De(this,r);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return Oe(e,r).value[t]}}function Fe(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function Ie(e,t){var i=Object.create(e.prototype);for(var r in t)i[r]=t[r];return i}function Ue(){}var Be=.7,Ye=1/Be,He="\\s*([+-]?\\d+)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ge=/^#([0-9a-f]{3,8})$/,Ve=new RegExp(`^rgb\\(${He},${He},${He}\\)$`),We=new RegExp(`^rgb\\(${Xe},${Xe},${Xe}\\)$`),Ze=new RegExp(`^rgba\\(${He},${He},${He},${ze}\\)$`),$e=new RegExp(`^rgba\\(${Xe},${Xe},${Xe},${ze}\\)$`),Ke=new RegExp(`^hsl\\(${ze},${Xe},${Xe}\\)$`),Qe=new RegExp(`^hsla\\(${ze},${Xe},${Xe},${ze}\\)$`),qe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Je(){return this.rgb().formatHex()}function et(){return this.rgb().formatRgb()}function tt(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=Ge.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?it(t):3===i?new nt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?rt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?rt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ve.exec(e))?new nt(t[1],t[2],t[3],1):(t=We.exec(e))?new nt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ze.exec(e))?rt(t[1],t[2],t[3],t[4]):(t=$e.exec(e))?rt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ke.exec(e))?ct(t[1],t[2]/100,t[3]/100,1):(t=Qe.exec(e))?ct(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?it(qe[e]):"transparent"===e?new nt(NaN,NaN,NaN,0):null}function it(e){return new nt(e>>16&255,e>>8&255,255&e,1)}function rt(e,t,i,r){return r<=0&&(e=t=i=NaN),new nt(e,t,i,r)}function st(e,t,i,r){return 1===arguments.length?((s=e)instanceof Ue||(s=tt(s)),s?new nt((s=s.rgb()).r,s.g,s.b,s.opacity):new nt):new nt(e,t,i,null==r?1:r);var s}function nt(e,t,i,r){this.r=+e,this.g=+t,this.b=+i,this.opacity=+r}function at(){return`#${ut(this.r)}${ut(this.g)}${ut(this.b)}`}function ot(){const e=lt(this.opacity);return`${1===e?"rgb(":"rgba("}${ht(this.r)}, ${ht(this.g)}, ${ht(this.b)}${1===e?")":`, ${e})`}`}function lt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ut(e){return((e=ht(e))<16?"0":"")+e.toString(16)}function ct(e,t,i,r){return r<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new pt(e,t,i,r)}function dt(e){if(e instanceof pt)return new pt(e.h,e.s,e.l,e.opacity);if(e instanceof Ue||(e=tt(e)),!e)return new pt;if(e instanceof pt)return e;var t=(e=e.rgb()).r/255,i=e.g/255,r=e.b/255,s=Math.min(t,i,r),n=Math.max(t,i,r),a=NaN,o=n-s,l=(n+s)/2;return o?(a=t===n?(i-r)/o+6*(i<r):i===n?(r-t)/o+2:(t-i)/o+4,o/=l<.5?n+s:2-n-s,a*=60):o=l>0&&l<1?0:a,new pt(a,o,l,e.opacity)}function pt(e,t,i,r){this.h=+e,this.s=+t,this.l=+i,this.opacity=+r}function gt(e){return(e=(e||0)%360)<0?e+360:e}function ft(e){return Math.max(0,Math.min(1,e||0))}function mt(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}function bt(e,t,i,r,s){var n=e*e,a=n*e;return((1-3*e+3*n-a)*t+(4-6*n+3*a)*i+(1+3*e+3*n-3*a)*r+a*s)/6}Fe(Ue,tt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Je,formatHex:Je,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dt(this).formatHsl()},formatRgb:et,toString:et}),Fe(nt,st,Ie(Ue,{brighter(e){return e=null==e?Ye:Math.pow(Ye,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Be:Math.pow(Be,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nt(ht(this.r),ht(this.g),ht(this.b),lt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:at,formatHex:at,formatHex8:function(){return`#${ut(this.r)}${ut(this.g)}${ut(this.b)}${ut(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ot,toString:ot})),Fe(pt,(function(e,t,i,r){return 1===arguments.length?dt(e):new pt(e,t,i,null==r?1:r)}),Ie(Ue,{brighter(e){return e=null==e?Ye:Math.pow(Ye,e),new pt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Be:Math.pow(Be,e),new pt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*t,s=2*i-r;return new nt(mt(e>=240?e-240:e+120,s,r),mt(e,s,r),mt(e<120?e+240:e-120,s,r),this.opacity)},clamp(){return new pt(gt(this.h),ft(this.s),ft(this.l),lt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lt(this.opacity);return`${1===e?"hsl(":"hsla("}${gt(this.h)}, ${100*ft(this.s)}%, ${100*ft(this.l)}%${1===e?")":`, ${e})`}`}}));var _t=e=>()=>e;function vt(e,t){var i=t-e;return i?function(e,t){return function(i){return e+i*t}}(e,i):_t(isNaN(e)?t:e)}var yt=function e(t){var i=function(e){return 1==(e=+e)?vt:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(r){return Math.pow(e+r*t,i)}}(t,i,e):_t(isNaN(t)?i:t)}}(t);function r(e,t){var r=i((e=st(e)).r,(t=st(t)).r),s=i(e.g,t.g),n=i(e.b,t.b),a=vt(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=s(t),e.b=n(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function wt(e){return function(t){var i,r,s=t.length,n=new Array(s),a=new Array(s),o=new Array(s);for(i=0;i<s;++i)r=st(t[i]),n[i]=r.r||0,a[i]=r.g||0,o[i]=r.b||0;return n=e(n),a=e(a),o=e(o),r.opacity=1,function(e){return r.r=n(e),r.g=a(e),r.b=o(e),r+""}}}wt((function(e){var t=e.length-1;return function(i){var r=i<=0?i=0:i>=1?(i=1,t-1):Math.floor(i*t),s=e[r],n=e[r+1],a=r>0?e[r-1]:2*s-n,o=r<t-1?e[r+2]:2*n-s;return bt((i-r/t)*t,a,s,n,o)}})),wt((function(e){var t=e.length;return function(i){var r=Math.floor(((i%=1)<0?++i:i)*t),s=e[(r+t-1)%t],n=e[r%t],a=e[(r+1)%t],o=e[(r+2)%t];return bt((i-r/t)*t,s,n,a,o)}}));var xt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pt=new RegExp(xt.source,"g");function Dt(e,t){var i,r,s,n=xt.lastIndex=Pt.lastIndex=0,a=-1,o=[],l=[];for(e+="",t+="";(i=xt.exec(e))&&(r=Pt.exec(t));)(s=r.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(i=i[0])===(r=r[0])?o[a]?o[a]+=r:o[++a]=r:(o[++a]=null,l.push({i:a,x:ke(i,r)})),n=Pt.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var i,r=0;r<t;++r)o[(i=l[r]).i]=i.x(e);return o.join("")})}function Ot(e,t){var i;return("number"==typeof t?ke:t instanceof tt?yt:(i=tt(t))?(t=i,yt):Dt)(e,t)}function kt(e){return function(){this.removeAttribute(e)}}function Tt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mt(e,t,i){var r,s,n=i+"";return function(){var a=this.getAttribute(e);return a===n?null:a===r?s:s=t(r=a,i)}}function St(e,t,i){var r,s,n=i+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===n?null:a===r?s:s=t(r=a,i)}}function Et(e,t,i){var r,s,n;return function(){var a,o,l=i(this);if(null!=l)return(a=this.getAttribute(e))===(o=l+"")?null:a===r&&o===s?n:(s=o,n=t(r=a,l));this.removeAttribute(e)}}function Ct(e,t,i){var r,s,n;return function(){var a,o,l=i(this);if(null!=l)return(a=this.getAttributeNS(e.space,e.local))===(o=l+"")?null:a===r&&o===s?n:(s=o,n=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function At(e,t){var i,r;function s(){var s=t.apply(this,arguments);return s!==r&&(i=(r=s)&&function(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}(e,s)),i}return s._value=t,s}function Nt(e,t){var i,r;function s(){var s=t.apply(this,arguments);return s!==r&&(i=(r=s)&&function(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}(e,s)),i}return s._value=t,s}function Lt(e,t){return function(){Pe(this,e).delay=+t.apply(this,arguments)}}function jt(e,t){return t=+t,function(){Pe(this,e).delay=t}}function Rt(e,t){return function(){De(this,e).duration=+t.apply(this,arguments)}}function Ft(e,t){return t=+t,function(){De(this,e).duration=t}}var It=ge.prototype.constructor;function Ut(e){return function(){this.style.removeProperty(e)}}var Bt=0;function Yt(e,t,i,r){this._groups=e,this._parents=t,this._name=i,this._id=r}function Ht(){return++Bt}var zt=ge.prototype;Yt.prototype=function(e){return ge().transition(e)}.prototype={constructor:Yt,select:function(e){var t=this._name,i=this._id;"function"!=typeof e&&(e=s(e));for(var r=this._groups,n=r.length,a=new Array(n),o=0;o<n;++o)for(var l,h,u=r[o],c=u.length,d=a[o]=new Array(c),p=0;p<c;++p)(l=u[p])&&(h=e.call(l,l.__data__,p,u))&&("__data__"in l&&(h.__data__=l.__data__),d[p]=h,xe(d[p],t,i,p,d,Oe(l,i)));return new Yt(a,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id;"function"!=typeof e&&(e=a(e));for(var r=this._groups,s=r.length,n=[],o=[],l=0;l<s;++l)for(var h,u=r[l],c=u.length,d=0;d<c;++d)if(h=u[d]){for(var p,g=e.call(h,h.__data__,d,u),f=Oe(h,i),m=0,b=g.length;m<b;++m)(p=g[m])&&xe(p,t,i,m,g,f);n.push(g),o.push(h)}return new Yt(n,o,t,i)},selectChild:zt.selectChild,selectChildren:zt.selectChildren,filter:function(e){"function"!=typeof e&&(e=o(e));for(var t=this._groups,i=t.length,r=new Array(i),s=0;s<i;++s)for(var n,a=t[s],l=a.length,h=r[s]=[],u=0;u<l;++u)(n=a[u])&&e.call(n,n.__data__,u,a)&&h.push(n);return new Yt(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,i=e._groups,r=t.length,s=i.length,n=Math.min(r,s),a=new Array(r),o=0;o<n;++o)for(var l,h=t[o],u=i[o],c=h.length,d=a[o]=new Array(c),p=0;p<c;++p)(l=h[p]||u[p])&&(d[p]=l);for(;o<r;++o)a[o]=t[o];return new Yt(a,this._parents,this._name,this._id)},selection:function(){return new It(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=Ht(),r=this._groups,s=r.length,n=0;n<s;++n)for(var a,o=r[n],l=o.length,h=0;h<l;++h)if(a=o[h]){var u=Oe(a,t);xe(a,e,i,h,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Yt(r,this._parents,e,i)},call:zt.call,nodes:zt.nodes,node:zt.node,size:zt.size,empty:zt.empty,each:zt.each,on:function(e,t){var i=this._id;return arguments.length<2?Oe(this.node(),i).on.on(e):this.each(function(e,t,i){var r,s,n=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Pe:De;return function(){var a=n(this,e),o=a.on;o!==r&&(s=(r=o).copy()).on(t,i),a.on=s}}(i,e,t))},attr:function(e,t){var i=x(e),r="transform"===i?Ne:Ot;return this.attrTween(e,"function"==typeof t?(i.local?Ct:Et)(i,r,Re(this,"attr."+e,t)):null==t?(i.local?Tt:kt)(i):(i.local?St:Mt)(i,r,t))},attrTween:function(e,t){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;var r=x(e);return this.tween(i,(r.local?At:Nt)(r,t))},style:function(e,t,i){var r="transform"==(e+="")?Ae:Ot;return null==t?this.styleTween(e,function(e,t){var i,r,s;return function(){var n=N(this,e),a=(this.style.removeProperty(e),N(this,e));return n===a?null:n===i&&a===r?s:s=t(i=n,r=a)}}(e,r)).on("end.style."+e,Ut(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var r,s,n;return function(){var a=N(this,e),o=i(this),l=o+"";return null==o&&(this.style.removeProperty(e),l=o=N(this,e)),a===l?null:a===r&&l===s?n:(s=l,n=t(r=a,o))}}(e,r,Re(this,"style."+e,t))).each(function(e,t){var i,r,s,n,a="style."+t,o="end."+a;return function(){var l=De(this,e),h=l.on,u=null==l.value[a]?n||(n=Ut(t)):void 0;h===i&&s===u||(r=(i=h).copy()).on(o,s=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,i){var r,s,n=i+"";return function(){var a=N(this,e);return a===n?null:a===r?s:s=t(r=a,i)}}(e,r,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,i){var r,s;function n(){var n=t.apply(this,arguments);return n!==s&&(r=(s=n)&&function(e,t,i){return function(r){this.style.setProperty(e,t.call(this,r),i)}}(e,n,i)),r}return n._value=t,n}(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Re(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,i;function r(){var r=e.apply(this,arguments);return r!==i&&(t=(i=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id;if(e+="",arguments.length<2){for(var r,s=Oe(this.node(),i).tween,n=0,a=s.length;n<a;++n)if((r=s[n]).name===e)return r.value;return null}return this.each((null==t?Le:je)(i,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Lt:jt)(t,e)):Oe(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Rt:Ft)(t,e)):Oe(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){De(this,e).ease=t}}(t,e)):Oe(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var i=t.apply(this,arguments);if("function"!=typeof i)throw new Error;De(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,r=i._id,s=i.size();return new Promise((function(n,a){var o={value:a},l={value:function(){0==--s&&n()}};i.each((function(){var i=De(this,r),s=i.on;s!==e&&((t=(e=s).copy())._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),i.on=t})),0===s&&n()}))},[Symbol.iterator]:zt[Symbol.iterator]};var Xt={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Gt(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return i}ge.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var i,r,s,n=e.__transition,a=!0;if(n){for(s in t=null==t?null:t+"",n)(i=n[s]).name===t?(r=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(r?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[s]):a=!1;a&&delete e.__transition}}(this,e)}))},ge.prototype.transition=function(e){var t,i;e instanceof Yt?(t=e._id,e=e._name):(t=Ht(),(i=Xt).time=(0,me.zO)(),e=null==e?null:e+"");for(var r=this._groups,s=r.length,n=0;n<s;++n)for(var a,o=r[n],l=o.length,h=0;h<l;++h)(a=o[h])&&xe(a,e,t,h,o,i||Gt(a,t));return new Yt(r,this._parents,e,t)}},7582:function(e,t,i){"use strict";function r(e,t,i,r){return new(i||(i=Promise))((function(s,n){function a(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))}i.d(t,{mG:function(){return r}}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},e=[],o.O=function(t,i,r,s){if(!i){var n=1/0;for(u=0;u<e.length;u++){i=e[u][0],r=e[u][1],s=e[u][2];for(var a=!0,l=0;l<i.length;l++)(!1&s||n>=s)&&Object.keys(o.O).every((function(e){return o.O[e](i[l])}))?i.splice(l--,1):(a=!1,s<n&&(n=s));if(a){e.splice(u--,1);var h=r();void 0!==h&&(t=h)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[i,r,s]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var s=Object.create(null);o.r(s);var n={};t=t||[null,i({}),i([]),i(i)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=i(a))Object.getOwnPropertyNames(a).forEach((function(t){n[t]=function(){return e[t]}}));return n.default=function(){return e},o.d(s,n),s},o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,i){return o.f[i](e,t),t}),[]))},o.u=function(e){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[e]+".js"},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},s="@amcharts/amcharts5:",o.l=function(e,t,i,n){if(r[e])r[e].push(t);else{var a,l;if(void 0!==i)for(var h=document.getElementsByTagName("script"),u=0;u<h.length;u++){var c=h[u];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==s+i){a=c;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",s+i),a.src=e),r[e]=[t];var d=function(t,i){a.onerror=a.onload=null,clearTimeout(p);var s=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((function(e){return e(i)})),t)return t(i)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.p="",function(){var e={4826:0};o.f.j=function(t,i){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var s=new Promise((function(i,s){r=e[t]=[i,s]}));i.push(r[2]=s);var n=o.p+o.u(t),a=new Error;o.l(n,(function(i){if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+n+")",a.name="ChunkLoadError",a.type=s,a.request=n,r[1](a)}}),"chunk-"+t,t)}},o.O.j=function(t){return 0===e[t]};var t=function(t,i){var r,s,n=i[0],a=i[1],l=i[2],h=0;if(n.some((function(t){return 0!==e[t]}))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(t&&t(i);h<n.length;h++)s=n[h],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(u)},i=self.webpackChunk_am5=self.webpackChunk_am5||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}();var l=o(8494);l=o.O(l);var h=window;for(var u in l)h[u]=l[u];l.__esModule&&Object.defineProperty(h,"__esModule",{value:!0})}();
|
||
//# sourceMappingURL=index.js.map
|