-
Notifications
You must be signed in to change notification settings - Fork 0
/
543-es2015.3332a46149006862f7a2.js
1 lines (1 loc) · 385 KB
/
543-es2015.3332a46149006862f7a2.js
1
(self.webpackChunkmaterialpro=self.webpackChunkmaterialpro||[]).push([[543],{73543:function(t,e,i){"use strict";i.r(e),i.d(e,{ChartslibModule:function(){return zu}});var n=i(29996),a=i(42693),s=i(61116),r=i(48333),o=i(25722),l=i(50111),c=i(31041),h=i(77154),u=i(35366),d=i(35965),m=i(22797);const g=function(){return["#1976d2","#26dad2","#dadada"]},p=function(t){return{backgroundColor:t}},f=function(t){return[t]},x=function(){return["#1976d2","#26dad2","#dadada","#7460ee","#ef5350"]};let v=(()=>{class t{constructor(){this.barChartOptions={scaleShowVerticalLines:!1,responsive:!0,barThickness:10},this.barChartLabels=["2011","2012","2013","2014","2015","2016","2017"],this.barChartType="bar",this.barChartLegend=!0,this.barChartData=[{data:[65,59,80,81,56,55,40],label:"Iphone 8"},{data:[28,48,40,19,86,27,90],label:"Iphone X"}],this.barChartColors=[{backgroundColor:"#1976d2"},{backgroundColor:"#26dad2"}],this.doughnutChartLabels=["Download Sales","In-Store Sales","Mail-Order Sales"],this.doughnutChartData=[350,450,100],this.doughnutChartType="doughnut",this.radarChartLabels=["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],this.radarChartData=[{data:[65,59,90,81,56,55,40],label:"Series A"},{data:[28,48,40,19,96,27,100],label:"Series B"}],this.radarChartType="radar",this.radarChartColors=[{backgroundColor:"rgba(25,118,210,0.5)",borderColor:"rgba(25,118,210,1)"},{backgroundColor:"rgba(38,218,210,0.5)",borderColor:"rgba(38,218,210,1)"}],this.pieChartLabels=["Download Sales","In-Store Sales","Mail Sales"],this.pieChartData=[300,500,100],this.pieChartType="pie",this.polarAreaChartLabels=["Download Sales","In-Store Sales","Mail Sales","Telesales","Corporate Sales"],this.polarAreaChartData=[300,500,100,40,120],this.polarAreaLegend=!0,this.polarAreaChartType="polarArea",this.lineChartData=[{data:[65,39,80,15,76,35,40],label:"Series A"},{data:[18,58,20,69,16,27,90],label:"Series B"}],this.lineChartLabels=["January","February","March","April","May","June","July"],this.lineChartOptions={responsive:!0},this.lineChartColors=[{backgroundColor:"rgba(25,118,210,0.1)",borderColor:"rgba(25,118,210,1)",pointBackgroundColor:"rgba(25,118,210,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(25,118,210,0.5)"},{backgroundColor:"rgba(38,218,210,0.1)",borderColor:"rgba(38,218,210,1)",pointBackgroundColor:"rgba(38,218,210,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(38,218,210,0.5)"}],this.lineChartLegend=!0,this.lineChartType="line",this.subtitle="This is chart page."}chartClicked(t){}chartHovered(t){}randomize(){const t=[Math.round(100*Math.random()),59,80,100*Math.random(),56,100*Math.random(),40],e=JSON.parse(JSON.stringify(this.barChartData));e[0].data=t,this.barChartData=e}ngAfterViewInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ng-component"]],decls:49,vars:44,consts:[["fxLayout","row","fxLayoutWrap","wrap"],["fxFlex.gt-sm","50","fxFlex.gt-xs","100","fxFlex","100"],["baseChart","",3,"datasets","labels","options","legend","chartType","colors","chartHover","chartClick"],["baseChart","","height","150px",3,"data","labels","chartType","colors","chartHover","chartClick"],["baseChart","","height","150px",3,"datasets","labels","chartType","colors","chartHover","chartClick"],["baseChart","","height","130px",3,"data","labels","legend","chartType","colors","chartHover","chartClick"],["baseChart","","height","130",3,"datasets","labels","options","colors","legend","chartType","chartHover","chartClick"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275elementStart"](1,"div",1),u["\u0275\u0275elementStart"](2,"mat-card"),u["\u0275\u0275elementStart"](3,"mat-card-content"),u["\u0275\u0275elementStart"](4,"mat-card-title"),u["\u0275\u0275text"](5,"Bar Sales Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](6,"mat-card-subtitle"),u["\u0275\u0275text"](7,"This is the simple example of bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](8,"canvas",2),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](9,"div",1),u["\u0275\u0275elementStart"](10,"mat-card"),u["\u0275\u0275elementStart"](11,"mat-card-content"),u["\u0275\u0275elementStart"](12,"mat-card-title"),u["\u0275\u0275text"](13,"Doughnut Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](14,"mat-card-subtitle"),u["\u0275\u0275text"](15,"This is the simple example of Doughnut chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](16,"canvas",3),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](17,"div",1),u["\u0275\u0275elementStart"](18,"mat-card"),u["\u0275\u0275elementStart"](19,"mat-card-content"),u["\u0275\u0275elementStart"](20,"mat-card-title"),u["\u0275\u0275text"](21,"Radar Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](22,"mat-card-subtitle"),u["\u0275\u0275text"](23,"This is the simple example of Radar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](24,"canvas",4),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](25,"div",1),u["\u0275\u0275elementStart"](26,"mat-card"),u["\u0275\u0275elementStart"](27,"mat-card-content"),u["\u0275\u0275elementStart"](28,"mat-card-title"),u["\u0275\u0275text"](29,"Pie Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](30,"mat-card-subtitle"),u["\u0275\u0275text"](31,"This is the simple example of Pie Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](32,"canvas",3),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](33,"div",1),u["\u0275\u0275elementStart"](34,"mat-card"),u["\u0275\u0275elementStart"](35,"mat-card-content"),u["\u0275\u0275elementStart"](36,"mat-card-title"),u["\u0275\u0275text"](37,"Polar Area Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](38,"mat-card-subtitle"),u["\u0275\u0275text"](39,"This is the simple example of Polar Area Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](40,"canvas",5),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](41,"div",1),u["\u0275\u0275elementStart"](42,"mat-card"),u["\u0275\u0275elementStart"](43,"mat-card-content"),u["\u0275\u0275elementStart"](44,"mat-card-title"),u["\u0275\u0275text"](45,"Line Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](46,"mat-card-subtitle"),u["\u0275\u0275text"](47,"This is the simple example of Line Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](48,"canvas",6),u["\u0275\u0275listener"]("chartHover",function(t){return e.chartHovered(t)})("chartClick",function(t){return e.chartClicked(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("datasets",e.barChartData)("labels",e.barChartLabels)("options",e.barChartOptions)("legend",e.barChartLegend)("chartType",e.barChartType)("colors",e.barChartColors),u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("data",e.doughnutChartData)("labels",e.doughnutChartLabels)("chartType",e.doughnutChartType)("colors",u["\u0275\u0275pureFunction1"](32,f,u["\u0275\u0275pureFunction1"](30,p,u["\u0275\u0275pureFunction0"](29,g)))),u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("datasets",e.radarChartData)("labels",e.radarChartLabels)("chartType",e.radarChartType)("colors",e.radarChartColors),u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("data",e.pieChartData)("labels",e.pieChartLabels)("chartType",e.pieChartType)("colors",u["\u0275\u0275pureFunction1"](37,f,u["\u0275\u0275pureFunction1"](35,p,u["\u0275\u0275pureFunction0"](34,g)))),u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("data",e.polarAreaChartData)("labels",e.polarAreaChartLabels)("legend",e.polarAreaLegend)("chartType",e.polarAreaChartType)("colors",u["\u0275\u0275pureFunction1"](42,f,u["\u0275\u0275pureFunction1"](40,p,u["\u0275\u0275pureFunction0"](39,x)))),u["\u0275\u0275advance"](8),u["\u0275\u0275property"]("datasets",e.lineChartData)("labels",e.lineChartLabels)("options",e.lineChartOptions)("colors",e.lineChartColors)("legend",e.lineChartLegend)("chartType",e.lineChartType))},directives:[d.xw,d.yH,m.a8,m.dn,m.n5,m.$j,l.jh],encapsulation:2}),t})();var y=i(32059);const b=i(69175);let w=(()=>{class t{constructor(){this.barChart1={type:"Bar",data:b.Bar,options:{seriesBarDistance:15,axisX:{showGrid:!1,offset:70},axisY:{showGrid:!0,offset:50}},responsiveOptions:[["screen and (min-width: 640px)",{axisX:{labelInterpolationFnc:function(t,e){return e%1==0?`${t}`:null}}}]]},this.lineChart1={type:"Line",data:b.LineWithArea,options:{low:0,showArea:!0,fullWidth:!0}},this.lineChart2={type:"Line",data:b.Line,options:{low:0,showArea:!0,fullWidth:!0}},this.lineChart3={type:"Line",data:b.Line2,options:{low:0,showArea:!0,fullWidth:!0}},this.scatterChart1={type:"Line",data:b.Scatter,options:{showLine:!1,axisX:{labelInterpolationFnc:function(t,e){return e%13==0?`W${t}`:null}}},responsiveOptions:[["screen and (min-width: 640px)",{axisX:{labelInterpolationFnc:function(t,e){return e%4==0?`W${t}`:null}}}]]},this.pieChart1={type:"Pie",data:b.Pie,options:{donut:!0,donutWidth:50,startAngle:270,total:200,showLabel:!1}},this.donuteChart1={type:"Pie",data:b.Pie,options:{donut:!0,showLabel:!1}},this.bipollarChart1={type:"Bar",data:b["Bi-PolarBar"],options:{high:10,low:-10,axisX:{labelInterpolationFnc:function(t,e){return e%2==0?t:null}}}}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ng-component"]],decls:73,vars:40,consts:[["fxLayout","row","fxLayoutWrap","wrap"],["fxFlex.gt-sm","50","fxFlex.gt-xs","100","fxFlex","100"],[1,"barchrt",2,"height","400px"],[1,"",3,"data","type","options","responsiveOptions","events"],[1,"linearea",2,"height","400px"],[1,"piechart",2,"height","400px"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275elementStart"](1,"div",1),u["\u0275\u0275elementStart"](2,"mat-card"),u["\u0275\u0275elementStart"](3,"mat-card-content"),u["\u0275\u0275elementStart"](4,"mat-card-title"),u["\u0275\u0275text"](5,"Bar Chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](6,"mat-card-subtitle"),u["\u0275\u0275text"](7,"This is the simple data export from the json file and creating a bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](8,"div",2),u["\u0275\u0275element"](9,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](10,"div",1),u["\u0275\u0275elementStart"](11,"mat-card"),u["\u0275\u0275elementStart"](12,"mat-card-content"),u["\u0275\u0275elementStart"](13,"mat-card-title"),u["\u0275\u0275text"](14,"Line Area chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](15,"mat-card-subtitle"),u["\u0275\u0275text"](16,"This is the simple data export from the json file and creating a Line chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](17,"div",4),u["\u0275\u0275element"](18,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](19,"div",1),u["\u0275\u0275elementStart"](20,"mat-card"),u["\u0275\u0275elementStart"](21,"mat-card-content"),u["\u0275\u0275elementStart"](22,"mat-card-title"),u["\u0275\u0275text"](23,"Line chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](24,"mat-card-subtitle"),u["\u0275\u0275text"](25,"This is the simple data export from the json file and creating a Line chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](26,"div",4),u["\u0275\u0275element"](27,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](28,"div",1),u["\u0275\u0275elementStart"](29,"mat-card"),u["\u0275\u0275elementStart"](30,"mat-card-content"),u["\u0275\u0275elementStart"](31,"mat-card-title"),u["\u0275\u0275text"](32,"Line chart 2 Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](33,"mat-card-subtitle"),u["\u0275\u0275text"](34,"This is the simple data export from the json file and creating a Line chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](35,"div",4),u["\u0275\u0275element"](36,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](37,"div",1),u["\u0275\u0275elementStart"](38,"mat-card"),u["\u0275\u0275elementStart"](39,"mat-card-content"),u["\u0275\u0275elementStart"](40,"mat-card-title"),u["\u0275\u0275text"](41,"Scatter chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](42,"mat-card-subtitle"),u["\u0275\u0275text"](43,"This is the simple data export from the json file and creating a Scatter chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](44,"div",4),u["\u0275\u0275element"](45,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](46,"div",1),u["\u0275\u0275elementStart"](47,"mat-card"),u["\u0275\u0275elementStart"](48,"mat-card-content"),u["\u0275\u0275elementStart"](49,"mat-card-title"),u["\u0275\u0275text"](50,"Pie chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](51,"mat-card-subtitle"),u["\u0275\u0275text"](52,"This is the simple data export from the json file and creating a Pie chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](53,"div",5),u["\u0275\u0275element"](54,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](55,"div",1),u["\u0275\u0275elementStart"](56,"mat-card"),u["\u0275\u0275elementStart"](57,"mat-card-content"),u["\u0275\u0275elementStart"](58,"mat-card-title"),u["\u0275\u0275text"](59,"Donute chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](60,"mat-card-subtitle"),u["\u0275\u0275text"](61,"This is the simple data export from the json file and creating a Donute chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](62,"div",5),u["\u0275\u0275element"](63,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](64,"div",1),u["\u0275\u0275elementStart"](65,"mat-card"),u["\u0275\u0275elementStart"](66,"mat-card-content"),u["\u0275\u0275elementStart"](67,"mat-card-title"),u["\u0275\u0275text"](68,"Bipollar chart Example"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](69,"mat-card-subtitle"),u["\u0275\u0275text"](70,"This is the simple data export from the json file and creating a Bipollar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](71,"div",2),u["\u0275\u0275element"](72,"x-chartist",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.barChart1.data)("type",e.barChart1.type)("options",e.barChart1.options)("responsiveOptions",e.barChart1.responsiveOptions)("events",e.barChart1.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.lineChart1.data)("type",e.lineChart1.type)("options",e.lineChart1.options)("responsiveOptions",e.lineChart1.responsiveOptions)("events",e.lineChart1.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.lineChart2.data)("type",e.lineChart2.type)("options",e.lineChart2.options)("responsiveOptions",e.lineChart2.responsiveOptions)("events",e.lineChart2.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.lineChart3.data)("type",e.lineChart3.type)("options",e.lineChart3.options)("responsiveOptions",e.lineChart3.responsiveOptions)("events",e.lineChart3.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.scatterChart1.data)("type",e.scatterChart1.type)("options",e.scatterChart1.options)("responsiveOptions",e.scatterChart1.responsiveOptions)("events",e.scatterChart1.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.pieChart1.data)("type",e.pieChart1.type)("options",e.pieChart1.options)("responsiveOptions",e.pieChart1.responsiveOptions)("events",e.pieChart1.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.donuteChart1.data)("type",e.donuteChart1.type)("options",e.donuteChart1.options)("responsiveOptions",e.donuteChart1.responsiveOptions)("events",e.donuteChart1.events),u["\u0275\u0275advance"](9),u["\u0275\u0275property"]("data",e.bipollarChart1.data)("type",e.bipollarChart1.type)("options",e.bipollarChart1.options)("responsiveOptions",e.bipollarChart1.responsiveOptions)("events",e.bipollarChart1.events))},directives:[d.xw,d.yH,m.a8,m.dn,m.n5,m.$j,y.y],encapsulation:2}),t})();function T(t){this._context=t}function S(t){return new T(t)}T.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(t,e){switch(t=+t,e=+e,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;default:this._context.lineTo(t,e)}}};const L=[{name:"Germany",value:40},{name:"USA",value:49},{name:"France",value:36},{name:"United Kingdom",value:36},{name:"Spain",value:33},{name:"Italy",value:35}],k=[{name:"Germany",series:[{name:"2010",value:40},{name:"2000",value:36},{name:"1990",value:31}]},{name:"USA",series:[{name:"2010",value:49},{name:"2000",value:45},{name:"1990",value:37}]},{name:"France",series:[{name:"2010",value:36},{name:"2000",value:34},{name:"1990",value:29}]},{name:"United Kingdom",series:[{name:"2010",value:36},{name:"2000",value:32},{name:"1990",value:26}]}],A=(new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),new Date(Math.floor(1473700105009+1e9*Math.random())),["Abkhazia","Afghanistan","Akrotiri and Dhekelia","Aland","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antigua and Barbuda","Argentina","Armenia","Aruba","Ascension Island","Australia","Austria","Azerbaijan","Bahamas, The","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central Africa Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Cook Islands","Costa Rica","Cote d'lvoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Polynesia","Gabon","Cambia, The","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guam","Guatemala","Guemsey","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Korea, N","Korea, S","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mayotte","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Nagorno-Karabakh","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Cyprus","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcaim Islands","Poland","Portugal","Puerto Rico","Qatar","Romania","Russia","Rwanda","Sahrawi Arab Democratic Republic","Saint-Barthelemy","Saint Helena","Saint Kitts and Nevis","Saint Lucia","Saint Martin","Saint Pierre and Miquelon","Saint Vincent and Grenadines","Samos","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","Somaliland","South Africa","South Ossetia","Spain","Sri Lanka","Sudan","Suriname","Svalbard","Swaziland","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Togo","Tokelau","Tonga","Transnistria","Trinidad and Tobago","Tristan da Cunha","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Virgin Islands, British","Virgin Islands, U.S.","Wallis and Futuna","Yemen","Zambia","Zimbabwe"]);function C(t,e){const i=[],n=[];for(let a=0;a<8;a++)n.push(new Date(Math.floor(1473700105009+1e9*Math.random())));for(let a=0;a<t;a++){const t={name:A[Math.floor(Math.random()*A.length)],series:[]};for(let i=0;i<n.length;i++){const a=Math.floor(2+5*Math.random()),s=n[i];if(e){const e=.02+.08*Math.random();t.series.push({value:a,name:s,min:Math.floor(a*(1-e)),max:Math.ceil(a*(1+e))})}else t.series.push({value:a,name:s})}i.push(t)}return i}var E=i(99713),D=i(82151),M=i(64762),F=i(87254),_=i(47701);function O(){}function V(t){return null==t?O:function(){return this.querySelector(t)}}function I(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function P(){return[]}function G(t){return null==t?P:function(){return this.querySelectorAll(t)}}function X(t){return function(){return this.matches(t)}}function R(t){return function(e){return e.matches(t)}}var Y=Array.prototype.find;function B(){return this.firstElementChild}var H=Array.prototype.filter;function N(){return this.children}function W(t){return new Array(t.length)}function z(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function $(t){return function(){return t}}function j(t,e,i,n,a,s){for(var r,o=0,l=e.length,c=s.length;o<c;++o)(r=e[o])?(r.__data__=s[o],n[o]=r):i[o]=new z(t,s[o]);for(;o<l;++o)(r=e[o])&&(a[o]=r)}function U(t,e,i,n,a,s,r){var o,l,c,h=new Map,u=e.length,d=s.length,m=new Array(u);for(o=0;o<u;++o)(l=e[o])&&(m[o]=c=r.call(l,l.__data__,o,e)+"",h.has(c)?a[o]=l:h.set(c,l));for(o=0;o<d;++o)c=r.call(t,s[o],o,s)+"",(l=h.get(c))?(n[o]=l,l.__data__=s[o],h.delete(c)):i[o]=new z(t,s[o]);for(o=0;o<u;++o)(l=e[o])&&h.get(m[o])===l&&(a[o]=l)}function q(t){return t.__data__}function Q(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}z.prototype={constructor:z,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Z="http://www.w3.org/1999/xhtml",J={svg:"http://www.w3.org/2000/svg",xhtml:Z,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function K(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),J.hasOwnProperty(e)?{space:J[e],local:t}:t}function tt(t){return function(){this.removeAttribute(t)}}function et(t){return function(){this.removeAttributeNS(t.space,t.local)}}function it(t,e){return function(){this.setAttribute(t,e)}}function nt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function at(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function st(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function rt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ot(t){return function(){this.style.removeProperty(t)}}function lt(t,e,i){return function(){this.style.setProperty(t,e,i)}}function ct(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}function ht(t,e){return t.style.getPropertyValue(e)||rt(t).getComputedStyle(t,null).getPropertyValue(e)}function ut(t){return function(){delete this[t]}}function dt(t,e){return function(){this[t]=e}}function mt(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function gt(t){return t.trim().split(/^|\s+/)}function pt(t){return t.classList||new ft(t)}function ft(t){this._node=t,this._names=gt(t.getAttribute("class")||"")}function xt(t,e){for(var i=pt(t),n=-1,a=e.length;++n<a;)i.add(e[n])}function vt(t,e){for(var i=pt(t),n=-1,a=e.length;++n<a;)i.remove(e[n])}function yt(t){return function(){xt(this,t)}}function bt(t){return function(){vt(this,t)}}function wt(t,e){return function(){(e.apply(this,arguments)?xt:vt)(this,t)}}function Tt(){this.textContent=""}function St(t){return function(){this.textContent=t}}function Lt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function kt(){this.innerHTML=""}function At(t){return function(){this.innerHTML=t}}function Ct(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Et(){this.nextSibling&&this.parentNode.appendChild(this)}function Dt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mt(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===Z&&e.documentElement.namespaceURI===Z?e.createElement(t):e.createElementNS(i,t)}}function Ft(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _t(t){var e=K(t);return(e.local?Ft:Mt)(e)}function Ot(){return null}function Vt(){var t=this.parentNode;t&&t.removeChild(this)}function It(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Gt(t){return t.trim().split(/^|\s+/).map(function(t){var e="",i=t.indexOf(".");return i>=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}})}function Xt(t){return function(){var e=this.__on;if(e){for(var i,n=0,a=-1,s=e.length;n<s;++n)i=e[n],t.type&&i.type!==t.type||i.name!==t.name?e[++a]=i:this.removeEventListener(i.type,i.listener,i.options);++a?e.length=a:delete this.__on}}}function Rt(t,e,i){return function(){var n,a=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(a)for(var r=0,o=a.length;r<o;++r)if((n=a[r]).type===t.type&&n.name===t.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),void(n.value=e);this.addEventListener(t.type,s,i),n={type:t.type,name:t.name,value:e,listener:s,options:i},a?a.push(n):this.__on=[n]}}function Yt(t,e,i){var n=rt(t),a=n.CustomEvent;"function"==typeof a?a=new a(e,i):(a=n.document.createEvent("Event"),i?(a.initEvent(e,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function Bt(t,e){return function(){return Yt(this,t,e)}}function Ht(t,e){return function(){return Yt(this,t,e.apply(this,arguments))}}ft.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Nt=[null];function Wt(t,e){this._groups=t,this._parents=e}function zt(){return new Wt([[document.documentElement]],Nt)}Wt.prototype=zt.prototype={constructor:Wt,select:function(t){"function"!=typeof t&&(t=V(t));for(var e=this._groups,i=e.length,n=new Array(i),a=0;a<i;++a)for(var s,r,o=e[a],l=o.length,c=n[a]=new Array(l),h=0;h<l;++h)(s=o[h])&&(r=t.call(s,s.__data__,h,o))&&("__data__"in s&&(r.__data__=s.__data__),c[h]=r);return new Wt(n,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);return null==e?[]:I(e)}}(t):G(t);for(var e=this._groups,i=e.length,n=[],a=[],s=0;s<i;++s)for(var r,o=e[s],l=o.length,c=0;c<l;++c)(r=o[c])&&(n.push(t.call(r,r.__data__,c,o)),a.push(r));return new Wt(n,a)},selectChild:function(t){return this.select(null==t?B:function(t){return function(){return Y.call(this.children,t)}}("function"==typeof t?t:R(t)))},selectChildren:function(t){return this.selectAll(null==t?N:function(t){return function(){return H.call(this.children,t)}}("function"==typeof t?t:R(t)))},filter:function(t){"function"!=typeof t&&(t=X(t));for(var e=this._groups,i=e.length,n=new Array(i),a=0;a<i;++a)for(var s,r=e[a],o=r.length,l=n[a]=[],c=0;c<o;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s);return new Wt(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,q);var i=e?U:j,n=this._parents,a=this._groups;"function"!=typeof t&&(t=$(t));for(var s=a.length,r=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var h=n[c],u=a[c],d=u.length,m=I(t.call(h,h&&h.__data__,c,n)),g=m.length,p=o[c]=new Array(g),f=r[c]=new Array(g),x=l[c]=new Array(d);i(h,u,p,f,x,m,e);for(var v,y,b=0,w=0;b<g;++b)if(v=p[b]){for(b>=w&&(w=b+1);!(y=f[w])&&++w<g;);v._next=y||null}}return(r=new Wt(r,n))._enter=o,r._exit=l,r},enter:function(){return new Wt(this._enter||this._groups.map(W),this._parents)},exit:function(){return new Wt(this._exit||this._groups.map(W),this._parents)},join:function(t,e,i){var n=this.enter(),a=this,s=this.exit();return n="function"==typeof t?t(n):n.append(t+""),null!=e&&(a=e(a)),null==i?s.remove():i(s),n&&a?n.merge(a).order():a},merge:function(t){if(!(t instanceof Wt))throw new Error("invalid merge");for(var e=this._groups,i=t._groups,n=e.length,a=Math.min(n,i.length),s=new Array(n),r=0;r<a;++r)for(var o,l=e[r],c=i[r],h=l.length,u=s[r]=new Array(h),d=0;d<h;++d)(o=l[d]||c[d])&&(u[d]=o);for(;r<n;++r)s[r]=e[r];return new Wt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var n,a=t[e],s=a.length-1,r=a[s];--s>=0;)(n=a[s])&&(r&&4^n.compareDocumentPosition(r)&&r.parentNode.insertBefore(n,r),r=n);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=Q);for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s){for(var r,o=i[s],l=o.length,c=a[s]=new Array(l),h=0;h<l;++h)(r=o[h])&&(c[h]=r);c.sort(e)}return new Wt(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n=t[e],a=0,s=n.length;a<s;++a){var r=n[a];if(r)return r}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,i=0,n=e.length;i<n;++i)for(var a,s=e[i],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function(t,e){var i=K(t);if(arguments.length<2){var n=this.node();return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==e?i.local?et:tt:"function"==typeof e?i.local?st:at:i.local?nt:it)(i,e))},style:function(t,e,i){return arguments.length>1?this.each((null==e?ot:"function"==typeof e?ct:lt)(t,e,null==i?"":i)):ht(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?ut:"function"==typeof e?mt:dt)(t,e)):this.node()[t]},classed:function(t,e){var i=gt(t+"");if(arguments.length<2){for(var n=pt(this.node()),a=-1,s=i.length;++a<s;)if(!n.contains(i[a]))return!1;return!0}return this.each(("function"==typeof e?wt:e?yt:bt)(i,e))},text:function(t){return arguments.length?this.each(null==t?Tt:("function"==typeof t?Lt:St)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?kt:("function"==typeof t?Ct:At)(t)):this.node().innerHTML},raise:function(){return this.each(Et)},lower:function(){return this.each(Dt)},append:function(t){var e="function"==typeof t?t:_t(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var i="function"==typeof t?t:_t(t),n=null==e?Ot:"function"==typeof e?e:V(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(Vt)},clone:function(t){return this.select(t?Pt:It)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,i){var n,a,s=Gt(t+""),r=s.length;if(!(arguments.length<2)){for(o=e?Rt:Xt,n=0;n<r;++n)this.each(o(s[n],e,i));return this}var o=this.node().__on;if(o)for(var l,c=0,h=o.length;c<h;++c)for(n=0,l=o[c];n<r;++n)if((a=s[n]).type===l.type&&a.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Ht:Bt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var n,a=t[e],s=0,r=a.length;s<r;++s)(n=a[s])&&(yield n)}};var $t=zt;function jt(t){return"string"==typeof t?new Wt([[document.querySelector(t)]],[document.documentElement]):new Wt([[t]],Nt)}var Ut={value:function(){}};function qt(){for(var t,e=0,i=arguments.length,n={};e<i;++e){if(!(t=arguments[e]+"")||t in n)throw new Error("illegal type: "+t);n[t]=[]}return new Qt(n)}function Qt(t){this._=t}function Zt(t,e){return t.trim().split(/^|\s+/).map(function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function Jt(t,e){for(var i,n=0,a=t.length;n<a;++n)if((i=t[n]).name===e)return i.value}function Kt(t,e,i){for(var n=0,a=t.length;n<a;++n)if(t[n].name===e){t[n]=Ut,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=i&&t.push({name:e,value:i}),t}Qt.prototype=qt.prototype={constructor:Qt,on:function(t,e){var i,n=this._,a=Zt(t+"",n),s=-1,r=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<r;)if(i=(t=a[s]).type)n[i]=Kt(n[i],t.name,e);else if(null==e)for(i in n)n[i]=Kt(n[i],t.name,null);return this}for(;++s<r;)if((i=(t=a[s]).type)&&(i=Jt(n[i],t.name)))return i},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Qt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,n,a=new Array(i),s=0;s<i;++s)a[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,i=(n=this._[t]).length;s<i;++s)n[s].value.apply(e,a)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],a=0,s=n.length;a<s;++a)n[a].value.apply(e,i)}};var te=qt;function ee(t){t.preventDefault(),t.stopImmediatePropagation()}function ie(t){var e=t.document.documentElement,i=jt(t).on("dragstart.drag",ee,!0);"onselectstart"in e?i.on("selectstart.drag",ee,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function ne(t,e){var i=t.document.documentElement,n=jt(t).on("dragstart.drag",null);e&&(n.on("click.drag",ee,!0),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in i?n.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function ae(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function se(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function re(){}var oe=1/.7,le="\\s*([+-]?\\d+)\\s*",ce="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",he="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,de=new RegExp("^rgb\\("+[le,le,le]+"\\)$"),me=new RegExp("^rgb\\("+[he,he,he]+"\\)$"),ge=new RegExp("^rgba\\("+[le,le,le,ce]+"\\)$"),pe=new RegExp("^rgba\\("+[he,he,he,ce]+"\\)$"),fe=new RegExp("^hsl\\("+[ce,he,he]+"\\)$"),xe=new RegExp("^hsla\\("+[ce,he,he,ce]+"\\)$"),ve={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 ye(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function we(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=ue.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?Te(e):3===i?new Ae(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?Se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?Se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=de.exec(t))?new Ae(e[1],e[2],e[3],1):(e=me.exec(t))?new Ae(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ge.exec(t))?Se(e[1],e[2],e[3],e[4]):(e=pe.exec(t))?Se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=fe.exec(t))?Me(e[1],e[2]/100,e[3]/100,1):(e=xe.exec(t))?Me(e[1],e[2]/100,e[3]/100,e[4]):ve.hasOwnProperty(t)?Te(ve[t]):"transparent"===t?new Ae(NaN,NaN,NaN,0):null}function Te(t){return new Ae(t>>16&255,t>>8&255,255&t,1)}function Se(t,e,i,n){return n<=0&&(t=e=i=NaN),new Ae(t,e,i,n)}function Le(t){return t instanceof re||(t=we(t)),t?new Ae((t=t.rgb()).r,t.g,t.b,t.opacity):new Ae}function ke(t,e,i,n){return 1===arguments.length?Le(t):new Ae(t,e,i,null==n?1:n)}function Ae(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function Ce(){return"#"+De(this.r)+De(this.g)+De(this.b)}function Ee(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function De(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Me(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new _e(t,e,i,n)}function Fe(t){if(t instanceof _e)return new _e(t.h,t.s,t.l,t.opacity);if(t instanceof re||(t=we(t)),!t)return new _e;if(t instanceof _e)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,a=Math.min(e,i,n),s=Math.max(e,i,n),r=NaN,o=s-a,l=(s+a)/2;return o?(r=e===s?(i-n)/o+6*(i<n):i===s?(n-e)/o+2:(e-i)/o+4,o/=l<.5?s+a:2-s-a,r*=60):o=l>0&&l<1?0:r,new _e(r,o,l,t.opacity)}function _e(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function Oe(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function Ve(t,e,i,n,a){var s=t*t,r=s*t;return((1-3*t+3*s-r)*e+(4-6*s+3*r)*i+(1+3*t+3*s-3*r)*n+r*a)/6}ae(re,we,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ye,formatHex:ye,formatHsl:function(){return Fe(this).formatHsl()},formatRgb:be,toString:be}),ae(Ae,ke,se(re,{brighter:function(t){return t=null==t?oe:Math.pow(oe,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ae(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:Ce,formatHex:Ce,formatRgb:Ee,toString:Ee})),ae(_e,function(t,e,i,n){return 1===arguments.length?Fe(t):new _e(t,e,i,null==n?1:n)},se(re,{brighter:function(t){return t=null==t?oe:Math.pow(oe,t),new _e(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _e(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,a=2*i-n;return new Ae(Oe(t>=240?t-240:t+120,a,n),Oe(t,a,n),Oe(t<120?t+240:t-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ie=t=>()=>t;function Pe(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):Ie(isNaN(t)?e:t)}var Ge=function t(e){var i=function(t){return 1==(t=+t)?Pe:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}(e,i,t):Ie(isNaN(e)?i:e)}}(e);function n(t,e){var n=i((t=ke(t)).r,(e=ke(e)).r),a=i(t.g,e.g),s=i(t.b,e.b),r=Pe(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=s(e),t.opacity=r(e),t+""}}return n.gamma=t,n}(1);function Xe(t){return function(e){var i,n,a=e.length,s=new Array(a),r=new Array(a),o=new Array(a);for(i=0;i<a;++i)n=ke(e[i]),s[i]=n.r||0,r[i]=n.g||0,o[i]=n.b||0;return s=t(s),r=t(r),o=t(o),n.opacity=1,function(t){return n.r=s(t),n.g=r(t),n.b=o(t),n+""}}}function Re(t,e){var i,n=e?e.length:0,a=t?Math.min(n,t.length):0,s=new Array(a),r=new Array(n);for(i=0;i<a;++i)s[i]=je(t[i],e[i]);for(;i<n;++i)r[i]=e[i];return function(t){for(i=0;i<a;++i)r[i]=s[i](t);return r}}function Ye(t,e){var i=new Date;return t=+t,e=+e,function(n){return i.setTime(t*(1-n)+e*n),i}}function Be(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}function He(t,e){var i,n={},a={};for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=je(t[i],e[i]):a[i]=e[i];return function(t){for(i in n)a[i]=n[i](t);return a}}Xe(function(t){var e=t.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),a=t[n],s=t[n+1];return Ve((i-n/e)*e,n>0?t[n-1]:2*a-s,a,s,n<e-1?t[n+2]:2*s-a)}}),Xe(function(t){var e=t.length;return function(i){var n=Math.floor(((i%=1)<0?++i:i)*e);return Ve((i-n/e)*e,t[(n+e-1)%e],t[n%e],t[(n+1)%e],t[(n+2)%e])}});var Ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,We=new RegExp(Ne.source,"g");function ze(t,e){var i,n,a,s=Ne.lastIndex=We.lastIndex=0,r=-1,o=[],l=[];for(t+="",e+="";(i=Ne.exec(t))&&(n=We.exec(e));)(a=n.index)>s&&(a=e.slice(s,a),o[r]?o[r]+=a:o[++r]=a),(i=i[0])===(n=n[0])?o[r]?o[r]+=n:o[++r]=n:(o[++r]=null,l.push({i:r,x:Be(i,n)})),s=We.lastIndex;return s<e.length&&(a=e.slice(s),o[r]?o[r]+=a:o[++r]=a),o.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var i,n=0;n<e;++n)o[(i=l[n]).i]=i.x(t);return o.join("")})}function $e(t,e){e||(e=[]);var i,n=t?Math.min(e.length,t.length):0,a=e.slice();return function(s){for(i=0;i<n;++i)a[i]=t[i]*(1-s)+e[i]*s;return a}}function je(t,e){var i,n,a=typeof e;return null==e||"boolean"===a?Ie(e):("number"===a?Be:"string"===a?(i=we(e))?(e=i,Ge):ze:e instanceof we?Ge:e instanceof Date?Ye:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Re:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?He:Be:$e))(t,e)}function Ue(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var i=e.ownerSVGElement||e;if(i.createSVGPoint){var n=i.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}if(e.getBoundingClientRect){var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}}return[t.pageX,t.pageY]}var qe,Qe,Ze=0,Je=0,Ke=0,ti=0,ei=0,ii=0,ni="object"==typeof performance&&performance.now?performance:Date,ai="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function si(){return ei||(ai(ri),ei=ni.now()+ii)}function ri(){ei=0}function oi(){this._call=this._time=this._next=null}function li(t,e,i){var n=new oi;return n.restart(t,e,i),n}function ci(){ei=(ti=ni.now())+ii,Ze=Je=0;try{!function(){si(),++Ze;for(var t,e=qe;e;)(t=ei-e._time)>=0&&e._call.call(null,t),e=e._next;--Ze}()}finally{Ze=0,function(){for(var t,e,i=qe,n=1/0;i;)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:qe=e);Qe=t,ui(n)}(),ei=0}}function hi(){var t=ni.now(),e=t-ti;e>1e3&&(ii-=e,ti=t)}function ui(t){Ze||(Je&&(Je=clearTimeout(Je)),t-ei>24?(t<1/0&&(Je=setTimeout(ci,t-ni.now()-ii)),Ke&&(Ke=clearInterval(Ke))):(Ke||(ti=ni.now(),Ke=setInterval(hi,1e3)),Ze=1,ai(ci)))}function di(t,e,i){var n=new oi;return n.restart(function(i){n.stop(),t(i+e)},e=null==e?0:+e,i),n}oi.prototype=li.prototype={constructor:oi,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?si():+i)+(null==e?0:+e),this._next||Qe===this||(Qe?Qe._next=this:qe=this,Qe=this),this._call=t,this._time=i,ui()},stop:function(){this._call&&(this._call=null,this._time=1/0,ui())}};var mi=te("start","end","cancel","interrupt"),gi=[];function pi(t,e,i,n,a,s){var r=t.__transition;if(r){if(i in r)return}else t.__transition={};!function(t,e,i){var n,a=t.__transition;function s(l){var c,h,u,d;if(1!==i.state)return o();for(c in a)if((d=a[c]).name===i.name){if(3===d.state)return di(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete a[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete a[c])}if(di(function(){3===i.state&&(i.state=4,i.timer.restart(r,i.delay,i.time),r(l))}),i.state=2,i.on.call("start",t,t.__data__,i.index,i.group),2===i.state){for(i.state=3,n=new Array(u=i.tween.length),c=0,h=-1;c<u;++c)(d=i.tween[c].value.call(t,t.__data__,i.index,i.group))&&(n[++h]=d);n.length=h+1}}function r(e){for(var a=e<i.duration?i.ease.call(null,e/i.duration):(i.timer.restart(o),i.state=5,1),s=-1,r=n.length;++s<r;)n[s].call(t,a);5===i.state&&(i.on.call("end",t,t.__data__,i.index,i.group),o())}function o(){for(var n in i.state=6,i.timer.stop(),delete a[e],a)return;delete t.__transition}a[e]=i,i.timer=li(function(t){i.state=1,i.timer.restart(s,i.delay,i.time),i.delay<=t&&s(t-i.delay)},0,i.time)}(t,i,{name:e,index:n,group:a,on:mi,tween:gi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function fi(t,e){var i=vi(t,e);if(i.state>0)throw new Error("too late; already scheduled");return i}function xi(t,e){var i=vi(t,e);if(i.state>3)throw new Error("too late; already running");return i}function vi(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function yi(t,e){var i,n,a,s=t.__transition,r=!0;if(s){for(a in e=null==e?null:e+"",s)(i=s[a]).name===e?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete s[a]):r=!1;r&&delete t.__transition}}var bi,wi=180/Math.PI,Ti={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Si(t,e,i,n,a,s){var r,o,l;return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*i+e*n)&&(i-=t*l,n-=e*l),(o=Math.sqrt(i*i+n*n))&&(i/=o,n/=o,l/=o),t*n<e*i&&(t=-t,e=-e,l=-l,r=-r),{translateX:a,translateY:s,rotate:Math.atan2(e,t)*wi,skewX:Math.atan(l)*wi,scaleX:r,scaleY:o}}function Li(t,e,i,n){function a(t){return t.length?t.pop()+" ":""}return function(s,r){var o=[],l=[];return s=t(s),r=t(r),function(t,n,a,s,r,o){if(t!==a||n!==s){var l=r.push("translate(",null,e,null,i);o.push({i:l-4,x:Be(t,a)},{i:l-2,x:Be(n,s)})}else(a||s)&&r.push("translate("+a+e+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,o,l),function(t,e,i,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:i.push(a(i)+"rotate(",null,n)-2,x:Be(t,e)})):e&&i.push(a(i)+"rotate("+e+n)}(s.rotate,r.rotate,o,l),function(t,e,i,s){t!==e?s.push({i:i.push(a(i)+"skewX(",null,n)-2,x:Be(t,e)}):e&&i.push(a(i)+"skewX("+e+n)}(s.skewX,r.skewX,o,l),function(t,e,i,n,s,r){if(t!==i||e!==n){var o=s.push(a(s)+"scale(",null,",",null,")");r.push({i:o-4,x:Be(t,i)},{i:o-2,x:Be(e,n)})}else 1===i&&1===n||s.push(a(s)+"scale("+i+","+n+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,o,l),s=r=null,function(t){for(var e,i=-1,n=l.length;++i<n;)o[(e=l[i]).i]=e.x(t);return o.join("")}}}var ki=Li(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ti:Si(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Ai=Li(function(t){return null==t?Ti:(bi||(bi=document.createElementNS("http://www.w3.org/2000/svg","g")),bi.setAttribute("transform",t),(t=bi.transform.baseVal.consolidate())?Si((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ti)},", ",")",")");function Ci(t,e){var i,n;return function(){var a=xi(this,t),s=a.tween;if(s!==i)for(var r=0,o=(n=i=s).length;r<o;++r)if(n[r].name===e){(n=n.slice()).splice(r,1);break}a.tween=n}}function Ei(t,e,i){var n,a;if("function"!=typeof i)throw new Error;return function(){var s=xi(this,t),r=s.tween;if(r!==n){a=(n=r).slice();for(var o={name:e,value:i},l=0,c=a.length;l<c;++l)if(a[l].name===e){a[l]=o;break}l===c&&a.push(o)}s.tween=a}}function Di(t,e,i){var n=t._id;return t.each(function(){var t=xi(this,n);(t.value||(t.value={}))[e]=i.apply(this,arguments)}),function(t){return vi(t,n).value[e]}}function Mi(t,e){var i;return("number"==typeof e?Be:e instanceof we?Ge:(i=we(e))?(e=i,Ge):ze)(t,e)}function Fi(t){return function(){this.removeAttribute(t)}}function _i(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oi(t,e,i){var n,a,s=i+"";return function(){var r=this.getAttribute(t);return r===s?null:r===n?a:a=e(n=r,i)}}function Vi(t,e,i){var n,a,s=i+"";return function(){var r=this.getAttributeNS(t.space,t.local);return r===s?null:r===n?a:a=e(n=r,i)}}function Ii(t,e,i){var n,a,s;return function(){var r,o,l=i(this);if(null!=l)return(r=this.getAttribute(t))===(o=l+"")?null:r===n&&o===a?s:(a=o,s=e(n=r,l));this.removeAttribute(t)}}function Pi(t,e,i){var n,a,s;return function(){var r,o,l=i(this);if(null!=l)return(r=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:r===n&&o===a?s:(a=o,s=e(n=r,l));this.removeAttributeNS(t.space,t.local)}}function Gi(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Xi(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Ri(t,e){var i,n;function a(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Xi(t,a)),i}return a._value=e,a}function Yi(t,e){var i,n;function a(){var a=e.apply(this,arguments);return a!==n&&(i=(n=a)&&Gi(t,a)),i}return a._value=e,a}function Bi(t,e){return function(){fi(this,t).delay=+e.apply(this,arguments)}}function Hi(t,e){return e=+e,function(){fi(this,t).delay=e}}function Ni(t,e){return function(){xi(this,t).duration=+e.apply(this,arguments)}}function Wi(t,e){return e=+e,function(){xi(this,t).duration=e}}function zi(t,e){if("function"!=typeof e)throw new Error;return function(){xi(this,t).ease=e}}function $i(t,e,i){var n,a,s=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?fi:xi;return function(){var r=s(this,t),o=r.on;o!==n&&(a=(n=o).copy()).on(e,i),r.on=a}}var ji=$t.prototype.constructor;function Ui(t){return function(){this.style.removeProperty(t)}}function qi(t,e,i){return function(n){this.style.setProperty(t,e.call(this,n),i)}}function Qi(t,e,i){var n,a;function s(){var s=e.apply(this,arguments);return s!==a&&(n=(a=s)&&qi(t,s,i)),n}return s._value=e,s}function Zi(t){return function(e){this.textContent=t.call(this,e)}}function Ji(t){var e,i;function n(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Zi(n)),e}return n._value=t,n}var Ki=0;function tn(t,e,i,n){this._groups=t,this._parents=e,this._name=i,this._id=n}function en(){return++Ki}var nn=$t.prototype;tn.prototype=(function(t){return $t().transition(t)}).prototype={constructor:tn,select:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=V(t));for(var n=this._groups,a=n.length,s=new Array(a),r=0;r<a;++r)for(var o,l,c=n[r],h=c.length,u=s[r]=new Array(h),d=0;d<h;++d)(o=c[d])&&(l=t.call(o,o.__data__,d,c))&&("__data__"in o&&(l.__data__=o.__data__),u[d]=l,pi(u[d],e,i,d,u,vi(o,i)));return new tn(s,this._parents,e,i)},selectAll:function(t){var e=this._name,i=this._id;"function"!=typeof t&&(t=G(t));for(var n=this._groups,a=n.length,s=[],r=[],o=0;o<a;++o)for(var l,c=n[o],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,m=t.call(l,l.__data__,u,c),g=vi(l,i),p=0,f=m.length;p<f;++p)(d=m[p])&&pi(d,e,i,p,m,g);s.push(m),r.push(l)}return new tn(s,r,e,i)},filter:function(t){"function"!=typeof t&&(t=X(t));for(var e=this._groups,i=e.length,n=new Array(i),a=0;a<i;++a)for(var s,r=e[a],o=r.length,l=n[a]=[],c=0;c<o;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s);return new tn(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,n=e.length,a=Math.min(n,i.length),s=new Array(n),r=0;r<a;++r)for(var o,l=e[r],c=i[r],h=l.length,u=s[r]=new Array(h),d=0;d<h;++d)(o=l[d]||c[d])&&(u[d]=o);for(;r<n;++r)s[r]=e[r];return new tn(s,this._parents,this._name,this._id)},selection:function(){return new ji(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,i=en(),n=this._groups,a=n.length,s=0;s<a;++s)for(var r,o=n[s],l=o.length,c=0;c<l;++c)if(r=o[c]){var h=vi(r,e);pi(r,t,i,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new tn(n,this._parents,t,i)},call:nn.call,nodes:nn.nodes,node:nn.node,size:nn.size,empty:nn.empty,each:nn.each,on:function(t,e){var i=this._id;return arguments.length<2?vi(this.node(),i).on.on(t):this.each($i(i,t,e))},attr:function(t,e){var i=K(t),n="transform"===i?Ai:Mi;return this.attrTween(t,"function"==typeof e?(i.local?Pi:Ii)(i,n,Di(this,"attr."+t,e)):null==e?(i.local?_i:Fi)(i):(i.local?Vi:Oi)(i,n,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var n=K(t);return this.tween(i,(n.local?Ri:Yi)(n,e))},style:function(t,e,i){var n="transform"==(t+="")?ki:Mi;return null==e?this.styleTween(t,function(t,e){var i,n,a;return function(){var s=ht(this,t),r=(this.style.removeProperty(t),ht(this,t));return s===r?null:s===i&&r===n?a:a=e(i=s,n=r)}}(t,n)).on("end.style."+t,Ui(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var n,a,s;return function(){var r=ht(this,t),o=i(this),l=o+"";return null==o&&(this.style.removeProperty(t),l=o=ht(this,t)),r===l?null:r===n&&l===a?s:(a=l,s=e(n=r,o))}}(t,n,Di(this,"style."+t,e))).each(function(t,e){var i,n,a,s,r="style."+e,o="end."+r;return function(){var l=xi(this,t),c=l.on,h=null==l.value[r]?s||(s=Ui(e)):void 0;c===i&&a===h||(n=(i=c).copy()).on(o,a=h),l.on=n}}(this._id,t)):this.styleTween(t,function(t,e,i){var n,a,s=i+"";return function(){var r=ht(this,t);return r===s?null:r===n?a:a=e(n=r,i)}}(t,n,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,Qi(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Di(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Ji(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var n,a=vi(this.node(),i).tween,s=0,r=a.length;s<r;++s)if((n=a[s]).name===t)return n.value;return null}return this.each((null==e?Ci:Ei)(i,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Bi:Hi)(e,t)):vi(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ni:Wi)(e,t)):vi(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(zi(e,t)):vi(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var i=e.apply(this,arguments);if("function"!=typeof i)throw new Error;xi(this,t).ease=i}}(this._id,t))},end:function(){var t,e,i=this,n=i._id,a=i.size();return new Promise(function(s,r){var o={value:r},l={value:function(){0==--a&&s()}};i.each(function(){var i=xi(this,n),a=i.on;a!==t&&((e=(t=a).copy())._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),i.on=e}),0===a&&s()})},[Symbol.iterator]:nn[Symbol.iterator]},function t(e){function i(t){return Math.pow(t,e)}return e=+e,i.exponent=t,i}(3),function t(e){function i(t){return 1-Math.pow(1-t,e)}return e=+e,i.exponent=t,i}(3),function t(e){function i(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,i.exponent=t,i}(3),Math,function t(e){function i(t){return t*t*((e+1)*t-e)}return e=+e,i.overshoot=t,i}(1.70158),function t(e){function i(t){return--t*t*((e+1)*t+e)+1}return e=+e,i.overshoot=t,i}(1.70158),function t(e){function i(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,i.overshoot=t,i}(1.70158);var an=2*Math.PI,sn=(function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=an);function a(t){return e*Math.pow(2,10*--t)*Math.sin((n-t)/i)}return a.amplitude=function(e){return t(e,i*an)},a.period=function(i){return t(e,i)},a}(1,.3),function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=an);function a(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+n)/i)}return a.amplitude=function(e){return t(e,i*an)},a.period=function(i){return t(e,i)},a}(1,.3),function t(e,i){var n=Math.asin(1/(e=Math.max(1,e)))*(i/=an);function a(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((n-t)/i):2-e*Math.pow(2,-10*t)*Math.sin((n+t)/i))/2}return a.amplitude=function(e){return t(e,i*an)},a.period=function(i){return t(e,i)},a}(1,.3),{time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});function rn(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}$t.prototype.interrupt=function(t){return this.each(function(){yi(this,t)})},$t.prototype.transition=function(t){var e,i;t instanceof tn?(e=t._id,t=t._name):(e=en(),(i=sn).time=si(),t=null==t?null:t+"");for(var n=this._groups,a=n.length,s=0;s<a;++s)for(var r,o=n[s],l=o.length,c=0;c<l;++c)(r=o[c])&&pi(r,t,e,c,o,i||rn(r,e));return new tn(n,this._parents,t,e)};var on=t=>()=>t;function ln(t,{sourceEvent:e,target:i,selection:n,mode:a,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function cn(t){t.stopImmediatePropagation()}function hn(t){t.preventDefault(),t.stopImmediatePropagation()}var un={name:"drag"},dn={name:"space"},mn={name:"handle"},gn={name:"center"};const{abs:pn,max:fn,min:xn}=Math;function vn(t){return[+t[0],+t[1]]}function yn(t){return[vn(t[0]),vn(t[1])]}var bn={name:"x",handles:["w","e"].map(Cn),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},wn={name:"y",handles:["n","s"].map(Cn),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Tn=(["n","w","e","s","nw","ne","sw","se"].map(Cn),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),Sn={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ln={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},kn={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},An={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Cn(t){return{type:t}}function En(t){return!t.ctrlKey&&!t.button}function Dn(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Mn(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fn(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function _n(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function On(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Vn(t){let e=t,i=t;function n(t,e,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const s=n+a>>>1;i(t[s],e)<0?n=s+1:a=s}return n}return 1===t.length&&(e=(e,i)=>t(e)-i,i=function(t){return(e,i)=>On(t(e),i)}(t)),{left:n,center:function(t,i,a,s){null==a&&(a=0),null==s&&(s=t.length);const r=n(t,i,a,s-1);return r>a&&e(t[r-1],i)>-e(t[r],i)?r-1:r},right:function(t,e,n,a){for(null==n&&(n=0),null==a&&(a=t.length);n<a;){const s=n+a>>>1;i(t[s],e)>0?a=s:n=s+1}return n}}}var In=Math.sqrt(50),Pn=Math.sqrt(10),Gn=Math.sqrt(2);function Xn(t,e,i){var n=(e-t)/Math.max(0,i),a=Math.floor(Math.log(n)/Math.LN10),s=n/Math.pow(10,a);return a>=0?(s>=In?10:s>=Pn?5:s>=Gn?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=In?10:s>=Pn?5:s>=Gn?2:1)}function Rn(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),s=n/a;return s>=In?a*=10:s>=Pn?a*=5:s>=Gn&&(a*=2),e<t?-a:a}var Yn=new Date,Bn=new Date;function Hn(t,e,i,n){function a(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return a.floor=function(e){return t(e=new Date(+e)),e},a.ceil=function(i){return t(i=new Date(i-1)),e(i,1),t(i),i},a.round=function(t){var e=a(t),i=a.ceil(t);return t-e<i-t?e:i},a.offset=function(t,i){return e(t=new Date(+t),null==i?1:Math.floor(i)),t},a.range=function(i,n,s){var r,o=[];if(i=a.ceil(i),s=null==s?1:Math.floor(s),!(i<n&&s>0))return o;do{o.push(r=new Date(+i)),e(i,s),t(i)}while(r<i&&i<n);return o},a.filter=function(i){return Hn(function(e){if(e>=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(a.count=function(e,n){return Yn.setTime(+e),Bn.setTime(+n),t(Yn),t(Bn),Math.floor(i(Yn,Bn))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(n?function(e){return n(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}var Nn=Hn(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Nn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Hn(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):Nn:null};var Wn=Nn,zn=Hn(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),$n=Hn(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),jn=Hn(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),Un=Hn(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);function qn(t){return Hn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Qn=qn(0),Zn=(qn(1),qn(2),qn(3),qn(4),qn(5),qn(6),Hn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),Jn=Hn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Jn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Hn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};var Kn=Jn,ta=Hn(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),ea=Hn(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),ia=Hn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function na(t){return Hn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var aa=na(0),sa=(na(1),na(2),na(3),na(4),na(5),na(6),Hn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),ra=Hn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ra.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Hn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};var oa=ra;function la(t,e,i,n,a,s){const r=[[zn,1,1e3],[zn,5,5e3],[zn,15,15e3],[zn,30,3e4],[s,1,6e4],[s,5,3e5],[s,15,9e5],[s,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[n,1,864e5],[n,2,1728e5],[i,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function o(e,i,n){const a=Math.abs(i-e)/n,s=Vn(([,,t])=>t).right(r,a);if(s===r.length)return t.every(Rn(e/31536e6,i/31536e6,n));if(0===s)return Wn.every(Math.max(Rn(e,i,n),1));const[o,l]=r[a/r[s-1][2]<r[s][2]/a?s-1:s];return o.every(l)}return[function(t,e,i){const n=e<t;n&&([t,e]=[e,t]);const a=i&&"function"==typeof i.range?i:o(t,e,i),s=a?a.range(t,+e+1):[];return n?s.reverse():s},o]}const[ca,ha]=la(oa,sa,aa,ia,ea,ta),[ua,da]=la(Kn,Zn,Qn,Un,jn,$n);var ma=new Date,ga=new Date;function pa(t,e,i,n){function a(e){return t(e=new Date(+e)),e}return a.floor=a,a.ceil=function(i){return t(i=new Date(i-1)),e(i,1),t(i),i},a.round=function(t){var e=a(t),i=a.ceil(t);return t-e<i-t?e:i},a.offset=function(t,i){return e(t=new Date(+t),null==i?1:Math.floor(i)),t},a.range=function(i,n,s){var r,o=[];if(i=a.ceil(i),s=null==s?1:Math.floor(s),!(i<n&&s>0))return o;do{o.push(r=new Date(+i)),e(i,s),t(i)}while(r<i&&i<n);return o},a.filter=function(i){return pa(function(e){if(e>=e)for(;t(e),!i(e);)e.setTime(e-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!i(t););else for(;--n>=0;)for(;e(t,1),!i(t););})},i&&(a.count=function(e,n){return ma.setTime(+e),ga.setTime(+n),t(ma),t(ga),Math.floor(i(ma,ga))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(n?function(e){return n(e)%t==0}:function(e){return a.count(0,e)%t==0}):a:null}),a}var fa=pa(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});fa.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?pa(function(e){e.setTime(Math.floor(e/t)*t)},function(e,i){e.setTime(+e+i*t)},function(e,i){return(i-e)/t}):fa:null},pa(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),pa(function(t){t.setTime(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),pa(function(t){var e=6e4*t.getTimezoneOffset()%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()});var xa=pa(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1});function va(t){return pa(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var ya=va(0),ba=va(1),wa=(va(2),va(3),va(4)),Ta=(va(5),va(6),pa(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),pa(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));Ta.every=function(t){return isFinite(t=Math.floor(t))&&t>0?pa(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,i){e.setFullYear(e.getFullYear()+i*t)}):null};var Sa=Ta,La=(pa(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),pa(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),pa(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function ka(t){return pa(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var Aa=ka(0),Ca=ka(1),Ea=(ka(2),ka(3),ka(4)),Da=(ka(5),ka(6),pa(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),pa(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));Da.every=function(t){return isFinite(t=Math.floor(t))&&t>0?pa(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,i){e.setUTCFullYear(e.getUTCFullYear()+i*t)}):null};var Ma=Da;function Fa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function _a(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Oa(t,e,i){return{y:t,m:e,d:i,H:0,M:0,S:0,L:0}}var Va,Ia,Pa={"-":"",_:" ",0:"0"},Ga=/^\s*\d+/,Xa=/^%/,Ra=/[\\^$*+?|[\]().{}]/g;function Ya(t,e,i){var n=t<0?"-":"",a=(n?-t:t)+"",s=a.length;return n+(s<i?new Array(i-s+1).join(e)+a:a)}function Ba(t){return t.replace(Ra,"\\$&")}function Ha(t){return new RegExp("^(?:"+t.map(Ba).join("|")+")","i")}function Na(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Wa(t,e,i){var n=Ga.exec(e.slice(i,i+1));return n?(t.w=+n[0],i+n[0].length):-1}function za(t,e,i){var n=Ga.exec(e.slice(i,i+1));return n?(t.u=+n[0],i+n[0].length):-1}function $a(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.U=+n[0],i+n[0].length):-1}function ja(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.V=+n[0],i+n[0].length):-1}function Ua(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.W=+n[0],i+n[0].length):-1}function qa(t,e,i){var n=Ga.exec(e.slice(i,i+4));return n?(t.y=+n[0],i+n[0].length):-1}function Qa(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),i+n[0].length):-1}function Za(t,e,i){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),i+n[0].length):-1}function Ja(t,e,i){var n=Ga.exec(e.slice(i,i+1));return n?(t.q=3*n[0]-3,i+n[0].length):-1}function Ka(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.m=n[0]-1,i+n[0].length):-1}function ts(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.d=+n[0],i+n[0].length):-1}function es(t,e,i){var n=Ga.exec(e.slice(i,i+3));return n?(t.m=0,t.d=+n[0],i+n[0].length):-1}function is(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.H=+n[0],i+n[0].length):-1}function ns(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.M=+n[0],i+n[0].length):-1}function as(t,e,i){var n=Ga.exec(e.slice(i,i+2));return n?(t.S=+n[0],i+n[0].length):-1}function ss(t,e,i){var n=Ga.exec(e.slice(i,i+3));return n?(t.L=+n[0],i+n[0].length):-1}function rs(t,e,i){var n=Ga.exec(e.slice(i,i+6));return n?(t.L=Math.floor(n[0]/1e3),i+n[0].length):-1}function os(t,e,i){var n=Xa.exec(e.slice(i,i+1));return n?i+n[0].length:-1}function ls(t,e,i){var n=Ga.exec(e.slice(i));return n?(t.Q=+n[0],i+n[0].length):-1}function cs(t,e,i){var n=Ga.exec(e.slice(i));return n?(t.s=+n[0],i+n[0].length):-1}function hs(t,e){return Ya(t.getDate(),e,2)}function us(t,e){return Ya(t.getHours(),e,2)}function ds(t,e){return Ya(t.getHours()%12||12,e,2)}function ms(t,e){return Ya(1+xa.count(Sa(t),t),e,3)}function gs(t,e){return Ya(t.getMilliseconds(),e,3)}function ps(t,e){return gs(t,e)+"000"}function fs(t,e){return Ya(t.getMonth()+1,e,2)}function xs(t,e){return Ya(t.getMinutes(),e,2)}function vs(t,e){return Ya(t.getSeconds(),e,2)}function ys(t){var e=t.getDay();return 0===e?7:e}function bs(t,e){return Ya(ya.count(Sa(t)-1,t),e,2)}function ws(t){var e=t.getDay();return e>=4||0===e?wa(t):wa.ceil(t)}function Ts(t,e){return t=ws(t),Ya(wa.count(Sa(t),t)+(4===Sa(t).getDay()),e,2)}function Ss(t){return t.getDay()}function Ls(t,e){return Ya(ba.count(Sa(t)-1,t),e,2)}function ks(t,e){return Ya(t.getFullYear()%100,e,2)}function As(t,e){return Ya((t=ws(t)).getFullYear()%100,e,2)}function Cs(t,e){return Ya(t.getFullYear()%1e4,e,4)}function Es(t,e){var i=t.getDay();return Ya((t=i>=4||0===i?wa(t):wa.ceil(t)).getFullYear()%1e4,e,4)}function Ds(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ya(e/60|0,"0",2)+Ya(e%60,"0",2)}function Ms(t,e){return Ya(t.getUTCDate(),e,2)}function Fs(t,e){return Ya(t.getUTCHours(),e,2)}function _s(t,e){return Ya(t.getUTCHours()%12||12,e,2)}function Os(t,e){return Ya(1+La.count(Ma(t),t),e,3)}function Vs(t,e){return Ya(t.getUTCMilliseconds(),e,3)}function Is(t,e){return Vs(t,e)+"000"}function Ps(t,e){return Ya(t.getUTCMonth()+1,e,2)}function Gs(t,e){return Ya(t.getUTCMinutes(),e,2)}function Xs(t,e){return Ya(t.getUTCSeconds(),e,2)}function Rs(t){var e=t.getUTCDay();return 0===e?7:e}function Ys(t,e){return Ya(Aa.count(Ma(t)-1,t),e,2)}function Bs(t){var e=t.getUTCDay();return e>=4||0===e?Ea(t):Ea.ceil(t)}function Hs(t,e){return t=Bs(t),Ya(Ea.count(Ma(t),t)+(4===Ma(t).getUTCDay()),e,2)}function Ns(t){return t.getUTCDay()}function Ws(t,e){return Ya(Ca.count(Ma(t)-1,t),e,2)}function zs(t,e){return Ya(t.getUTCFullYear()%100,e,2)}function $s(t,e){return Ya((t=Bs(t)).getUTCFullYear()%100,e,2)}function js(t,e){return Ya(t.getUTCFullYear()%1e4,e,4)}function Us(t,e){var i=t.getUTCDay();return Ya((t=i>=4||0===i?Ea(t):Ea.ceil(t)).getUTCFullYear()%1e4,e,4)}function qs(){return"+0000"}function Qs(){return"%"}function Zs(t){return+t}function Js(t){return Math.floor(+t/1e3)}function Ks(t){return null===t?NaN:+t}Va=function(t){var e=t.dateTime,i=t.date,n=t.time,a=t.periods,s=t.days,r=t.shortDays,o=t.months,l=t.shortMonths,c=Ha(a),h=Na(a),u=Ha(s),d=Na(s),m=Ha(r),g=Na(r),p=Ha(o),f=Na(o),x=Ha(l),v=Na(l),y={a:function(t){return r[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:hs,e:hs,f:ps,g:As,G:Es,H:us,I:ds,j:ms,L:gs,m:fs,M:xs,p:function(t){return a[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Zs,s:Js,S:vs,u:ys,U:bs,V:Ts,w:Ss,W:Ls,x:null,X:null,y:ks,Y:Cs,Z:Ds,"%":Qs},b={a:function(t){return r[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:Ms,e:Ms,f:Is,g:$s,G:Us,H:Fs,I:_s,j:Os,L:Vs,m:Ps,M:Gs,p:function(t){return a[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Zs,s:Js,S:Xs,u:Rs,U:Ys,V:Hs,w:Ns,W:Ws,x:null,X:null,y:zs,Y:js,Z:qs,"%":Qs},w={a:function(t,e,i){var n=m.exec(e.slice(i));return n?(t.w=g.get(n[0].toLowerCase()),i+n[0].length):-1},A:function(t,e,i){var n=u.exec(e.slice(i));return n?(t.w=d.get(n[0].toLowerCase()),i+n[0].length):-1},b:function(t,e,i){var n=x.exec(e.slice(i));return n?(t.m=v.get(n[0].toLowerCase()),i+n[0].length):-1},B:function(t,e,i){var n=p.exec(e.slice(i));return n?(t.m=f.get(n[0].toLowerCase()),i+n[0].length):-1},c:function(t,i,n){return L(t,e,i,n)},d:ts,e:ts,f:rs,g:Qa,G:qa,H:is,I:is,j:es,L:ss,m:Ka,M:ns,p:function(t,e,i){var n=c.exec(e.slice(i));return n?(t.p=h.get(n[0].toLowerCase()),i+n[0].length):-1},q:Ja,Q:ls,s:cs,S:as,u:za,U:$a,V:ja,w:Wa,W:Ua,x:function(t,e,n){return L(t,i,e,n)},X:function(t,e,i){return L(t,n,e,i)},y:Qa,Y:qa,Z:Za,"%":os};function T(t,e){return function(i){var n,a,s,r=[],o=-1,l=0,c=t.length;for(i instanceof Date||(i=new Date(+i));++o<c;)37===t.charCodeAt(o)&&(r.push(t.slice(l,o)),null!=(a=Pa[n=t.charAt(++o)])?n=t.charAt(++o):a="e"===n?" ":"0",(s=e[n])&&(n=s(i,a)),r.push(n),l=o+1);return r.push(t.slice(l,o)),r.join("")}}function S(t,e){return function(i){var n,a,s=Oa(1900,void 0,1);if(L(s,t,i+="",0)!=i.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(a=(n=_a(Oa(s.y,0,1))).getUTCDay(),n=a>4||0===a?Ca.ceil(n):Ca(n),n=La.offset(n,7*(s.V-1)),s.y=n.getUTCFullYear(),s.m=n.getUTCMonth(),s.d=n.getUTCDate()+(s.w+6)%7):(a=(n=Fa(Oa(s.y,0,1))).getDay(),n=a>4||0===a?ba.ceil(n):ba(n),n=xa.offset(n,7*(s.V-1)),s.y=n.getFullYear(),s.m=n.getMonth(),s.d=n.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),a="Z"in s?_a(Oa(s.y,0,1)).getUTCDay():Fa(Oa(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(a+5)%7:s.w+7*s.U-(a+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,_a(s)):Fa(s)}}function L(t,e,i,n){for(var a,s,r=0,o=e.length,l=i.length;r<o;){if(n>=l)return-1;if(37===(a=e.charCodeAt(r++))){if(a=e.charAt(r++),!(s=w[a in Pa?e.charAt(r++):a])||(n=s(t,i,n))<0)return-1}else if(a!=i.charCodeAt(n++))return-1}return n}return y.x=T(i,y),y.X=T(n,y),y.c=T(e,y),b.x=T(i,b),b.X=T(n,b),b.c=T(e,b),{format:function(t){var e=T(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=T(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ia=Va.format;const tr=Vn(On).right;Vn(Ks);var er=tr;function ir(t,e){return t=+t,e=+e,function(i){return Math.round(t*(1-i)+e*i)}}function nr(t){return+t}var ar=[0,1];function sr(t){return t}function rr(t,e){return(e-=t=+t)?function(i){return(i-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i}function or(t,e,i){var n=t[0],a=t[1],s=e[0],r=e[1];return a<n?(n=rr(a,n),s=i(r,s)):(n=rr(n,a),s=i(s,r)),function(t){return s(n(t))}}function lr(t,e,i){var n=Math.min(t.length,e.length)-1,a=new Array(n),s=new Array(n),r=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<n;)a[r]=rr(t[r],t[r+1]),s[r]=i(e[r],e[r+1]);return function(e){var i=er(t,e,1,n)-1;return s[i](a[i](e))}}function cr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hr(){return function(){var t,e,i,n,a,s,r=ar,o=ar,l=je,c=sr;function h(){var t,e,i,l=Math.min(r.length,o.length);return c!==sr&&((t=r[0])>(e=r[l-1])&&(i=t,t=e,e=i),c=function(i){return Math.max(t,Math.min(e,i))}),n=l>2?lr:or,a=s=null,u}function u(e){return null==e||isNaN(e=+e)?i:(a||(a=n(r.map(t),o,l)))(t(c(e)))}return u.invert=function(i){return c(e((s||(s=n(o,r.map(t),Be)))(i)))},u.domain=function(t){return arguments.length?(r=Array.from(t,nr),h()):r.slice()},u.range=function(t){return arguments.length?(o=Array.from(t),h()):o.slice()},u.rangeRound=function(t){return o=Array.from(t),l=ir,h()},u.clamp=function(t){return arguments.length?(c=!!t||sr,h()):c!==sr},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,n){return t=i,e=n,h()}}()(sr,sr)}function ur(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function dr(t){return new Date(t)}function mr(t){return t instanceof Date?+t:+new Date(+t)}function gr(t,e,i,n,a,s,r,o,l,c){var h=hr(),u=h.invert,d=h.domain,m=c(".%L"),g=c(":%S"),p=c("%I:%M"),f=c("%I %p"),x=c("%a %d"),v=c("%b %d"),y=c("%B"),b=c("%Y");function w(t){return(l(t)<t?m:o(t)<t?g:r(t)<t?p:s(t)<t?f:n(t)<t?a(t)<t?x:v:i(t)<t?y:b)(t)}return h.invert=function(t){return new Date(u(t))},h.domain=function(t){return arguments.length?d(Array.from(t,mr)):d().map(dr)},h.ticks=function(e){var i=d();return t(i[0],i[i.length-1],null==e?10:e)},h.tickFormat=function(t,e){return null==e?w:c(e)},h.nice=function(t){var i=d();return t&&"function"==typeof t.range||(t=e(i[0],i[i.length-1],null==t?10:t)),t?d(function(t,e){var i,n=0,a=(t=t.slice()).length-1,s=t[n],r=t[a];return r<s&&(i=n,n=a,a=i,i=s,s=r,r=i),t[n]=e.floor(s),t[a]=e.ceil(r),t}(i,t)):h},h.copy=function(){return cr(h,gr(t,e,i,n,a,s,r,o,l,c))},h}function pr(){return ur.apply(gr(ua,da,Kn,Zn,Qn,Un,jn,$n,zn,Ia).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var fr,xr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vr(t){if(!(e=xr.exec(t)))throw new Error("invalid format: "+t);var e;return new yr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function br(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,n=t.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+t.slice(i+1)]}function wr(t){return(t=br(Math.abs(t)))?t[1]:NaN}function Tr(t,e){var i=br(t,e);if(!i)return t+"";var n=i[0],a=i[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}vr.prototype=yr.prototype,yr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Sr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tr(100*t,e),r:Tr,s:function(t,e){var i=br(t,e);if(!i)return t+"";var n=i[0],a=i[1],s=a-(fr=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,r=n.length;return s===r?n:s>r?n+new Array(s-r+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+br(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Lr(t){return t}var kr,Ar,Cr,Er=Array.prototype.map,Dr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Mr(t){var e=t.domain;return t.ticks=function(t){var i=e();return function(t,e,i){var n,a,s,r,o=-1;if(i=+i,(t=+t)==(e=+e)&&i>0)return[t];if((n=e<t)&&(a=t,t=e,e=a),0===(r=Xn(t,e,i))||!isFinite(r))return[];if(r>0){let i=Math.round(t/r),n=Math.round(e/r);for(i*r<t&&++i,n*r>e&&--n,s=new Array(a=n-i+1);++o<a;)s[o]=(i+o)*r}else{r=-r;let i=Math.round(t*r),n=Math.round(e*r);for(i/r<t&&++i,n/r>e&&--n,s=new Array(a=n-i+1);++o<a;)s[o]=(i+o)/r}return n&&s.reverse(),s}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var n=e();return function(t,e,i,n){var a,s=Rn(t,e,i);switch((n=vr(null==n?",f":n)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(wr(e)/3)))-wr(Math.abs(t)))}(s,r))||(n.precision=a),Cr(n,r);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wr(e)-wr(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=function(t){return Math.max(0,-wr(Math.abs(t)))}(s))||(n.precision=a-2*("%"===n.type))}return Ar(n)}(n[0],n[n.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var n,a,s=e(),r=0,o=s.length-1,l=s[r],c=s[o],h=10;for(c<l&&(a=l,l=c,c=a,a=r,r=o,o=a);h-- >0;){if((a=Xn(l,c,i))===n)return s[r]=l,s[o]=c,e(s);if(a>0)l=Math.floor(l/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;l=Math.ceil(l*a)/a,c=Math.floor(c*a)/a}n=a}return t},t}function Fr(){var t=hr();return t.copy=function(){return cr(t,Fr())},ur.apply(t,arguments),Mr(t)}function _r(t,e,i){t=+t,e=+e,i=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+i;for(var n=-1,a=0|Math.max(0,Math.ceil((e-t)/i)),s=new Array(a);++n<a;)s[n]=t+n*i;return s}kr=function(t){var e,i,n=void 0===t.grouping||void 0===t.thousands?Lr:(e=Er.call(t.grouping,Number),i=t.thousands+"",function(t,n){for(var a=t.length,s=[],r=0,o=e[0],l=0;a>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),s.push(t.substring(a-=o,a+o)),!((l+=o+1)>n));)o=e[r=(r+1)%e.length];return s.reverse().join(i)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Lr:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Er.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vr(t)).fill,i=t.align,u=t.sign,d=t.symbol,m=t.zero,g=t.width,p=t.comma,f=t.precision,x=t.trim,v=t.type;"n"===v?(p=!0,v="g"):Sr[v]||(void 0===f&&(f=12),x=!0,v="g"),(m||"0"===e&&"="===i)&&(m=!0,e="0",i="=");var y="$"===d?a:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===d?s:/[%p]/.test(v)?l:"",w=Sr[v],T=/[defgprs%]/.test(v);function S(t){var a,s,l,d=y,S=b;if("c"===v)S=w(t)+S,t="";else{var L=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),f),x&&(t=function(t){t:for(var e,i=t.length,n=1,a=-1;n<i;++n)switch(t[n]){case".":a=e=n;break;case"0":0===a&&(a=n),e=n;break;default:if(!+t[n])break t;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(e+1):t}(t)),L&&0==+t&&"+"!==u&&(L=!1),d=(L?"("===u?u:c:"-"===u||"("===u?"":u)+d,S=("s"===v?Dr[8+fr/3]:"")+S+(L&&"("===u?")":""),T)for(a=-1,s=t.length;++a<s;)if(48>(l=t.charCodeAt(a))||l>57){S=(46===l?r+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}p&&!m&&(t=n(t,1/0));var k=d.length+t.length+S.length,A=k<g?new Array(g-k+1).join(e):"";switch(p&&m&&(t=n(A+t,A.length?g-S.length:1/0),A=""),i){case"<":t=d+t+S+A;break;case"=":t=d+A+t+S;break;case"^":t=A.slice(0,k=A.length>>1)+d+t+S+A.slice(k);break;default:t=A+d+t+S}return o(t)}return f=void 0===f?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),S.toString=function(){return t+""},S}return{format:u,formatPrefix:function(t,e){var i=u(((t=vr(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(wr(e)/3))),a=Math.pow(10,-n),s=Dr[8+n/3];return function(t){return i(a*t)+s}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ar=kr.format,Cr=kr.formatPrefix;const Or=Symbol("implicit");function Vr(){var t=new Map,e=[],i=[],n=Or;function a(a){var s=a+"",r=t.get(s);if(!r){if(n!==Or)return n;t.set(s,r=e.push(a))}return i[(r-1)%i.length]}return a.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Map;for(const n of i){const i=n+"";t.has(i)||t.set(i,e.push(n))}return a},a.range=function(t){return arguments.length?(i=Array.from(t),a):i.slice()},a.unknown=function(t){return arguments.length?(n=t,a):n},a.copy=function(){return Vr(e,i).unknown(n)},ur.apply(a,arguments),a}function Ir(){var t,e,i=Vr().unknown(void 0),n=i.domain,a=i.range,s=0,r=1,o=!1,l=0,c=0,h=.5;function u(){var i=n().length,u=r<s,d=u?r:s,m=u?s:r;t=(m-d)/Math.max(1,i-l+2*c),o&&(t=Math.floor(t)),d+=(m-d-t*(i-l))*h,e=t*(1-l),o&&(d=Math.round(d),e=Math.round(e));var g=_r(i).map(function(e){return d+t*e});return a(u?g.reverse():g)}return delete i.unknown,i.domain=function(t){return arguments.length?(n(t),u()):n()},i.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,u()):[s,r]},i.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,o=!0,u()},i.bandwidth=function(){return e},i.step=function(){return t},i.round=function(t){return arguments.length?(o=!!t,u()):o},i.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),u()):l},i.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),u()):l},i.paddingOuter=function(t){return arguments.length?(c=+t,u()):c},i.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),u()):h},i.copy=function(){return Ir(n(),[s,r]).round(o).paddingInner(l).paddingOuter(c).align(h)},ur.apply(u(),arguments)}function Pr(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Pr(e())},t}function Gr(){return Pr(Ir.apply(null,arguments).paddingInner(1))}function Xr(t,e,i=Ks){if(n=t.length){if((e=+e)<=0||n<2)return+i(t[0],0,t);if(e>=1)return+i(t[n-1],n-1,t);var n,a=(n-1)*e,s=Math.floor(a),r=+i(t[s],s,t);return r+(+i(t[s+1],s+1,t)-r)*(a-s)}}function Rr(){var t,e=[],i=[],n=[];function a(){var t=0,a=Math.max(1,i.length);for(n=new Array(a-1);++t<a;)n[t-1]=Xr(e,t/a);return s}function s(e){return null==e||isNaN(e=+e)?t:i[er(n,e)]}return s.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:[a>0?n[a-1]:e[0],a<n.length?n[a]:e[e.length-1]]},s.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let i of t)null==i||isNaN(i=+i)||e.push(i);return e.sort(On),a()},s.range=function(t){return arguments.length?(i=Array.from(t),a()):i.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return n.slice()},s.copy=function(){return Rr().domain(e).range(i).unknown(t)},ur.apply(s,arguments)}var Yr=Math.PI,Br=2*Yr,Hr=Br-1e-6;function Nr(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Wr(){return new Nr}Nr.prototype=Wr.prototype={constructor:Nr,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},bezierCurveTo:function(t,e,i,n,a,s){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(t,e,i,n,a){var s=this._x1,r=this._y1,o=(i=+i)-(t=+t),l=(n=+n)-(e=+e),c=s-t,h=r-e,u=c*c+h*h;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(h*o-l*c)>1e-6&&a){var d=i-s,m=n-r,g=o*o+l*l,p=d*d+m*m,f=Math.sqrt(g),x=Math.sqrt(u),v=a*Math.tan((Yr-Math.acos((g+u-p)/(2*f*x)))/2),y=v/x,b=v/f;Math.abs(y-1)>1e-6&&(this._+="L"+(t+y*c)+","+(e+y*h)),this._+="A"+a+","+a+",0,0,"+ +(h*d>c*m)+","+(this._x1=t+b*o)+","+(this._y1=e+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,n,a,s){t=+t,e=+e;var r=(i=+i)*Math.cos(n),o=i*Math.sin(n),l=t+r,c=e+o,h=1^s,u=s?n-a:a-n;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),i&&(u<0&&(u=u%Br+Br),u>Hr?this._+="A"+i+","+i+",0,1,"+h+","+(t-r)+","+(e-o)+"A"+i+","+i+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):u>1e-6&&(this._+="A"+i+","+i+",0,"+ +(u>=Yr)+","+h+","+(this._x1=t+i*Math.cos(a))+","+(this._y1=e+i*Math.sin(a))))},rect:function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},toString:function(){return this._}};var zr=Wr;function $r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function jr(t){return function(){return t}}function Ur(t){return t[0]}function qr(t){return t[1]}function Qr(t,e){var i=jr(!0),n=null,a=S,s=null;function r(r){var o,l,c,h=(r=$r(r)).length,u=!1;for(null==n&&(s=a(c=zr())),o=0;o<=h;++o)!(o<h&&i(l=r[o],o,r))===u&&((u=!u)?s.lineStart():s.lineEnd()),u&&s.point(+t(l,o,r),+e(l,o,r));if(c)return s=null,c+""||null}return t="function"==typeof t?t:void 0===t?Ur:jr(t),e="function"==typeof e?e:void 0===e?qr:jr(e),r.x=function(e){return arguments.length?(t="function"==typeof e?e:jr(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:jr(+t),r):e},r.defined=function(t){return arguments.length?(i="function"==typeof t?t:jr(!!t),r):i},r.curve=function(t){return arguments.length?(a=t,null!=n&&(s=a(n)),r):a},r.context=function(t){return arguments.length?(null==t?n=s=null:s=a(n=t),r):n},r}function Zr(t,e,i){var n=null,a=jr(!0),s=null,r=S,o=null;function l(l){var c,h,u,d,m,g=(l=$r(l)).length,p=!1,f=new Array(g),x=new Array(g);for(null==s&&(o=r(m=zr())),c=0;c<=g;++c){if(!(c<g&&a(d=l[c],c,l))===p)if(p=!p)h=c,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),u=c-1;u>=h;--u)o.point(f[u],x[u]);o.lineEnd(),o.areaEnd()}p&&(f[c]=+t(d,c,l),x[c]=+e(d,c,l),o.point(n?+n(d,c,l):f[c],i?+i(d,c,l):x[c]))}if(m)return o=null,m+""||null}function c(){return Qr().defined(a).curve(r).context(s)}return t="function"==typeof t?t:void 0===t?Ur:jr(+t),e="function"==typeof e?e:jr(void 0===e?0:+e),i="function"==typeof i?i:void 0===i?qr:jr(+i),l.x=function(e){return arguments.length?(t="function"==typeof e?e:jr(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:jr(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:jr(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:jr(+t),i=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:jr(+t),l):e},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:jr(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(t){return arguments.length?(a="function"==typeof t?t:jr(!!t),l):a},l.curve=function(t){return arguments.length?(r=t,null!=s&&(o=r(s)),l):r},l.context=function(t){return arguments.length?(null==t?s=o=null:o=r(s=t),l):s},l}function Jr(){}function Kr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function to(t,e){this._context=t,this._k=(1-e)/6}function eo(t,e){this._context=t,this._k=(1-e)/6}function io(t){this._curve=t}to.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kr(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Kr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new to(t,e)}return i.tension=function(e){return t(+e)},i}(0),eo.prototype={areaStart:Jr,areaEnd:Jr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Kr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function i(t){return new eo(t,e)}return i.tension=function(e){return t(+e)},i}(0),io.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var no=Math.abs,ao=Math.atan2,so=Math.cos,ro=Math.max,oo=Math.min,lo=Math.sin,co=Math.sqrt,ho=Math.PI,uo=ho/2,mo=2*ho;function go(t){return t>1?0:t<-1?ho:Math.acos(t)}function po(t){return t>=1?uo:t<=-1?-uo:Math.asin(t)}function fo(t){return t.innerRadius}function xo(t){return t.outerRadius}function vo(t){return t.startAngle}function yo(t){return t.endAngle}function bo(t){return t&&t.padAngle}function wo(t,e,i,n,a,s,r,o){var l=i-t,c=n-e,h=r-a,u=o-s,d=u*l-h*c;if(!(d*d<1e-12))return[t+(d=(h*(e-s)-u*(t-a))/d)*l,e+d*c]}function To(t,e,i,n,a,s,r){var o=t-i,l=e-n,c=(r?s:-s)/co(o*o+l*l),h=c*l,u=-c*o,d=t+h,m=e+u,g=i+h,p=n+u,f=(d+g)/2,x=(m+p)/2,v=g-d,y=p-m,b=v*v+y*y,w=a-s,T=d*p-g*m,S=(y<0?-1:1)*co(ro(0,w*w*b-T*T)),L=(T*y-v*S)/b,k=(-T*v-y*S)/b,A=(T*y+v*S)/b,C=(-T*v+y*S)/b,E=L-f,D=k-x,M=A-f,F=C-x;return E*E+D*D>M*M+F*F&&(L=A,k=C),{cx:L,cy:k,x01:-h,y01:-u,x11:L*(a/w-1),y11:k*(a/w-1)}}function So(){var t=fo,e=xo,i=jr(0),n=null,a=vo,s=yo,r=bo,o=null;function l(){var l,c,h=+t.apply(this,arguments),u=+e.apply(this,arguments),d=a.apply(this,arguments)-uo,m=s.apply(this,arguments)-uo,g=no(m-d),p=m>d;if(o||(o=l=zr()),u<h&&(c=u,u=h,h=c),u>1e-12)if(g>mo-1e-12)o.moveTo(u*so(d),u*lo(d)),o.arc(0,0,u,d,m,!p),h>1e-12&&(o.moveTo(h*so(m),h*lo(m)),o.arc(0,0,h,m,d,p));else{var f,x,v=d,y=m,b=d,w=m,T=g,S=g,L=r.apply(this,arguments)/2,k=L>1e-12&&(n?+n.apply(this,arguments):co(h*h+u*u)),A=oo(no(u-h)/2,+i.apply(this,arguments)),C=A,E=A;if(k>1e-12){var D=po(k/h*lo(L)),M=po(k/u*lo(L));(T-=2*D)>1e-12?(b+=D*=p?1:-1,w-=D):(T=0,b=w=(d+m)/2),(S-=2*M)>1e-12?(v+=M*=p?1:-1,y-=M):(S=0,v=y=(d+m)/2)}var F=u*so(v),_=u*lo(v),O=h*so(w),V=h*lo(w);if(A>1e-12){var I,P=u*so(y),G=u*lo(y),X=h*so(b),R=h*lo(b);if(g<ho&&(I=wo(F,_,X,R,P,G,O,V))){var Y=F-I[0],B=_-I[1],H=P-I[0],N=G-I[1],W=1/lo(go((Y*H+B*N)/(co(Y*Y+B*B)*co(H*H+N*N)))/2),z=co(I[0]*I[0]+I[1]*I[1]);C=oo(A,(h-z)/(W-1)),E=oo(A,(u-z)/(W+1))}}S>1e-12?E>1e-12?(f=To(X,R,F,_,u,E,p),x=To(P,G,O,V,u,E,p),o.moveTo(f.cx+f.x01,f.cy+f.y01),E<A?o.arc(f.cx,f.cy,E,ao(f.y01,f.x01),ao(x.y01,x.x01),!p):(o.arc(f.cx,f.cy,E,ao(f.y01,f.x01),ao(f.y11,f.x11),!p),o.arc(0,0,u,ao(f.cy+f.y11,f.cx+f.x11),ao(x.cy+x.y11,x.cx+x.x11),!p),o.arc(x.cx,x.cy,E,ao(x.y11,x.x11),ao(x.y01,x.x01),!p))):(o.moveTo(F,_),o.arc(0,0,u,v,y,!p)):o.moveTo(F,_),h>1e-12&&T>1e-12?C>1e-12?(f=To(O,V,P,G,h,-C,p),x=To(F,_,X,R,h,-C,p),o.lineTo(f.cx+f.x01,f.cy+f.y01),C<A?o.arc(f.cx,f.cy,C,ao(f.y01,f.x01),ao(x.y01,x.x01),!p):(o.arc(f.cx,f.cy,C,ao(f.y01,f.x01),ao(f.y11,f.x11),!p),o.arc(0,0,h,ao(f.cy+f.y11,f.cx+f.x11),ao(x.cy+x.y11,x.cx+x.x11),p),o.arc(x.cx,x.cy,C,ao(x.y11,x.x11),ao(x.y01,x.x01),!p))):o.arc(0,0,h,w,b,p):o.lineTo(O,V)}else o.moveTo(0,0);if(o.closePath(),l)return o=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-ho/2;return[so(n)*i,lo(n)*i]},l.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:jr(+e),l):t},l.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:jr(+t),l):e},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:jr(+t),l):i},l.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:jr(+t),l):n},l.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:jr(+t),l):a},l.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:jr(+t),l):s},l.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:jr(+t),l):r},l.context=function(t){return arguments.length?(o=null==t?null:t,l):o},l}function Lo(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ko(t){return t}function Ao(t,e,i,n,a){for(var s,r=t.children,o=-1,l=r.length,c=t.value&&(n-e)/t.value;++o<l;)(s=r[o]).y0=i,s.y1=a,s.x0=e,s.x1=e+=s.value*c}function Co(t,e,i,n,a){for(var s,r=t.children,o=-1,l=r.length,c=t.value&&(a-i)/t.value;++o<l;)(s=r[o]).x0=e,s.x1=n,s.y0=i,s.y1=i+=s.value*c}function Eo(t){var e=0,i=t.children,n=i&&i.length;if(n)for(;--n>=0;)e+=i[n].value;else e=1;t.value=e}function Do(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Fo)):void 0===e&&(e=Mo);for(var i,n,a,s,r,o=new Vo(t),l=[o];i=l.pop();)if((a=e(i.data))&&(r=(a=Array.from(a)).length))for(i.children=a,s=r-1;s>=0;--s)l.push(n=a[s]=new Vo(a[s])),n.parent=i,n.depth=i.depth+1;return o.eachBefore(Oo)}function Mo(t){return t.children}function Fo(t){return Array.isArray(t)?t[1]:null}function _o(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Oo(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Vo(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function i(t,i,n,a,s){!function(t,e,i,n,a,s){for(var r,o,l,c,h,u,d,m,g,p,f,x=[],v=e.children,y=0,b=0,w=v.length,T=e.value;y<w;){l=a-i,c=s-n;do{h=v[b++].value}while(!h&&b<w);for(u=d=h,f=h*h*(p=Math.max(c/l,l/c)/(T*t)),g=Math.max(d/f,f/u);b<w;++b){if(h+=o=v[b].value,o<u&&(u=o),o>d&&(d=o),f=h*h*p,(m=Math.max(d/f,f/u))>g){h-=o;break}g=m}x.push(r={value:h,dice:l<c,children:v.slice(y,b)}),r.dice?Ao(r,i,n,a,T?n+=c*h/T:s):Co(r,i,n,T?i+=l*h/T:a,s),T-=h,y=b}}(e,t,i,n,a,s)}return i.ratio=function(e){return t((e=+e)>1?e:1)},i}((1+Math.sqrt(5))/2),Vo.prototype=Do.prototype={constructor:Vo,count:function(){return this.eachAfter(Eo)},each:function(t,e){let i=-1;for(const n of this)t.call(e,n,++i,this);return this},eachAfter:function(t,e){for(var i,n,a,s=this,r=[s],o=[],l=-1;s=r.pop();)if(o.push(s),i=s.children)for(n=0,a=i.length;n<a;++n)r.push(i[n]);for(;s=o.pop();)t.call(e,s,++l,this);return this},eachBefore:function(t,e){for(var i,n,a=this,s=[a],r=-1;a=s.pop();)if(t.call(e,a,++r,this),i=a.children)for(n=i.length-1;n>=0;--n)s.push(i[n]);return this},find:function(t,e){let i=-1;for(const n of this)if(t.call(e,n,++i,this))return n},sum:function(t){return this.eachAfter(function(e){for(var i=+t(e.data)||0,n=e.children,a=n&&n.length;--a>=0;)i+=n[a].value;e.value=i})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,i=function(t,e){if(t===e)return t;var i=t.ancestors(),n=e.ancestors(),a=null;for(t=i.pop(),e=n.pop();t===e;)a=t,t=i.pop(),e=n.pop();return a}(e,t),n=[e];e!==i;)n.push(e=e.parent);for(var a=n.length;t!==i;)n.splice(a,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(i){i!==t&&e.push({source:i.parent,target:i})}),e},copy:function(){return Do(this).eachBefore(_o)},[Symbol.iterator]:function*(){var t,e,i,n,a=this,s=[a];do{for(t=s.reverse(),s=[];a=t.pop();)if(yield a,e=a.children)for(i=0,n=e.length;i<n;++i)s.push(e[i])}while(s.length)}};const Io=["caretElm"];function Po(t,e){}const Go=function(t){return{model:t}};function Xo(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"span"),u["\u0275\u0275template"](1,Po,0,0,"ng-template",5),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngTemplateOutlet",t.template)("ngTemplateOutletContext",u["\u0275\u0275pureFunction1"](2,Go,t.context))}}function Ro(t,e){if(1&t&&u["\u0275\u0275element"](0,"span",6),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("innerHTML",t.title,u["\u0275\u0275sanitizeHtml"])}}function Yo(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275namespaceHTML"](),u["\u0275\u0275element"](0,"ngx-charts-scale-legend",4)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("horizontal",t.legendOptions&&t.legendOptions.position===t.LegendPosition.Below)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Bo(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275namespaceHTML"](),u["\u0275\u0275elementStart"](0,"ngx-charts-legend",5),u["\u0275\u0275listener"]("labelClick",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().legendLabelClick.emit(e)})("labelActivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().legendLabelDeactivate.emit(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("horizontal",t.legendOptions&&t.legendOptions.position===t.LegendPosition.Below)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Ho=["*"],No=["ngx-charts-axis-label",""],Wo=["ticksel"],zo=["ngx-charts-x-axis-ticks",""];function $o(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",3),u["\u0275\u0275elementStart"](1,"title"),u["\u0275\u0275text"](2),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](3,"text",4),u["\u0275\u0275text"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("transform",i.tickTransform(t)),u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate"](i.tickFormat(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("font-size","12px"),u["\u0275\u0275attribute"]("text-anchor",i.textAnchor)("transform",i.textTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",i.tickTrim(i.tickFormat(t))," ")}}function jo(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"line",6),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"](2);u["\u0275\u0275attribute"]("transform",t.gridLineTransform()),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("y1",-t.gridLineHeight)}}function Uo(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,jo,2,2,"g",5),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("transform",i.tickTransform(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",i.showGridLines)}}const qo=["ngx-charts-x-axis",""];function Qo(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",2),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().emitTicksHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Zo(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",3)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("label",t.labelText)("offset",t.labelOffset)("orient",t.Orientation.Bottom)("height",t.dims.height)("width",t.dims.width)}}const Jo=["ngx-charts-y-axis-ticks",""];function Ko(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",4),u["\u0275\u0275elementStart"](1,"title"),u["\u0275\u0275text"](2),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](3,"text",5),u["\u0275\u0275text"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("transform",i.transform(t)),u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate"](i.tickFormat(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("font-size","12px"),u["\u0275\u0275attribute"]("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",i.tickTrim(i.tickFormat(t))," ")}}function tl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"path",6)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function el(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"line",9)),2&t){const t=u["\u0275\u0275nextContext"](3);u["\u0275\u0275attribute"]("x2",t.gridLineWidth)}}function il(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"line",9)),2&t){const t=u["\u0275\u0275nextContext"](3);u["\u0275\u0275attribute"]("x2",-t.gridLineWidth)}}function nl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,el,1,1,"line",8),u["\u0275\u0275template"](2,il,1,1,"line",8),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"](2);u["\u0275\u0275attribute"]("transform",t.gridLineTransform()),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",t.orient===t.Orientation.Left),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",t.orient===t.Orientation.Right)}}function al(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,nl,3,3,"g",7),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("transform",i.transform(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",i.showGridLines)}}function sl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"title"),u["\u0275\u0275text"](2),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](3,"text",11),u["\u0275\u0275text"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"](2).$implicit,e=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate"](e.tickTrim(e.tickFormat(t.value))),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",t.name," ")}}function rl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"line",10),u["\u0275\u0275template"](2,sl,5,6,"g",7),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]().$implicit,e=u["\u0275\u0275nextContext"]();u["\u0275\u0275attribute"]("transform",e.transform(t.value)),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("x2",e.gridLineWidth)("transform",e.gridLineTransform()),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showRefLabels)}}function ol(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,rl,3,4,"g",7),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",t.showRefLines)}}const ll=["ngx-charts-y-axis",""];function cl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",2),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().emitTicksWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function hl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",3)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const ul=["ngx-charts-circle-series",""];function dl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"rect",4)),2&t){const t=u["\u0275\u0275nextContext"](2);u["\u0275\u0275property"]("@animationState","active"),u["\u0275\u0275attribute"]("x",t.circle.cx-t.circle.radius)("y",t.circle.cy)("width",2*t.circle.radius)("height",t.circle.height)("fill",t.gradientFill)}}const ml=function(t){return{name:t}};function gl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275element"](2,"g",1),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](3,dl,1,6,"rect",2),u["\u0275\u0275elementStart"](4,"g",3),u["\u0275\u0275listener"]("select",function(){u["\u0275\u0275restoreView"](t);const e=u["\u0275\u0275nextContext"]();return e.onClick(e.circle.data)})("activate",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().activateCircle()})("deactivate",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().deactivateCircle()}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](2),u["\u0275\u0275property"]("name",t.gradientId)("stops",t.circle.gradientStops),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",t.barVisible&&"standard"===t.type),u["\u0275\u0275advance"](1),u["\u0275\u0275classProp"]("active",t.isActive(u["\u0275\u0275pureFunction1"](18,ml,t.circle.seriesName))),u["\u0275\u0275property"]("cx",t.circle.cx)("cy",t.circle.cy)("r",t.circle.radius)("fill",t.circle.color)("pointerEvents",0===t.circle.value?"none":"all")("data",t.circle.value)("classNames",t.circle.classNames)("tooltipDisabled",t.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltipTemplate?void 0:t.getTooltipText(t.circle))("tooltipTemplate",t.tooltipTemplate)("tooltipContext",t.circle.data)}}const pl=["ngx-charts-circle",""],fl=["ngx-charts-grid-panel",""],xl=["ngx-charts-grid-panel-series",""];function vl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",1)),2&t){const t=e.$implicit;u["\u0275\u0275classProp"]("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),u["\u0275\u0275property"]("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const yl=["ngx-charts-svg-linear-gradient",""];function bl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"stop")),2&t){const t=e.$implicit;u["\u0275\u0275styleProp"]("stop-color",t.color)("stop-opacity",t.opacity),u["\u0275\u0275attribute"]("offset",t.offset+"%")}}const wl=["ngx-charts-svg-radial-gradient",""];function Tl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"stop")),2&t){const t=e.$implicit;u["\u0275\u0275styleProp"]("stop-color",t.color)("stop-opacity",t.opacity),u["\u0275\u0275attribute"]("offset",t.offset+"%")}}const Sl=["ngx-charts-area",""];function Ll(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"defs"),u["\u0275\u0275element"](1,"g",2),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("name",t.gradientId)("stops",t.gradientStops)}}const kl=["ngx-charts-count-up",""],Al=["tooltipAnchor"],Cl=["ngx-charts-tooltip-area",""];function El(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"div",6),u["\u0275\u0275element"](1,"span",7),u["\u0275\u0275text"](2),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("background-color",t.color),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",i.getToolTipText(t)," ")}}function Dl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275namespaceHTML"](),u["\u0275\u0275elementStart"](0,"div",4),u["\u0275\u0275template"](1,El,3,3,"div",5),u["\u0275\u0275elementEnd"]()),2&t){const t=e.model;u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t)}}const Ml=["ngx-charts-timeline",""];function Fl(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"header",4),u["\u0275\u0275elementStart"](1,"span",5),u["\u0275\u0275text"](2),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate"](t.title)}}function _l(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275elementStart"](0,"li",6),u["\u0275\u0275elementStart"](1,"ngx-charts-legend-entry",7),u["\u0275\u0275listener"]("select",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().labelClick.emit(e)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().activate(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().deactivate(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",i.isActive(t))}}function Ol(t,e){if(1&t&&u["\u0275\u0275element"](0,"div",7),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("countTo",t.roundedTotal)("valueFormatting",t.valueFormatting)}}function Vl(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"div",8),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",t.valueFormatting?t.valueFormatting(t.roundedTotal):t.defaultValueFormatting(t.roundedTotal)," ")}}function Il(t,e){if(1&t&&u["\u0275\u0275element"](0,"div",16),2&t){const t=u["\u0275\u0275nextContext"]().$implicit,e=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("countTo",t._value)("valueFormatting",e.valueFormatting)}}function Pl(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"div",17),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]().$implicit,e=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",e.valueFormatting?e.valueFormatting(t.value):e.defaultValueFormatting(t.value)," ")}}function Gl(t,e){if(1&t&&u["\u0275\u0275element"](0,"div",18),2&t){const t=u["\u0275\u0275nextContext"]().$implicit;u["\u0275\u0275property"]("countTo",t.percentage)("countSuffix","%")}}function Xl(t,e){if(1&t&&(u["\u0275\u0275elementStart"](0,"div",19),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]().$implicit;u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"]("",t.percentage.toLocaleString(),"%")}}function Rl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275elementStart"](0,"div",9),u["\u0275\u0275listener"]("mouseenter",function(){const e=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().activate.emit(e.data)})("mouseleave",function(){const e=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().deactivate.emit(e.data)})("click",function(){const e=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().select.emit(e.data)}),u["\u0275\u0275element"](1,"div",10),u["\u0275\u0275template"](2,Il,1,2,"div",11),u["\u0275\u0275template"](3,Pl,2,1,"div",12),u["\u0275\u0275elementStart"](4,"div",13),u["\u0275\u0275text"](5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](6,Gl,1,2,"div",14),u["\u0275\u0275template"](7,Xl,2,1,"div",15),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("border-left-color",t.color),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",i.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!i.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate"](t.displayLabel),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",i.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!i.animations)}}const Yl=["tooltipTemplate"],Bl=["seriesTooltipTemplate"];function Hl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function Nl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",8),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Wl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",9),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("baseValue",i.baseValue)("colors",i.colors)("data",t)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function zl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"g",13),u["\u0275\u0275listener"]("select",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"](2).onClick(e,i)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onActivate(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onDeactivate(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",t)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function $l(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",10),u["\u0275\u0275listener"]("mouseleave",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().hideCircles()}),u["\u0275\u0275elementStart"](1,"g",11),u["\u0275\u0275listener"]("hover",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateHoveredVertical(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](2,zl,2,9,"g",12),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)}}function jl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",15),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.timelineXScale)("yScale",i.timelineYScale)("baseValue",i.baseValue)("colors",i.colors)("data",t)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}const Ul=function(t,e){return[t,e]};function ql(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",14),u["\u0275\u0275listener"]("onDomainChange",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateDomain(e)}),u["\u0275\u0275template"](1,jl,2,9,"g",4),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("results",t.results)("view",u["\u0275\u0275pureFunction2"](10,Ul,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("legend",t.legend)("scaleType",t.scaleType),u["\u0275\u0275attribute"]("transform",t.timelineTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}function Ql(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function Zl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",8),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Jl(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",9),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("activeEntries",i.activeEntries)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function Kl(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"g",13),u["\u0275\u0275listener"]("select",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"](2).onClick(e,i)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onActivate(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onDeactivate(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",t)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function tc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",10),u["\u0275\u0275listener"]("mouseleave",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().hideCircles()}),u["\u0275\u0275elementStart"](1,"g",11),u["\u0275\u0275listener"]("hover",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateHoveredVertical(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](2,Kl,2,9,"g",12),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("showPercentage",!0)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)}}function ec(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",15),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function ic(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",14),u["\u0275\u0275listener"]("onDomainChange",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateDomain(e)}),u["\u0275\u0275template"](1,ec,2,8,"g",4),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("results",t.results)("view",u["\u0275\u0275pureFunction2"](10,Ul,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("legend",t.legend)("scaleType",t.scaleType),u["\u0275\u0275attribute"]("transform",t.timelineTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const nc=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function ac(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function sc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",8),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function rc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",9),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("gradient",i.gradient)("activeEntries",i.activeEntries)("curve",i.curve)("animations",i.animations)}}function oc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"g",12),u["\u0275\u0275listener"]("select",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"](2).onClick(e,i)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onActivate(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onDeactivate(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("activeEntries",i.activeEntries)("data",t)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function lc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",10),u["\u0275\u0275listener"]("mouseleave",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().hideCircles()}),u["\u0275\u0275elementStart"](1,"g",11),u["\u0275\u0275listener"]("hover",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateHoveredVertical(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](2,oc,2,9,"g",4),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}function cc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",14),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("gradient",i.gradient)("curve",i.curve)("animations",i.animations)}}function hc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",13),u["\u0275\u0275listener"]("onDomainChange",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateDomain(e)}),u["\u0275\u0275template"](1,cc,2,8,"g",4),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("results",t.results)("view",u["\u0275\u0275pureFunction2"](10,Ul,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("legend",t.legend)("scaleType",t.scaleType),u["\u0275\u0275attribute"]("transform",t.timelineTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const uc=["ngx-charts-area-series",""],dc=["ngx-charts-bar",""];function mc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"defs"),u["\u0275\u0275element"](1,"g",2),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function gc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",5),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function pc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",6),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("yAxisOffset",t.dataLabelMaxWidth.negative)}}function fc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",6),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function xc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.groupScale)("dims",t.dims)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("yAxisOffset",t.dataLabelMaxWidth.negative)}}function vc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"g",8),u["\u0275\u0275listener"]("select",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onClick(e,i)})("activate",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onActivate(e,i)})("deactivate",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onDeactivate(e,i)})("dataLabelWidthChanged",function(e){const i=u["\u0275\u0275restoreView"](t).index;return u["\u0275\u0275nextContext"]().onDataLabelMaxWidthChanged(e,i)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("@animationState","active"),u["\u0275\u0275attribute"]("transform",i.groupTransform(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.valueScale)("activeEntries",i.activeEntries)("yScale",i.innerScale)("colors",i.colors)("series",t.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("seriesName",t.name)("roundEdges",i.roundEdges)("animations",i.animations)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("noBarWhenZero",i.noBarWhenZero)}}function yc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",5),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function bc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",6),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function wc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",6),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Tc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Sc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",8),u["\u0275\u0275listener"]("select",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onClick(e,i)})("activate",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onActivate(e,i)})("deactivate",function(e){const i=u["\u0275\u0275restoreView"](t).$implicit;return u["\u0275\u0275nextContext"]().onDeactivate(e,i)})("dataLabelHeightChanged",function(e){const i=u["\u0275\u0275restoreView"](t).index;return u["\u0275\u0275nextContext"]().onDataLabelMaxHeightChanged(e,i)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("@animationState","active")("activeEntries",i.activeEntries)("xScale",i.innerScale)("yScale",i.valueScale)("colors",i.colors)("series",t.series)("dims",i.dims)("gradient",i.gradient)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)("showDataLabel",i.showDataLabel)("dataLabelFormatting",i.dataLabelFormatting)("seriesName",t.name)("roundEdges",i.roundEdges)("animations",i.animations)("noBarWhenZero",i.noBarWhenZero),u["\u0275\u0275attribute"]("transform",i.groupTransform(t))}}const Lc=["ngx-charts-series-horizontal",""];function kc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",2),u["\u0275\u0275listener"]("select",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().click(e)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().activate.emit(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().deactivate.emit(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("@animationState","active")("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","horizontal")("roundEdges",t.roundEdges)("gradient",i.gradient)("isActive",i.isActive(t.data))("ariaLabel",t.ariaLabel)("animations",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",i.noBarWhenZero)}}function Ac(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",4),u["\u0275\u0275listener"]("dimensionsChanged",function(e){const i=u["\u0275\u0275restoreView"](t).index;return u["\u0275\u0275nextContext"](2).dataLabelWidthChanged.emit({size:e,index:i})}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275property"]("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",i.dataLabelFormatting)("orientation","horizontal")}}function Cc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,Ac,1,7,"g",3),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const Ec=["ngx-charts-series-vertical",""];function Dc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",2),u["\u0275\u0275listener"]("select",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().onClick(e)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().activate.emit(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().deactivate.emit(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("@animationState","active")("@.disabled",!i.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",i.gradient)("ariaLabel",t.ariaLabel)("isActive",i.isActive(t.data))("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.tooltipPlacement)("tooltipType",i.tooltipType)("tooltipTitle",i.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",i.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",i.noBarWhenZero)("animations",i.animations)}}function Mc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",4),u["\u0275\u0275listener"]("dimensionsChanged",function(e){const i=u["\u0275\u0275restoreView"](t).index;return u["\u0275\u0275nextContext"](2).dataLabelHeightChanged.emit({size:e,index:i})}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275property"]("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",i.dataLabelFormatting)("orientation","vertical")}}function Fc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,Mc,1,7,"g",3),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const _c=["ngx-charts-bar-label",""],Oc=["ngx-charts-line",""];function Vc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",7),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateXAxisHeight(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function Ic(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",8),u["\u0275\u0275listener"]("dimensionsChanged",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateYAxisWidth(e)}),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)}}function Pc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",9),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("@animationState","active"),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",t)("activeEntries",i.activeEntries)("scaleType",i.scaleType)("curve",i.curve)("rangeFillOpacity",i.rangeFillOpacity)("hasRange",i.hasRange)("animations",i.animations)}}function Gc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"g",13),u["\u0275\u0275listener"]("select",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onClick(e)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onActivate(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"](2).onDeactivate(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.xScale)("yScale",i.yScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("visibleValue",i.hoveredVertical)("activeEntries",i.activeEntries)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.tooltipTemplate)}}function Xc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",10),u["\u0275\u0275listener"]("mouseleave",function(){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().hideCircles()}),u["\u0275\u0275elementStart"](1,"g",11),u["\u0275\u0275listener"]("hover",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateHoveredVertical(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](2,Gc,2,9,"g",12),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)}}function Rc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275element"](1,"g",15),u["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"](2);u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",i.timelineXScale)("yScale",i.timelineYScale)("colors",i.colors)("data",t)("scaleType",i.scaleType)("curve",i.curve)("hasRange",i.hasRange)("animations",i.animations)}}function Yc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",14),u["\u0275\u0275listener"]("onDomainChange",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().updateDomain(e)}),u["\u0275\u0275template"](1,Rc,2,8,"g",4),u["\u0275\u0275elementEnd"]()}if(2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("results",t.results)("view",u["\u0275\u0275pureFunction2"](10,Ul,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("scaleType",t.scaleType)("legend",t.legend),u["\u0275\u0275attribute"]("transform",t.timelineTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const Bc=["ngx-charts-line-series",""];function Hc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",4)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("name",t.gradientId)("stops",t.gradientStops)}}function Nc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",5)),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275classProp"]("active",t.isActive(t.data))("inactive",t.isInactive(t.data)),u["\u0275\u0275property"]("data",t.data)("path",t.outerPath)("fill",t.hasGradient?t.gradientUrl:t.colors.getColor(t.data.name))("opacity",t.rangeFillOpacity)("animations",t.animations)}}const Wc=["ngx-charts-pie-label",""],zc=["ngx-charts-pie-arc",""];function $c(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"defs"),u["\u0275\u0275element"](1,"g",3),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("color",t.fill)("name",t.radialGradientId)("startOpacity",t.startOpacity)}}const jc=["ngx-charts-pie-series",""];function Uc(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",3)),2&t){const t=u["\u0275\u0275nextContext"]().$implicit,e=u["\u0275\u0275nextContext"]();u["\u0275\u0275property"]("data",t)("radius",e.outerRadius)("color",e.color(t))("label",e.labelText(t))("labelTrim",e.trimLabels)("labelTrimSize",e.maxLabelLength)("max",e.max)("value",t.value)("explodeSlices",e.explodeSlices)("animations",e.animations)}}function qc(t,e){if(1&t){const t=u["\u0275\u0275getCurrentView"]();u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,Uc,1,10,"g",1),u["\u0275\u0275elementStart"](2,"g",2),u["\u0275\u0275listener"]("select",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().onClick(e)})("activate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().activate.emit(e)})("deactivate",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().deactivate.emit(e)})("dblclick",function(e){return u["\u0275\u0275restoreView"](t),u["\u0275\u0275nextContext"]().dblclick.emit(e)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,i=u["\u0275\u0275nextContext"]();u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",i.labelVisible(t)),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("startAngle",t.startAngle)("endAngle",t.endAngle)("innerRadius",i.innerRadius)("outerRadius",i.outerRadius)("fill",i.color(t))("value",t.data.value)("gradient",i.gradient)("data",t.data)("max",i.max)("explodeSlices",i.explodeSlices)("isActive",i.isActive(t.data))("animate",i.animations)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",i.getTooltipTitle(t))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",t.data)}}let Qc=(()=>{class t{constructor(t,e,i){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=i}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const i=Object.getOwnPropertyNames(e.inputs);for(const n of i)t.instance[n]=e.inputs[n]}if(void 0!==e.outputs){const i=Object.getOwnPropertyNames(e.outputs);for(const n of i)t.instance[n]=e.outputs[n]}}return t}appendComponent(t,e={},i){i||(i=this.getRootViewContainer());const n=this.getComponentRootNode(i),a=new D.F0(n,this.componentFactoryResolver,this.applicationRef,this.injector),s=new D.C5(t),r=a.attach(s);return this.projectComponentBindings(r,e),r}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275inject"](u.ApplicationRef),u["\u0275\u0275inject"](u.ComponentFactoryResolver),u["\u0275\u0275inject"](u.Injector))},t.\u0275prov=u["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Zc(t,e,i){let n,a,s;i=i||{};let r=null,o=0;function l(){o=!1===i.leading?0:+new Date,r=null,s=t.apply(n,a)}return function(){const c=+new Date;o||!1!==i.leading||(o=c);const h=e-(c-o);return n=this,a=arguments,h<=0?(clearTimeout(r),r=null,o=c,s=t.apply(n,a)):r||!1===i.trailing||(r=setTimeout(l,h)),s}}var Jc=function(t){return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t}({});function Kc(t,e,i){return i===Jc.Top?t.top-7:i===Jc.Bottom?t.top+t.height-e.height+7:i===Jc.Center?t.top+t.height/2-e.height/2:void 0}function th(t,e,i){return i===Jc.Left?t.left-7:i===Jc.Right?t.left+t.width-e.width+7:i===Jc.Center?t.left+t.width/2-e.width/2:void 0}class eh{static calculateVerticalAlignment(t,e,i){let n=Kc(t,e,i);return n+e.height>window.innerHeight&&(n=window.innerHeight-e.height),n}static calculateVerticalCaret(t,e,i,n){let a;n===Jc.Top&&(a=t.height/2-i.height/2+7),n===Jc.Bottom&&(a=e.height-t.height/2-i.height/2-7),n===Jc.Center&&(a=e.height/2-i.height/2);const s=Kc(t,e,n);return s+e.height>window.innerHeight&&(a+=s+e.height-window.innerHeight),a}static calculateHorizontalAlignment(t,e,i){let n=th(t,e,i);return n+e.width>window.innerWidth&&(n=window.innerWidth-e.width),n}static calculateHorizontalCaret(t,e,i,n){let a;n===Jc.Left&&(a=t.width/2-i.width/2+7),n===Jc.Right&&(a=e.width-t.width/2-i.width/2-7),n===Jc.Center&&(a=e.width/2-i.width/2);const s=th(t,e,n);return s+e.width>window.innerWidth&&(a+=s+e.width-window.innerWidth),a}static shouldFlip(t,e,i,n){let a=!1;return i===Jc.Right&&t.left+t.width+e.width+n>window.innerWidth&&(a=!0),i===Jc.Left&&t.left-e.width-n<0&&(a=!0),i===Jc.Top&&t.top-e.height-n<0&&(a=!0),i===Jc.Bottom&&t.top+t.height+e.height+n>window.innerHeight&&(a=!0),a}static positionCaret(t,e,i,n,a){let s=0,r=0;return t===Jc.Right?(r=-7,s=eh.calculateVerticalCaret(i,e,n,a)):t===Jc.Left?(r=e.width,s=eh.calculateVerticalCaret(i,e,n,a)):t===Jc.Top?(s=e.height,r=eh.calculateHorizontalCaret(i,e,n,a)):t===Jc.Bottom&&(s=-7,r=eh.calculateHorizontalCaret(i,e,n,a)),{top:s,left:r}}static positionContent(t,e,i,n,a){let s=0,r=0;return t===Jc.Right?(r=i.left+i.width+n,s=eh.calculateVerticalAlignment(i,e,a)):t===Jc.Left?(r=i.left-e.width-n,s=eh.calculateVerticalAlignment(i,e,a)):t===Jc.Top?(s=i.top-e.height-n,r=eh.calculateHorizontalAlignment(i,e,a)):t===Jc.Bottom&&(s=i.top+i.height+n,r=eh.calculateHorizontalAlignment(i,e,a)),{top:s,left:r}}static determinePlacement(t,e,i,n){if(eh.shouldFlip(i,e,t,n)){if(t===Jc.Right)return Jc.Left;if(t===Jc.Left)return Jc.Right;if(t===Jc.Top)return Jc.Bottom;if(t===Jc.Bottom)return Jc.Top}return t}}let ih=(()=>{class t{constructor(t,e,i){this.element=t,this.renderer=e,this.platformId=i}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,s.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const i=t.getBoundingClientRect();this.checkFlip(e,i),this.positionContent(t,e,i),this.showCaret&&this.positionCaret(e,i),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,i){const{top:n,left:a}=eh.positionContent(this.placement,i,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${n}px`),this.renderer.setStyle(t,"left",`${a}px`)}positionCaret(t,e){const i=this.caretElm.nativeElement,n=i.getBoundingClientRect(),{top:a,left:s}=eh.positionCaret(this.placement,e,t,n,this.alignment);this.renderer.setStyle(i,"top",`${a}px`),this.renderer.setStyle(i,"left",`${s}px`)}checkFlip(t,e){this.placement=eh.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef),u["\u0275\u0275directiveInject"](u.Renderer2),u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](Io,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("resize",function(){return e.onWindowResize()},!1,u["\u0275\u0275resolveWindow"]),2&t&&u["\u0275\u0275classMap"](e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div"),u["\u0275\u0275element"](1,"span",0,1),u["\u0275\u0275elementStart"](3,"div",2),u["\u0275\u0275template"](4,Xo,2,4,"span",3),u["\u0275\u0275template"](5,Ro,1,1,"span",4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](1),u["\u0275\u0275classMapInterpolate1"]("tooltip-caret position-",e.placement,""),u["\u0275\u0275property"]("hidden",!e.showCaret),u["\u0275\u0275advance"](3),u["\u0275\u0275property"]("ngIf",!e.title),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.title))},directives:[s.O5,s.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),(0,M.gn)([(100,function(t,e,i){return{configurable:!0,enumerable:i.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:i.enumerable,value:Zc(i.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),nh=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const i=this.injectComponent(t,e);return this.register(t,i),i}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const i=e.indexOf(t);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),i&&(t.outputs=Object.assign(Object.assign({},i),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=ih}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275inject"](Qc))},t.\u0275prov=u["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();var ah=function(t){return t.Right="right",t.Below="below",t}({}),sh=function(t){return t.ScaleLegend="scaleLegend",t.Legend="legend",t}({}),rh=function(t){return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t}({}),oh=function(t){return t.Start="start",t.Middle="middle",t.End="end",t}({}),lh=function(t){return t.Time="time",t.Linear="linear",t.Ordinal="ordinal",t.Quantile="quantile",t}({});let ch=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new u.EventEmitter,this.legendLabelActivate=new u.EventEmitter,this.legendLabelDeactivate=new u.EventEmitter,this.LegendPosition=ah,this.LegendType=sh}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&this.legendOptions.position!==ah.Right||(t=this.legendType===sh.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==ah.Right?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return this.legendOptions.scaleType===lh.Linear?sh.ScaleLegend:sh.Legend}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[u["\u0275\u0275ProvidersFeature"]([nh]),u["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:Ho,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(u["\u0275\u0275projectionDef"](),u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"svg",1),u["\u0275\u0275projection"](2),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](3,Yo,1,5,"ngx-charts-scale-legend",2),u["\u0275\u0275template"](4,Bo,1,7,"ngx-charts-legend",3),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275styleProp"]("width",e.view[0],"px"),u["\u0275\u0275property"]("@animationState","active")("@.disabled",!e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("width",e.chartWidth)("height",e.view[1]),u["\u0275\u0275advance"](2),u["\u0275\u0275property"]("ngIf",e.showLegend&&e.legendType===e.LegendType.ScaleLegend),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showLegend&&e.legendType===e.LegendType.Legend))},directives:function(){return[s.O5,Kh,Zh]},encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":enter",[(0,E.oB)({opacity:0}),(0,E.jt)("500ms 100ms",(0,E.oB)({opacity:1}))])])]},changeDetection:0}),t})(),hh=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new u.EventEmitter,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:i}=this.element.nativeElement;e&&i?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef),u["\u0275\u0275directiveInject"](u.NgZone))},t.\u0275dir=u["\u0275\u0275defineDirective"]({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();function uh(t){return"[object Date]"===toString.call(t)}function dh(t){return"number"==typeof t}let mh=(()=>{class t{constructor(t,e,i,n){this.chartElement=t,this.zone=e,this.cd=i,this.platformId=n,this.scheme="cool",this.schemeType=lh.Ordinal,this.animations=!0,this.select=new u.EventEmitter}ngOnInit(){(0,s.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new hh(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const i=this.chartElement.nativeElement;if((0,s.NF)(this.platformId)&&null!==i.parentNode){const n=i.parentNode.getBoundingClientRect();t=n.width,e=n.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,uh(e.label)&&(e.label=e.label.toLocaleDateString()),e.series)for(let t=0;t<e.series.length;t++){const i=e.series[t];i.label=i.name,uh(i.label)&&(i.label=i.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,s.NF)(this.platformId))return;const t=(0,F.R)(window,"resize").pipe((0,_.b)(200)).subscribe(t=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const i of t){const t={name:i.name};if(void 0!==i.value&&(t.value=i.value),void 0!==i.series){t.series=[];for(const e of i.series){const i=Object.assign({},e);t.series.push(i)}}void 0!==i.extra&&(t.extra=JSON.parse(JSON.stringify(i.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef),u["\u0275\u0275directiveInject"](u.NgZone),u["\u0275\u0275directiveInject"](u.ChangeDetectorRef),u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[u["\u0275\u0275NgOnChangesFeature"]],decls:1,vars:0,template:function(t,e){1&t&&u["\u0275\u0275element"](0,"div")},encapsulation:2}),t})(),gh=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case rh.Top:case rh.Bottom:this.y=this.offset,this.x=this.width/2;break;case rh.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case rh.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:No,decls:2,vars:6,template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"text"),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275attribute"]("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function ph(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:`${t.slice(0,e)}...`}function fh(t,e){if(t.length>e){const i=[],n=Math.floor(t.length/e);for(let e=0;e<t.length;e++)e%n==0&&i.push(t[e]);t=i}return t}let xh=(()=>{class t{constructor(t){this.platformId=t,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new u.EventEmitter,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=oh.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,s.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor=oh.End,this.verticalSpacing=10):this.textAnchor=oh.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let s=0;s<t.length;s++){const e=this.tickFormat(t[s]).toString();let i=e.length;this.trimTicks&&(i=this.tickTrim(e).length),i>this.maxTicksLength&&(this.maxTicksLength=i)}const i=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let n=i;const a=Math.floor(this.width/t.length);for(;n>a&&e>-90;)e-=30,n=Math.cos(e*(Math.PI/180))*i;return this.approxHeight=Math.max(Math.abs(Math.sin(e*(Math.PI/180))*i),10),e}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=fh(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?ph(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](Wo,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:zo,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",null,0),u["\u0275\u0275template"](2,$o,5,7,"g",1),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](3,Uo,2,2,"g",2)),2&t&&(u["\u0275\u0275advance"](2),u["\u0275\u0275property"]("ngForOf",e.ticks),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.ticks))},directives:[s.sg,s.O5],encapsulation:2,changeDetection:0}),t})(),vh=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=rh.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new u.EventEmitter,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.Orientation=rh}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](xh,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.ticksComponent=t.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:qo,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,Qo,1,12,"g",0),u["\u0275\u0275template"](2,Zo,1,5,"g",1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275attribute"]("class",e.xAxisClassName)("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xScale),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showLabel))},directives:[s.O5,xh,gh],encapsulation:2,changeDetection:0}),t})();function yh(t,e,i,n,a,[s,r,o,l]){let c="";return c=`M${[t+a,e]}`,c+="h"+((i=0===(i=Math.floor(i))?1:i)-2*a),c+=r?`a${[a,a]} 0 0 1 ${[a,a]}`:`h${a}v${a}`,c+="v"+((n=0===(n=Math.floor(n))?1:n)-2*a),c+=l?`a${[a,a]} 0 0 1 ${[-a,a]}`:`v${a}h${-a}`,c+="h"+(2*a-i),c+=o?`a${[a,a]} 0 0 1 ${[-a,-a]}`:`h${-a}v${-a}`,c+="v"+(2*a-n),c+=s?`a${[a,a]} 0 0 1 ${[a,-a]}`:`v${-a}h${a}`,c+="z",c}let bh=(()=>{class t{constructor(t){this.platformId=t,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new u.EventEmitter,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=oh.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=rh}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,s.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e=this.orient===rh.Top||this.orient===rh.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case rh.Top:case rh.Bottom:this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor=oh.Middle,this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case rh.Left:this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor=oh.End,this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case rh.Right:this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor=oh.Start,this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=yh(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),i=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[i]):(t=this.scale.domain(),t=fh(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?ph(t,this.maxTickLength):t}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(t=>this.tickTrim(this.tickFormat(t)).length))}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](Wo,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Jo,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",null,0),u["\u0275\u0275template"](2,Ko,5,9,"g",1),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](3,tl,1,2,"path",2),u["\u0275\u0275template"](4,al,2,2,"g",3),u["\u0275\u0275template"](5,ol,2,1,"g",3)),2&t&&(u["\u0275\u0275advance"](2),u["\u0275\u0275property"]("ngForOf",e.ticks),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.ticks),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.referenceLines))},directives:[s.sg,s.O5],encapsulation:2,changeDetection:0}),t})(),wh=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient=rh.Left,this.yAxisOffset=0,this.dimensionsChanged=new u.EventEmitter,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===rh.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&this.yOrient===rh.Right?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](bh,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.ticksComponent=t.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:ll,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275template"](1,cl,1,14,"g",0),u["\u0275\u0275template"](2,hl,1,5,"g",1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275attribute"]("class",e.yAxisClassName)("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yScale),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showLabel))},directives:[s.O5,bh,gh],encapsulation:2,changeDetection:0}),t})(),Th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[s.ez]]}),t})();var Sh=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),Lh=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let kh=(()=>{class t{constructor(t,e,i){this.tooltipService=t,this.viewContainerRef=e,this.renderer=i,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Jc.Top,this.tooltipAlignment=Jc.Center,this.tooltipType=Sh.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Lh.all,this.tooltipImmediateExit=!1,this.show=new u.EventEmitter,this.hide=new u.EventEmitter}get listensForFocus(){return this.tooltipShowEvent===Lh.all||this.tooltipShowEvent===Lh.focus}get listensForHover(){return this.tooltipShowEvent===Lh.all||this.tooltipShowEvent===Lh.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](nh),u["\u0275\u0275directiveInject"](u.ViewContainerRef),u["\u0275\u0275directiveInject"](u.Renderer2))},t.\u0275dir=u["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Ah=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({providers:[Qc,nh],imports:[[s.ez]]}),t})();function Ch(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function Eh(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[t]))}const Dh={};function Mh(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,Dh[t]?Mh():(Dh[t]=!0,t)}var Fh=function(t){return t.Standard="standard",t.Stacked="stacked",t}({});let _h=(()=>{class t{constructor(){this.type=Fh.Standard,this.tooltipDisabled=!1,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.barVisible=!1}ngOnInit(){this.gradientId="grad"+Mh().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const t=this.data.series.findIndex(t=>{const e=t.name;return e&&this.visibleValue&&e.toString()===this.visibleValue.toString()&&void 0!==t.value});if(-1!==t)return this.mapDataPointToCircle(this.data.series[t],t)}mapDataPointToCircle(t,e){const i=this.data.name,n=t.value,a=t.name,s=Ch(a);let r;r=this.xScale(this.scaleType===lh.Time?a:this.scaleType===lh.Linear?Number(a):a);const o=this.yScale(this.type===Fh.Standard?n:t.d1),l=this.yScale.range()[0]-o;let c;return c=this.colors.getColor(this.colors.scaleType===lh.Linear?this.type===Fh.Standard?n:t.d1:i),{classNames:[`circle-data-${e}`],value:n,label:a,data:Object.assign({},t,{series:i,value:n,name:a}),cx:r,cy:o,radius:5,height:l,tooltipLabel:s,color:c,opacity:1,seriesName:i,gradientStops:this.getGradientStops(c),min:t.min,max:t.max}}getTooltipText({tooltipLabel:t,value:e,seriesName:i,min:n,max:a}){return`\n <span class="tooltip-label">${Eh(i)} \u2022 ${Eh(t)}</span>\n <span class="tooltip-val">${e.toLocaleString()}${this.getTooltipMinMaxText(n,a)}</span>\n `}getTooltipMinMaxText(t,e){if(void 0!==t||void 0!==e){let i=" (";return void 0!==t?(void 0===e&&(i+="\u2265"),i+=t.toLocaleString(),void 0!==e&&(i+=" - ")):void 0!==e&&(i+="\u2264"),void 0!==e&&(i+=e.toLocaleString()),i+=")",i}return""}getGradientStops(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:ul,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(t,e){1&t&&u["\u0275\u0275template"](0,gl,5,20,"g",0),2&t&&u["\u0275\u0275property"]("ngIf",e.circle)},directives:function(){return[s.O5,Rh,Oh,kh]},encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":enter",[(0,E.oB)({opacity:0}),(0,E.jt)(250,(0,E.oB)({opacity:1}))])])]},changeDetection:0}),t})(),Oh=(()=>{class t{constructor(){this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("click",function(){return e.onClick()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:pl,decls:1,vars:8,template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"circle")),2&t&&u["\u0275\u0275attribute"]("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.fill)("stroke",e.stroke)("opacity",e.circleOpacity)("class",e.classNames)("pointer-events",e.pointerEvents)},encapsulation:2,changeDetection:0}),t})(),Vh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:fl,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"rect",0)),2&t&&u["\u0275\u0275attribute"]("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),t})();var Ih=function(t){return t.Vertical="vertical",t.Horizontal="horizontal",t}({}),Ph=function(t){return t.Odd="odd",t.Even="even",t}({});let Gh=(()=>{class t{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,i,n,a,s,r=Ph.Odd;if(this.orient===Ih.Vertical){const o=this.xScale(t.name);Number.parseInt((o/this.xScale.step()).toString(),10)%2==1&&(r=Ph.Even),e=this.xScale.bandwidth()*this.xScale.paddingInner(),i=this.xScale.bandwidth()+e,n=this.dims.height,a=this.xScale(t.name)-e/2,s=0}else if(this.orient===Ih.Horizontal){const o=this.yScale(t.name);Number.parseInt((o/this.yScale.step()).toString(),10)%2==1&&(r=Ph.Even),e=this.yScale.bandwidth()*this.yScale.paddingInner(),i=this.dims.width,n=this.yScale.bandwidth()+e,a=0,s=this.yScale(t.name)-e/2}return{name:t.name,class:r,height:n,width:i,x:a,y:s}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:xl,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&u["\u0275\u0275template"](0,vl,1,10,"g",0),2&t&&u["\u0275\u0275property"]("ngForOf",e.gridPanels)},directives:[s.sg,Vh],encapsulation:2,changeDetection:0}),t})();var Xh=function(t){return t.Vertical="vertical",t.Horizontal="horizontal",t}({});let Rh=(()=>{class t{constructor(){this.orientation=Xh.Vertical}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Xh.Horizontal?this.x2="100%":this.orientation===Xh.Vertical&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:yl,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"linearGradient",0),u["\u0275\u0275template"](1,bl,1,5,"stop",1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("id",e.name),u["\u0275\u0275attribute"]("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.stops))},directives:[s.sg],encapsulation:2,changeDetection:0}),t})(),Yh=(()=>{class t{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(t){this.stopsInput=t}ngOnChanges(t){this.r="30%",("color"in t||"startOpacity"in t||"endOpacity"in t)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:wl,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"radialGradient",0),u["\u0275\u0275template"](1,Tl,1,5,"stop",1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("id",e.name),u["\u0275\u0275attribute"]("cx",e.cx)("cy",e.cy)("r",e.r),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.stops))},directives:[s.sg],encapsulation:2,changeDetection:0}),t})(),Bh=(()=>{class t{constructor(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new u.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}ngOnChanges(){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)}update(){this.gradientId="grad"+Mh().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)}updatePathEl(){const t=jt(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",stops:"stops"},outputs:{select:"select"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Sl,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(t,e){1&t&&(u["\u0275\u0275template"](0,Ll,2,2,"defs",0),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](1,"path",1)),2&t&&(u["\u0275\u0275property"]("ngIf",e.gradient),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("opacity",e.opacity),u["\u0275\u0275attribute"]("d",e.areaPath)("fill",e.gradient?e.gradientFill:e.fill))},directives:[s.O5,Rh],encapsulation:2,changeDetection:0}),t})();function Hh(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e}function Nh(t,e,i,n,a){const s=Number(t),r=Number(e),o=s>r,l=Math.max(0,i),c=Math.pow(10,l),h=1e3*Number(n);let u;function d(t){let e;const i=t-u;e=o?s-Hh(i,0,s-r,h):Hh(i,s,r-s,h),e=o?e<r?r:e:e>r?r:e,e=Math.round(e*c)/c;const n=i<h;if(a({value:e,progress:i,timestamp:t,finished:!n}),n)return requestAnimationFrame(t=>d(t))}return requestAnimationFrame(t=>(u=t,d(t)))}let Wh,zh=(()=>{class t{constructor(t,e){this.cd=t,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new u.EventEmitter,this.countFinish=new u.EventEmitter,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=e.nativeElement}set countDecimals(t){this._countDecimals=t}get countDecimals(){return this._countDecimals?this._countDecimals:function(t){const e=Number(t);return e%1!=0&&Math.abs(e)<=10?2:0}(this.countTo)}set countTo(t){this._countTo=parseFloat(t),this.start()}get countTo(){return this._countTo}set countFrom(t){this._countFrom=parseFloat(t),this.start()}get countFrom(){return this._countFrom}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}start(){cancelAnimationFrame(this.animationReq);const t=this.valueFormatting||(t=>`${this.countPrefix}${t.toLocaleString()}${this.countSuffix}`);this.animationReq=Nh(this.countFrom,this.countTo,this.countDecimals,this.countDuration,({value:e,progress:i,finished:n})=>{this.value=t(e),this.cd.markForCheck(),n||this.countChange.emit({value:this.value,progress:i}),n&&this.countFinish.emit({value:this.value,progress:i})})}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ChangeDetectorRef),u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["","ngx-charts-count-up",""]],inputs:{countDuration:"countDuration",countPrefix:"countPrefix",countSuffix:"countSuffix",countDecimals:"countDecimals",countTo:"countTo",countFrom:"countFrom",valueFormatting:"valueFormatting"},outputs:{countChange:"countChange",countFinish:"countFinish"},attrs:kl,decls:1,vars:1,template:function(t,e){1&t&&u["\u0275\u0275text"](0),2&t&&u["\u0275\u0275textInterpolate1"](" ",e.value," ")},encapsulation:2}),t})();"undefined"!=typeof window?Wh=window:"undefined"!=typeof global&&(Wh=global);const $h=Wh.MouseEvent;function jh(t,e=!1,i=!0){if("function"==typeof $h)return new $h(t,{bubbles:e,cancelable:i});{const n=document.createEvent("MouseEvent");return n.initEvent(t,e,i),n}}let Uh=(()=>{class t{constructor(t){this.platformId=t,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new u.EventEmitter}getValues(t){const e=[];for(const i of this.results){const n=i.series.find(e=>e.name.toString()===t.toString());let a=i.name;if(a instanceof Date&&(a=a.toLocaleDateString()),n){const t=n.name;let s,r=n.value;if(this.showPercentage&&(r=(n.d1-n.d0).toFixed(2)+"%"),this.colors.scaleType===lh.Linear){let t=r;n.d1&&(t=n.d1),s=this.colors.getColor(t)}else s=this.colors.getColor(i.name);const o=Object.assign({},n,{value:r,name:t,series:a,min:n.min,max:n.max,color:s});e.push(o)}}return e}mouseMove(t){if(!(0,s.NF)(this.platformId))return;const e=t.pageX-t.target.getBoundingClientRect().left,i=this.findClosestPointIndex(e),n=this.xSet[i];if(this.anchorPos=this.xScale(n),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(n),this.anchorPos!==this.lastAnchorPos){const t=jh("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=.7,this.hover.emit({value:n}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(t){let e=0,i=this.xSet.length-1,n=Number.MAX_VALUE,a=0;for(;e<=i;){const s=(e+i)/2|0,r=this.xScale(this.xSet[s]),o=Math.abs(r-t);if(o<n&&(n=o,a=s),r<t)e=s+1;else{if(!(r>t)){n=0,a=s;break}i=s-1}}return a}showTooltip(){const t=jh("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(t)}hideTooltip(){const t=jh("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(t){let e="";return e+=void 0!==t.series?t.series:"???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),void 0===t.min&&void 0===t.max||(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="\u2265"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="\u2264"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(t,e){if(1&t&&u["\u0275\u0275viewQuery"](Al,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipAnchor=t.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:Cl,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(t,e){if(1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"rect",0),u["\u0275\u0275listener"]("mousemove",function(t){return e.mouseMove(t)})("mouseleave",function(){return e.hideTooltip()}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](2,Dl,2,1,"ng-template",null,1,u["\u0275\u0275templateRefExtractor"]),u["\u0275\u0275element"](4,"rect",2,3),u["\u0275\u0275elementEnd"]()),2&t){const t=u["\u0275\u0275reference"](3);u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("x",0)("width",e.dims.width)("height",e.dims.height),u["\u0275\u0275advance"](3),u["\u0275\u0275styleProp"]("opacity",e.anchorOpacity)("pointer-events","none"),u["\u0275\u0275property"]("@animationState",0!==e.anchorOpacity?"active":"inactive")("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",e.tooltipTemplate?e.tooltipTemplate:t)("tooltipContext",e.anchorValues)("tooltipImmediateExit",!0),u["\u0275\u0275attribute"]("x",e.anchorPos)("width",1)("height",e.dims.height)}},directives:[kh,s.sg],encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)("inactive => active",[(0,E.oB)({opacity:0}),(0,E.jt)(250,(0,E.oB)({opacity:.7}))]),(0,E.eR)("active => inactive",[(0,E.oB)({opacity:.7}),(0,E.jt)(250,(0,E.oB)({opacity:0}))])])]},changeDetection:0}),t})();var qh=function(t){return t.Time="time",t.Linear="linear",t.Ordinal="ordinal",t}({});let Qh=(()=>{class t{constructor(t,e){this.cd=e,this.height=50,this.select=new u.EventEmitter,this.onDomainChange=new u.EventEmitter,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${t})`,this.filterId="filter"+Mh().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let t=[];for(const i of this.results)for(const e of i.series)t.includes(e.name)||t.push(e.name);let e=[];return this.scaleType===qh.Time?e=[Math.min(...t),Math.max(...t)]:this.scaleType===qh.Linear?(t=t.map(t=>Number(t)),e=[Math.min(...t),Math.max(...t)]):e=t,e}getXScale(){let t;return this.scaleType===qh.Time?t=pr().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===qh.Linear?t=Fr().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===qh.Ordinal&&(t=Gr().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t}addBrush(){if(this.brush)return;const t=this.height,e=this.view[0];this.brush=function(t){var e,i=Dn,n=En,a=Mn,s=!0,r=te("start","brush","end"),o=6;function l(e){var i=e.property("__brush",p).selectAll(".overlay").data([Cn("overlay")]);i.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Tn.overlay).merge(i).each(function(){var t=Fn(this).extent;jt(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),e.selectAll(".selection").data([Cn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Tn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=e.selectAll(".handle").data(t.handles,function(t){return t.type});n.exit().remove(),n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return Tn[t.type]}),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",d).filter(a).on("touchstart.brush",d).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=jt(this),e=Fn(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?e[1][0]-o/2:e[0][0]-o/2}).attr("y",function(t){return"s"===t.type[0]?e[1][1]-o/2:e[0][1]-o/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+o:o}).attr("height",function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+o:o})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function h(t,e,i){var n=t.__brush.emitter;return!n||i&&n.clean?new u(t,e,i):n}function u(t,e,i){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=i}function d(i){if((!e||i.touches)&&n.apply(this,arguments)){var a,r,o,l,u,d,m,g,p,f,x,v=this,y=i.target.__data__.type,b="selection"===(s&&i.metaKey?y="overlay":y)?un:s&&i.altKey?gn:mn,w=t===wn?null:kn[y],T=t===bn?null:An[y],S=Fn(v),L=S.extent,k=S.selection,A=L[0][0],C=L[0][1],E=L[1][0],D=L[1][1],M=0,F=0,_=w&&T&&s&&i.shiftKey,O=Array.from(i.touches||[i],t=>{const e=t.identifier;return(t=Ue(t,v)).point0=t.slice(),t.identifier=e,t});if("overlay"===y){k&&(p=!0);const e=[O[0],O[1]||O[0]];S.selection=k=[[a=t===wn?A:xn(e[0][0],e[1][0]),o=t===bn?C:xn(e[0][1],e[1][1])],[u=t===wn?E:fn(e[0][0],e[1][0]),m=t===bn?D:fn(e[0][1],e[1][1])]],O.length>1&&R()}else a=k[0][0],o=k[0][1],u=k[1][0],m=k[1][1];r=a,l=o,d=u,g=m;var V=jt(v).attr("pointer-events","none"),I=V.selectAll(".overlay").attr("cursor",Tn[y]);yi(v);var P=h(v,arguments,!0).beforestart();if(i.touches)P.moved=X,P.ended=Y;else{var G=jt(i.view).on("mousemove.brush",X,!0).on("mouseup.brush",Y,!0);s&&G.on("keydown.brush",B,!0).on("keyup.brush",H,!0),ie(i.view)}c.call(v),P.start(i,b.name)}function X(t){for(const e of t.changedTouches||[t])for(const t of O)t.identifier===e.identifier&&(t.cur=Ue(e,v));if(_&&!f&&!x&&1===O.length){const t=O[0];pn(t.cur[0]-t[0])>pn(t.cur[1]-t[1])?x=!0:f=!0}for(const e of O)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);p=!0,hn(t),R(t)}function R(t){const e=O[0],i=e.point0;var n;switch(M=e[0]-i[0],F=e[1]-i[1],b){case dn:case un:w&&(M=fn(A-a,xn(E-u,M)),r=a+M,d=u+M),T&&(F=fn(C-o,xn(D-m,F)),l=o+F,g=m+F);break;case mn:O[1]?(w&&(r=fn(A,xn(E,O[0][0])),d=fn(A,xn(E,O[1][0])),w=1),T&&(l=fn(C,xn(D,O[0][1])),g=fn(C,xn(D,O[1][1])),T=1)):(w<0?(M=fn(A-a,xn(E-a,M)),r=a+M,d=u):w>0&&(M=fn(A-u,xn(E-u,M)),r=a,d=u+M),T<0?(F=fn(C-o,xn(D-o,F)),l=o+F,g=m):T>0&&(F=fn(C-m,xn(D-m,F)),l=o,g=m+F));break;case gn:w&&(r=fn(A,xn(E,a-M*w)),d=fn(A,xn(E,u+M*w))),T&&(l=fn(C,xn(D,o-F*T)),g=fn(C,xn(D,m+F*T)))}d<r&&(w*=-1,n=a,a=u,u=n,n=r,r=d,d=n,y in Sn&&I.attr("cursor",Tn[y=Sn[y]])),g<l&&(T*=-1,n=o,o=m,m=n,n=l,l=g,g=n,y in Ln&&I.attr("cursor",Tn[y=Ln[y]])),S.selection&&(k=S.selection),f&&(r=k[0][0],d=k[1][0]),x&&(l=k[0][1],g=k[1][1]),k[0][0]===r&&k[0][1]===l&&k[1][0]===d&&k[1][1]===g||(S.selection=[[r,l],[d,g]],c.call(v),P.brush(t,b.name))}function Y(t){if(cn(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else ne(t.view,p),G.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);V.attr("pointer-events","all"),I.attr("cursor",Tn.overlay),S.selection&&(k=S.selection),_n(k)&&(S.selection=null,c.call(v)),P.end(t,b.name)}function B(t){switch(t.keyCode){case 16:_=w&&T;break;case 18:b===mn&&(w&&(u=d-M*w,a=r+M*w),T&&(m=g-F*T,o=l+F*T),b=gn,R());break;case 32:b!==mn&&b!==gn||(w<0?u=d-M:w>0&&(a=r-M),T<0?m=g-F:T>0&&(o=l-F),b=dn,I.attr("cursor",Tn.selection),R());break;default:return}hn(t)}function H(t){switch(t.keyCode){case 16:_&&(f=x=_=!1,R());break;case 18:b===gn&&(w<0?u=d:w>0&&(a=r),T<0?m=g:T>0&&(o=l),b=mn,R());break;case 32:b===dn&&(t.altKey?(w&&(u=d-M*w,a=r+M*w),T&&(m=g-F*T,o=l+F*T),b=gn):(w<0?u=d:w>0&&(a=r),T<0?m=g:T>0&&(o=l),b=mn),I.attr("cursor",Tn[y]),R());break;default:return}hn(t)}}function m(t){h(this,arguments).moved(t)}function g(t){h(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=yn(i.apply(this,arguments)),e.dim=t,e}return l.move=function(e,i){e.tween?e.on("start.brush",function(t){h(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){h(this,arguments).end(t)}).tween("brush",function(){var e=this,n=e.__brush,a=h(e,arguments),s=n.selection,r=t.input("function"==typeof i?i.apply(this,arguments):i,n.extent),o=je(s,r);function l(t){n.selection=1===t&&null===r?null:o(t),c.call(e),a.brush()}return null!==s&&null!==r?l:l(1)}):e.each(function(){var e=this,n=arguments,a=e.__brush,s=t.input("function"==typeof i?i.apply(e,n):i,a.extent),r=h(e,n).beforestart();yi(e),a.selection=null===s?null:s,c.call(e),r.start().brush().end()})},l.clear=function(t){l.move(t,null)},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,i,n){var a=jt(this.that).datum();r.call(e,this.that,new ln(e,{sourceEvent:i,target:l,selection:t.output(this.state.selection),mode:n,dispatch:r}),a)}},l.extent=function(t){return arguments.length?(i="function"==typeof t?t:on(yn(t)),l):i},l.filter=function(t){return arguments.length?(n="function"==typeof t?t:on(!!t),l):n},l.touchable=function(t){return arguments.length?(a="function"==typeof t?t:on(!!t),l):a},l.handleSize=function(t){return arguments.length?(o=+t,l):o},l.keyModifiers=function(t){return arguments.length?(s=!!t,l):s},l.on=function(){var t=r.on.apply(r,arguments);return t===r?l:t},l}(bn).extent([[0,0],[e,t]]).on("brush end",({selection:t})=>{const e=(t||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(e),this.cd.markForCheck()}),jt(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),jt(this.element).select(".brush").call(this.brush),jt(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef),u["\u0275\u0275directiveInject"](u.ChangeDetectorRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Ml,ngContentSelectors:Ho,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(t,e){1&t&&(u["\u0275\u0275projectionDef"](),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",0),u["\u0275\u0275elementStart"](1,"filter"),u["\u0275\u0275element"](2,"feColorMatrix",1),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](3,"g",2),u["\u0275\u0275projection"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275element"](5,"rect",3),u["\u0275\u0275element"](6,"g",4),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("id",e.filterId),u["\u0275\u0275advance"](4),u["\u0275\u0275attribute"]("width",e.view[0])("height",e.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke:#888;stroke-width:1px}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t})(),Zh=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new u.EventEmitter,this.labelActivate=new u.EventEmitter,this.labelDeactivate=new u.EventEmitter,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const i=Ch(e);-1===t.findIndex(t=>t.label===i)&&t.push({label:e,formattedLabel:i,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ChangeDetectorRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[u["\u0275\u0275NgOnChangesFeature"]],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div"),u["\u0275\u0275template"](1,Fl,3,1,"header",0),u["\u0275\u0275elementStart"](2,"div",1),u["\u0275\u0275elementStart"](3,"ul",2),u["\u0275\u0275template"](4,_l,2,4,"li",3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275styleProp"]("width",e.width,"px"),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",(null==e.title?null:e.title.length)>0),u["\u0275\u0275advance"](2),u["\u0275\u0275styleProp"]("max-height",e.height-45,"px"),u["\u0275\u0275classProp"]("horizontal-legend",e.horizontal),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[s.O5,s.sg,Jh]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Jh=(()=>{class t{constructor(){this.isActive=!1,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.toggle=new u.EventEmitter}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"span",0),u["\u0275\u0275listener"]("click",function(){return e.select.emit(e.formattedLabel)}),u["\u0275\u0275elementStart"](1,"span",1),u["\u0275\u0275listener"]("click",function(){return e.toggle.emit(e.formattedLabel)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](2,"span",2),u["\u0275\u0275text"](3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275classProp"]("active",e.isActive),u["\u0275\u0275property"]("title",e.formattedLabel),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("background-color",e.color),u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate1"](" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Kh=(()=>{class t{constructor(){this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`}gradientString(t,e){e.push(1);const i=[];return t.reverse().forEach((t,n)=>{i.push(`${t} ${Math.round(100*e[n])}%`)}),i.join(", ")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[u["\u0275\u0275NgOnChangesFeature"]],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275elementStart"](1,"div",1),u["\u0275\u0275elementStart"](2,"span"),u["\u0275\u0275text"](3),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275element"](4,"div",2),u["\u0275\u0275elementStart"](5,"div",1),u["\u0275\u0275elementStart"](6,"span"),u["\u0275\u0275text"](7),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275styleProp"]("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),u["\u0275\u0275classProp"]("horizontal-legend",e.horizontal),u["\u0275\u0275advance"](3),u["\u0275\u0275textInterpolate"](e.valueRange[1].toLocaleString()),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("background",e.gradient),u["\u0275\u0275advance"](3),u["\u0275\u0275textInterpolate"](e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),tu=(()=>{class t{constructor(){this.label="Total",this.animations=!0,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.legendItems=[],this.labelFormatting=t=>t,this.percentageFormatting=t=>t,this.defaultValueFormatting=t=>t.toLocaleString()}ngOnChanges(t){this.update()}getTotal(){return this.data.map(t=>Number(t.value)).reduce((t,e)=>t+e,0)}update(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()}getLegendItems(){return this.data.map(t=>{const e=Ch(t.name),i=t.value,n=this.colors.getColor(e),a=this.total>0?i/this.total*100:0,s="function"==typeof this.labelFormatting?this.labelFormatting(e):e;return{_value:i,data:t,value:i,color:n,label:s,displayLabel:ph(s,20),origialLabel:t.name,percentage:this.percentageFormatting?this.percentageFormatting(a):a.toLocaleString()}})}trackBy(t){return t.label}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-advanced-legend"]],inputs:{label:"label",animations:"animations",labelFormatting:"labelFormatting",percentageFormatting:"percentageFormatting",width:"width",data:"data",colors:"colors",valueFormatting:"valueFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275NgOnChangesFeature"]],decls:8,vars:7,consts:[[1,"advanced-pie-legend"],["class","total-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","total-value",4,"ngIf"],[1,"total-label"],[1,"legend-items-container"],[1,"legend-items"],["tabindex","-1","class","legend-item",3,"mouseenter","mouseleave","click",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-count-up","",1,"total-value",3,"countTo","valueFormatting"],[1,"total-value"],["tabindex","-1",1,"legend-item",3,"mouseenter","mouseleave","click"],[1,"item-color"],["class","item-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","item-value",4,"ngIf"],[1,"item-label"],["class","item-percent","ngx-charts-count-up","",3,"countTo","countSuffix",4,"ngIf"],["class","item-percent",4,"ngIf"],["ngx-charts-count-up","",1,"item-value",3,"countTo","valueFormatting"],[1,"item-value"],["ngx-charts-count-up","",1,"item-percent",3,"countTo","countSuffix"],[1,"item-percent"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275template"](1,Ol,1,2,"div",1),u["\u0275\u0275template"](2,Vl,2,1,"div",2),u["\u0275\u0275elementStart"](3,"div",3),u["\u0275\u0275text"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](5,"div",4),u["\u0275\u0275elementStart"](6,"div",5),u["\u0275\u0275template"](7,Rl,8,7,"div",6),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275styleProp"]("width",e.width,"px"),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!e.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275textInterpolate1"](" ",e.label," "),u["\u0275\u0275advance"](3),u["\u0275\u0275property"]("ngForOf",e.legendItems)("ngForTrackBy",e.trackBy))},directives:[s.O5,s.sg,zh],styles:[".advanced-pie-legend{float:left;position:relative;top:50%;transform:translateY(-50%)}.advanced-pie-legend .total-value{font-size:36px}.advanced-pie-legend .total-label{font-size:24px;margin-bottom:19px}.advanced-pie-legend .legend-items-container{width:100%}.advanced-pie-legend .legend-items-container .legend-items{overflow:auto;white-space:nowrap}.advanced-pie-legend .legend-items-container .legend-items .legend-item{cursor:pointer;display:inline-block;margin-right:20px}.advanced-pie-legend .legend-items-container .legend-items .legend-item:focus{outline:none}.advanced-pie-legend .legend-items-container .legend-items .legend-item:hover{color:#000;transition:.2s}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value{font-size:24px;margin-left:11px;margin-top:-6px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label{font-size:14px;margin-left:11px;margin-top:-6px;opacity:.7}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent{font-size:24px;margin-left:11px;opacity:.7}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color{border-left:4px solid;float:left;height:42px;margin-right:7px;width:4px}"],encapsulation:2,changeDetection:0}),t})(),eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[s.ez,Th,Ah],s.ez,Th,Ah]}),t})();function iu({width:t,height:e,margins:i,showXAxis:n=!1,showYAxis:a=!1,xAxisHeight:s=0,yAxisWidth:r=0,showXLabel:o=!1,showYLabel:l=!1,showLegend:c=!1,legendType:h=lh.Ordinal,legendPosition:u=ah.Right,columns:d=12}){let m=i[3],g=t,p=e-i[0]-i[2];if(c&&u===ah.Right&&(d-=h===lh.Ordinal?2:1),g=g*d/12,g=g-i[1]-i[3],n&&(p-=5,p-=s,o)&&(p-=30),a&&(g-=5,g-=r,m+=r,m+=10,l)){const t=30;g-=t,m+=t}return g=Math.max(0,g),p=Math.max(0,p),{width:Math.floor(g),height:Math.floor(p),xOffset:Math.floor(m)}}let nu=[{name:"vivid",selectable:!0,group:lh.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:lh.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:lh.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:lh.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:lh.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:lh.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:lh.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:lh.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:lh.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:lh.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:lh.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:lh.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:lh.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:lh.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:lh.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class au{constructor(t,e,i,n){"string"==typeof t&&(t=nu.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=i,this.customColors=n,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,i){let n;if("string"==typeof t&&(t=nu.find(e=>e.name===t)),e===lh.Quantile)n=Rr().range(t.domain).domain(i);else if(e===lh.Ordinal)n=Vr().range(t.domain).domain(i);else if(e===lh.Linear){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const i=_r(0,1,1/e.length);n=Fr().domain(i).range(e)}return n}getColor(t){if(null==t)throw new Error("Value can not be null");if(this.scaleType===lh.Linear){const e=Fr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const i=Fr().domain(this.domain).range([0,1]),n=Ir().domain(this.colorDomain).range([0,1]),a=this.getColor(t),s=i(e),r=this.getColor(e),o=i(t);let l=1,c=s;const h=[];for(h.push({color:r,offset:s,originalOffset:s,opacity:1});c<o&&l<this.colorDomain.length;){const t=this.colorDomain[l],e=n(t);if(e<=s)l++;else{if(e.toFixed(4)>=(o-n.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),c=e,l++}}if(h[h.length-1].offset<100&&h.push({color:a,offset:o,opacity:1}),o===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-s)/(o-s)*100;return h}}function su(t){const e=new Set;for(const i of t)for(const t of i.series)e.add(t.name);return Array.from(e)}function ru(t,e=!0){return e&&t.every(t=>t instanceof Date)?lh.Time:t.every(t=>"number"==typeof t)?lh.Linear:lh.Ordinal}let ou=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.xAxis=!1,this.yAxis=!1,this.baseValue="auto",this.autoScale=!1,this.timeline=!1,this.showGridLines=!0,this.curve=S,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset}, ${this.margin[0]})`,this.clipPathId="clip"+Mh().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=su(this.results);this.scaleType=ru(t);let e,i,n=[];return this.scaleType===lh.Linear&&(t=t.map(t=>Number(t))),this.scaleType!==lh.Time&&this.scaleType!==lh.Linear||(e=this.xScaleMin?this.xScaleMin:Math.min(...t),i=this.xScaleMax?this.xScaleMax:Math.max(...t)),this.scaleType===lh.Time?(n=[new Date(e),new Date(i)],this.xSet=[...t].sort((t,e)=>{const i=t.getTime(),n=e.getTime();return i>n?1:n>i?-1:0})):this.scaleType===lh.Linear?(n=[e,i],this.xSet=[...t].sort((t,e)=>t-e)):(n=t,this.xSet=t),n}getYDomain(){const t=[];for(const i of this.results)for(const e of i.series)t.includes(e.value)||t.push(e.value);const e=[...t];return this.autoScale||e.push(0),"auto"!==this.baseValue&&e.push(this.baseValue),[this.yScaleMin?this.yScaleMin:Math.min(...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let i;return this.scaleType===lh.Time?i=pr():this.scaleType===lh.Linear?i=Fr():this.scaleType===lh.Ordinal&&(i=Gr().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i}getYScale(t,e){const i=Fr().range([e,0]).domain(t);return this.roundDomains?i.nice():i}getScaleType(t){let e=!0,i=!0;for(const n of t)uh(n)&&(e=!1),dh(n)&&(i=!1);return e?lh.Time:i?lh.Linear:lh.Ordinal}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.seriesDomain:this.yDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-area-chart"]],contentQueries:function(t,e,i){if(1&t&&(u["\u0275\u0275contentQuery"](i,Yl,5),u["\u0275\u0275contentQuery"](i,Bl,5)),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first),u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.seriesTooltipTemplate=t.first)}},hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseleave",function(){return e.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",baseValue:"baseValue",autoScale:"autoScale",timeline:"timeline",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","activeEntries","scaleType","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","scaleType","gradient","curve","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275elementStart"](2,"clipPath"),u["\u0275\u0275element"](3,"rect"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](4,"g",1),u["\u0275\u0275template"](5,Hl,1,10,"g",2),u["\u0275\u0275template"](6,Nl,1,9,"g",3),u["\u0275\u0275elementStart"](7,"g"),u["\u0275\u0275template"](8,Wl,2,10,"g",4),u["\u0275\u0275template"](9,$l,3,9,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](10,ql,2,13,"g",6),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](17,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275attribute"]("id",e.clipPathId),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("clip-path",e.clipPath),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!e.tooltipDisabled),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[ch,s.O5,s.sg,vh,wh,mu,Uh,_h,Qh]},styles:[nc],encapsulation:2,changeDetection:0}),t})(),lu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.showXAxisLabel=!1,this.showYAxisLabel=!1,this.showGridLines=!0,this.curve=S,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.yDomain=[0,100],this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let t=0;t<this.xSet.length;t++){const e=this.xSet[t];let i=0,n=0;for(const t of this.results){const i=t.series.find(t=>{let i=t.name,n=e;return this.scaleType===lh.Time&&(i=i.valueOf(),n=n.valueOf()),i===n});i&&(n+=i.value)}for(const t of this.results){let a=t.series.find(t=>{let i=t.name,n=e;return this.scaleType===lh.Time&&(i=i.valueOf(),n=n.valueOf()),i===n});a?(a.d0=i,a.d1=i+a.value,i+=a.value):(a={name:e,value:0,d0:i,d1:i},t.series.push(a)),n>0?(a.d0=100*a.d0/n,a.d1=100*a.d1/n):(a.d0=0,a.d1=0)}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Mh().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=su(this.results);this.scaleType=ru(t);let e=[];if(this.scaleType===lh.Time){const i=Math.min(...t),n=Math.max(...t);e=[new Date(i),new Date(n)],this.xSet=[...t].sort((t,e)=>{const i=t.getTime(),n=e.getTime();return i>n?1:n>i?-1:0})}else this.scaleType===lh.Linear?(t=t.map(t=>Number(t)),e=[Math.min(...t),Math.max(...t)],this.xSet=[...t].sort((t,e)=>t-e)):(e=t,this.xSet=t);return e}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let i;return this.scaleType===lh.Time?i=pr():this.scaleType===lh.Linear?i=Fr():this.scaleType===lh.Ordinal&&(i=Gr().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i}getYScale(t,e){const i=Fr().range([e,0]).domain(t);return this.roundDomains?i.nice():i}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.seriesDomain:this.yDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(t,e,i){if(1&t&&(u["\u0275\u0275contentQuery"](i,Yl,5),u["\u0275\u0275contentQuery"](i,Bl,5)),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first),u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.seriesTooltipTemplate=t.first)}},hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseleave",function(){return e.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xAxis:"xAxis",yAxis:"yAxis",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275elementStart"](2,"clipPath"),u["\u0275\u0275element"](3,"rect"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](4,"g",1),u["\u0275\u0275template"](5,Ql,1,10,"g",2),u["\u0275\u0275template"](6,Zl,1,9,"g",3),u["\u0275\u0275elementStart"](7,"g"),u["\u0275\u0275template"](8,Jl,2,9,"g",4),u["\u0275\u0275template"](9,tc,3,10,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](10,ic,2,13,"g",6),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](17,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275attribute"]("id",e.clipPathId),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("clip-path",e.clipPath),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!e.tooltipDisabled),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[ch,s.O5,s.sg,vh,wh,mu,Uh,_h,Qh]},styles:[nc],encapsulation:2,changeDetection:0}),t})(),cu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.xAxis=!1,this.yAxis=!1,this.timeline=!1,this.showGridLines=!0,this.curve=S,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(let t=0;t<this.xSet.length;t++){const e=this.xSet[t];let i=0;for(const t of this.results){let n=t.series.find(t=>{let i=t.name,n=e;return this.scaleType===lh.Time&&(i=i.valueOf(),n=n.valueOf()),i===n});n?(n.d0=i,n.d1=i+n.value,i+=n.value):(n={name:e,value:0,d0:i,d1:i},t.series.push(n))}}this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Mh().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=su(this.results);this.scaleType=ru(t);let e,i,n=[];return this.scaleType===lh.Linear&&(t=t.map(t=>Number(t))),this.scaleType!==lh.Time&&this.scaleType!==lh.Linear||(e=this.xScaleMin?this.xScaleMin:Math.min(...t),i=this.xScaleMax?this.xScaleMax:Math.max(...t)),this.scaleType===lh.Time?(n=[new Date(e),new Date(i)],this.xSet=[...t].sort((t,e)=>{const i=t.getTime(),n=e.getTime();return i>n?1:n>i?-1:0})):this.scaleType===lh.Linear?(n=[e,i],this.xSet=[...t].sort((t,e)=>t-e)):(n=t,this.xSet=t),n}getYDomain(){const t=[];for(let e=0;e<this.xSet.length;e++){const i=this.xSet[e];let n=0;for(const t of this.results){const e=t.series.find(t=>{let e=t.name,n=i;return this.scaleType===lh.Time&&(e=e.valueOf(),n=n.valueOf()),e===n});e&&(n+=e.value)}t.push(n)}return[this.yScaleMin?this.yScaleMin:Math.min(0,...t),this.yScaleMax?this.yScaleMax:Math.max(...t)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let i;return this.scaleType===lh.Time?i=pr():this.scaleType===lh.Linear?i=Fr():this.scaleType===lh.Ordinal&&(i=Gr().padding(.1)),i.range([0,e]).domain(t),this.roundDomains?i.nice():i}getYScale(t,e){const i=Fr().range([e,0]).domain(t);return this.roundDomains?i.nice():i}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.seriesDomain:this.yDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(t,e,i){if(1&t&&(u["\u0275\u0275contentQuery"](i,Yl,5),u["\u0275\u0275contentQuery"](i,Bl,5)),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first),u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.seriesTooltipTemplate=t.first)}},hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseleave",function(){return e.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",timeline:"timeline",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275elementStart"](2,"clipPath"),u["\u0275\u0275element"](3,"rect"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](4,"g",1),u["\u0275\u0275template"](5,ac,1,10,"g",2),u["\u0275\u0275template"](6,sc,1,9,"g",3),u["\u0275\u0275elementStart"](7,"g"),u["\u0275\u0275template"](8,rc,2,9,"g",4),u["\u0275\u0275template"](9,lc,3,10,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](10,hc,2,13,"g",6),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](17,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275attribute"]("id",e.clipPathId),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("clip-path",e.clipPath),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!e.tooltipDisabled),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[ch,s.O5,s.sg,vh,wh,mu,Uh,_h,Qh]},styles:[nc],encapsulation:2,changeDetection:0}),t})();function hu(t,e,i="asc"){return t.sort((t,n)=>"asc"===i?t[e]-n[e]:n[e]-t[e])}function uu(t,e,i="asc",n){return t.sort((t,a)=>{const s=a[e],r=n.indexOf(t[e]),o=n.indexOf(s);return"asc"===i?r-o:o-r})}function du(t,e,i="asc"){return t.sort((t,n)=>{const a=t[e].getTime(),s=n[e].getTime();return"asc"===i?a>s?1:s>a?-1:0:a>s?-1:s>a?1:0})}let mu=(()=>{class t{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new u.EventEmitter}ngOnChanges(t){this.update()}update(){let t,e;this.updateGradient();const i=t=>this.xScale(t.name);this.stacked||this.normalized?(t=Zr().x(i).y0((t,e)=>this.yScale(t.d0)).y1((t,e)=>this.yScale(t.d1)),e=Zr().x(i).y0(t=>this.yScale.range()[0]).y1(t=>this.yScale.range()[0])):(t=Zr().x(i).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(t=>this.yScale(t.value)),e=Zr().x(i).y0(t=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(t=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),t.curve(this.curve),e.curve(this.curve),this.opacity=.8;let n=this.data.series;n=this.scaleType===lh.Linear?hu(n,"name"):this.scaleType===lh.Time?du(n,"name"):uu(n,"name","asc",this.xScale.domain()),this.path=t(n),this.startingPath=e(n)}updateGradient(){if(this.colors.scaleType===lh.Linear)if(this.hasGradient=!0,this.stacked||this.normalized){const t=this.data.series.map(t=>t.d0),e=this.data.series.map(t=>t.d1),i=Math.max(...e),n=Math.min(...t);this.gradientStops=this.colors.getLinearGradientStops(i,n)}else{const t=this.data.series.map(t=>t.value),e=Math.max(...t);this.gradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}isInactive(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(e=>t.name===e.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:uc,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"g",0)),2&t&&(u["\u0275\u0275classProp"]("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),u["\u0275\u0275property"]("data",e.data)("path",e.path)("fill",e.colors.getColor(e.data.name))("stops",e.gradientStops)("startingPath",e.startingPath)("opacity",e.opacity)("gradient",e.gradient||e.hasGradient)("animations",e.animations))},directives:[Bh],encapsulation:2,changeDetection:0}),t})(),gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})();var pu=function(t){return t.Vertical="vertical",t.Horizontal="horizontal",t}({});let fu=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Mh().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=jt(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?this.orientation===pu.Vertical?(e=Math.min(this.height,e),t=yh(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===pu.Horizontal&&(e=Math.min(this.width,e),t=yh(this.x,this.y,1,this.height,0,this.edges)):this.orientation===pu.Vertical?t=yh(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===pu.Horizontal&&(t=yh(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=yh(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=yh(this.x,this.y,this.width,this.height,e,this.edges)):t=yh(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===pu.Vertical?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===pu.Horizontal&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===pu.Vertical&&0===this.height||this.orientation===pu.Horizontal&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:dc,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(u["\u0275\u0275template"](0,mc,2,3,"defs",0),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"path",1),u["\u0275\u0275listener"]("click",function(){return e.select.emit(e.data)}),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("ngIf",e.hasGradient),u["\u0275\u0275advance"](1),u["\u0275\u0275classProp"]("active",e.isActive)("hidden",e.hideBar),u["\u0275\u0275attribute"]("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[s.O5,Rh],encapsulation:2,changeDetection:0}),t})(),xu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const t=Fr().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?t.nice():t}getYScale(){this.yDomain=this.getYDomain();const t=this.yDomain.length/(this.dims.height/this.barPadding+1);return Ir().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.yDomain)}getXDomain(){const t=this.results.map(t=>t.value);return[this.xScaleMin?Math.min(this.xScaleMin,...t):Math.min(0,...t),this.xScaleMax?Math.max(this.xScaleMax,...t):Math.max(0,...t)]}getYDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){let t;t=this.schemeType===lh.Ordinal?this.yDomain:this.xDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.yDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.xDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxWidthChanged(t){t.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,t.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,t.size.width),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"g",1),u["\u0275\u0275template"](2,gc,1,10,"g",2),u["\u0275\u0275template"](3,pc,1,9,"g",3),u["\u0275\u0275elementStart"](4,"g",4),u["\u0275\u0275listener"]("select",function(t){return e.onClick(t)})("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("dataLabelWidthChanged",function(t){return e.onDataLabelMaxWidthChanged(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](22,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[ch,s.O5,Su,vh,wh]},styles:[nc],encapsulation:2,changeDetection:0}),t})(),vu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Ir().rangeRound([0,this.dims.height]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Ir().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=Fr().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.label)||t.push(i.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.value)||t.push(i.value);return[Math.min(0,...t),this.xScaleMax?Math.max(this.xScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(0, ${this.groupScale(t.label)})`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.innerDomain:this.valueDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxWidthChanged(t,e){t.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,t.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,t.size.width),e===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name);const a=this.results.map(t=>t.series).flat().filter(t=>i?t.label===n.name:t.name===n.name&&t.series===n.series);this.activeEntries=[...a],this.activate.emit({value:n,entries:this.activeEntries})}onDeactivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries=this.activeEntries.filter(t=>i?t.label!==n.name:!(t.name===n.name&&t.series===n.series)),this.deactivate.emit({value:n,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-bar-horizontal-2d"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","horizontal",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],["ngx-charts-series-horizontal","",3,"xScale","activeEntries","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"g",1),u["\u0275\u0275element"](2,"g",2),u["\u0275\u0275template"](3,fc,1,10,"g",3),u["\u0275\u0275template"](4,xc,1,9,"g",4),u["\u0275\u0275template"](5,vc,2,17,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](14,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",e.valueScale)("yScale",e.groupScale)("data",e.results)("dims",e.dims),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[ch,Gh,s.O5,s.sg,vh,wh,Su]},styles:[nc],encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":leave",[(0,E.oB)({opacity:1,transform:"*"}),(0,E.jt)(500,(0,E.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})(),yu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Ir().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=Fr().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let i=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(i=Math.max(i,...this.yAxisTicks)),[e,i]}onClick(t){this.select.emit(t)}setColors(){let t;t=this.schemeType===lh.Ordinal?this.xDomain:this.yDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"g",1),u["\u0275\u0275template"](2,yc,1,10,"g",2),u["\u0275\u0275template"](3,bc,1,9,"g",3),u["\u0275\u0275elementStart"](4,"g",4),u["\u0275\u0275listener"]("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("select",function(t){return e.onClick(t)})("dataLabelHeightChanged",function(t){return e.onDataLabelMaxHeightChanged(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](22,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[ch,s.O5,Lu,vh,wh]},styles:[nc],encapsulation:2,changeDetection:0}),t})(),bu=(()=>{class t extends mh{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.tooltipDisabled=!1,this.scaleType=lh.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Ir().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Ir().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=Fr().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.label)||t.push(i.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const i of e.series)t.includes(i.value)||t.push(i.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.innerDomain:this.valueDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name);const a=this.results.map(t=>t.series).flat().filter(t=>i?t.label===n.name:t.name===n.name&&t.series===n.series);this.activeEntries=[...a],this.activate.emit({value:n,entries:this.activeEntries})}onDeactivate(t,e,i=!1){const n=Object.assign({},t);e&&(n.series=e.name),this.activeEntries=this.activeEntries.filter(t=>i?t.label!==n.name:!(t.name===n.name&&t.series===n.series)),this.deactivate.emit({value:n,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"g",1),u["\u0275\u0275element"](2,"g",2),u["\u0275\u0275template"](3,wc,1,10,"g",3),u["\u0275\u0275template"](4,Tc,1,9,"g",4),u["\u0275\u0275template"](5,Sc,1,17,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](14,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[ch,Gh,s.O5,s.sg,vh,wh,Lu]},styles:[nc],encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":leave",[(0,E.oB)({opacity:1,transform:"*"}),(0,E.jt)(500,(0,E.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();var wu=function(t){return t.Standard="standard",t.Normalized="normalized",t.Stacked="stacked",t}({}),Tu=function(t){return t.positive="positive",t.negative="negative",t}({});let Su=(()=>{class t{constructor(){this.type=wu.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.dataLabelWidthChanged=new u.EventEmitter,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){this.updateTooltipSettings();const t={[Tu.positive]:0,[Tu.negative]:0};let e,i;e=Tu.positive,this.type===wu.Normalized&&(i=this.series.map(t=>t.value).reduce((t,e)=>t+e,0));const n=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(a=>{let s=a.value;const r=this.getLabel(a),o=Ch(r);e=s>0?Tu.positive:Tu.negative;const l={value:s,label:r,roundEdges:this.roundEdges,data:a,formattedLabel:o};if(l.height=this.yScale.bandwidth(),this.type===wu.Standard)l.width=Math.abs(this.xScale(s)-this.xScale(n)),l.x=this.xScale(s<0?s:n),l.y=this.yScale(r);else if(this.type===wu.Stacked){const i=t[e],n=i+s;t[e]+=s,l.width=this.xScale(n)-this.xScale(i),l.x=this.xScale(i),l.y=0,l.offset0=i,l.offset1=n}else if(this.type===wu.Normalized){let n=t[e],a=n+s;t[e]+=s,i>0?(n=100*n/i,a=100*a/i):(n=0,a=0),l.width=this.xScale(a)-this.xScale(n),l.x=this.xScale(n),l.y=0,l.offset0=n,l.offset1=a,s=(a-n).toFixed(2)+"%"}this.colors.scaleType===lh.Ordinal?l.color=this.colors.getColor(r):this.type===wu.Standard?(l.color=this.colors.getColor(s),l.gradientStops=this.colors.getLinearGradientStops(s)):(l.color=this.colors.getColor(l.offset1),l.gradientStops=this.colors.getLinearGradientStops(l.offset1,l.offset0));let c=o;return l.ariaLabel=o+" "+s.toLocaleString(),this.seriesName&&(c=`${this.seriesName} \u2022 ${o}`,l.data.series=this.seriesName,l.ariaLabel=this.seriesName+" "+l.ariaLabel),l.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${Eh(c)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(s):s.toLocaleString()}</span>\n `,l}),this.updateDataLabels()}updateDataLabels(){if(this.type===wu.Stacked){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),i=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+i,t.x=0,t.y=0,t.width=this.xScale(t.total>0?e:i),t.height=this.yScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(0),e.y=this.yScale(t.label),e.width=this.xScale(e.total)-this.xScale(0),e.height=this.yScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Jc.Top,this.tooltipType=this.tooltipDisabled?void 0:Sh.tooltip}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}click(t){this.select.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Lc,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275template"](0,kc,1,21,"g",0),u["\u0275\u0275template"](1,Cc,2,2,"g",1)),2&t&&(u["\u0275\u0275property"]("ngForOf",e.bars)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showDataLabel))},directives:function(){return[s.sg,s.O5,fu,kh,ku]},encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":leave",[(0,E.oB)({opacity:1}),(0,E.jt)(500,(0,E.oB)({opacity:0}))])])]},changeDetection:0}),t})(),Lu=(()=>{class t{constructor(){this.type=wu.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.dataLabelHeightChanged=new u.EventEmitter,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),i={[Tu.positive]:0,[Tu.negative]:0};let n,a=Tu.positive;this.type===wu.Normalized&&(n=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((s,r)=>{let o=s.value;const l=this.getLabel(s),c=Ch(l);a=o>0?Tu.positive:Tu.negative;const h={value:o,label:l,roundEdges:this.roundEdges,data:s,width:t,formattedLabel:c,height:0,x:0,y:0};if(this.type===wu.Standard)h.height=Math.abs(this.yScale(o)-this.yScale(e)),h.x=this.xScale(l),h.y=this.yScale(o<0?0:o);else if(this.type===wu.Stacked){const t=i[a],e=t+o;i[a]+=o,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if(this.type===wu.Normalized){let t=i[a],e=t+o;i[a]+=o,n>0?(t=100*t/n,e=100*e/n):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,o=(e-t).toFixed(2)+"%"}this.colors.scaleType===lh.Ordinal?h.color=this.colors.getColor(l):this.type===wu.Standard?(h.color=this.colors.getColor(o),h.gradientStops=this.colors.getLinearGradientStops(o)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=c;return h.ariaLabel=c+" "+o.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${c}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${Eh(u)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(o):o.toLocaleString()}</span>\n `,h}),this.updateDataLabels()}updateDataLabels(){if(this.type===wu.Stacked){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),i=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+i,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:i),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Jc.Top,this.tooltipType=this.tooltipDisabled?void 0:Sh.tooltip}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Ec,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(u["\u0275\u0275template"](0,Dc,1,22,"g",0),u["\u0275\u0275template"](1,Fc,2,2,"g",1)),2&t&&(u["\u0275\u0275property"]("ngForOf",e.bars)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.showDataLabel))},directives:function(){return[s.sg,s.O5,fu,kh,ku]},encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":leave",[(0,E.oB)({opacity:1}),(0,E.jt)(500,(0,E.oB)({opacity:0}))])])]},changeDetection:0}),t})(),ku=(()=>{class t{constructor(t){this.dimensionsChanged=new u.EventEmitter,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Ch(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:_c,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"text",0),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275attribute"]("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),Au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Cu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Du=(()=>{class t{constructor(t){this.element=t,this.fill="none",this.animations=!0,this.initialized=!1}ngOnChanges(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const t=jt(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Oc,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275element"](0,"path",0)),2&t&&(u["\u0275\u0275property"]("@animationState","active"),u["\u0275\u0275attribute"]("d",e.initialPath)("fill",e.fill)("stroke",e.stroke))},encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":enter",[(0,E.oB)({strokeDasharray:2e3,strokeDashoffset:2e3}),(0,E.jt)(1e3,(0,E.oB)({strokeDashoffset:0}))])])]},changeDetection:0}),t})(),Mu=(()=>{class t extends mh{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=ah.Right,this.showGridLines=!0,this.curve=S,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=iu({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Mh().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=su(this.results);this.scaleType=ru(t);let e,i,n=[];return this.scaleType===lh.Linear&&(t=t.map(t=>Number(t))),this.scaleType!==lh.Time&&this.scaleType!==lh.Linear||(e=this.xScaleMin?this.xScaleMin:Math.min(...t),i=this.xScaleMax?this.xScaleMax:Math.max(...t)),this.scaleType===lh.Time?(n=[new Date(e),new Date(i)],this.xSet=[...t].sort((t,e)=>{const i=t.getTime(),n=e.getTime();return i>n?1:n>i?-1:0})):this.scaleType===lh.Linear?(n=[e,i],this.xSet=[...t].sort((t,e)=>t-e)):(n=t,this.xSet=t),n}getYDomain(){const t=[];for(const i of this.results)for(const e of i.series)t.indexOf(e.value)<0&&t.push(e.value),void 0!==e.min&&(this.hasRange=!0,t.indexOf(e.min)<0&&t.push(e.min)),void 0!==e.max&&(this.hasRange=!0,t.indexOf(e.max)<0&&t.push(e.max));const e=[...t];return this.autoScale||e.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let i;return this.scaleType===lh.Time?i=pr().range([0,e]).domain(t):this.scaleType===lh.Linear?(i=Fr().range([0,e]).domain(t),this.roundDomains&&(i=i.nice())):this.scaleType===lh.Ordinal&&(i=Gr().range([0,e]).padding(.1).domain(t)),i}getYScale(t,e){const i=Fr().range([e,0]).domain(t);return this.roundDomains?i.nice():i}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t){this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t=this.schemeType===lh.Ordinal?this.seriesDomain:this.yDomain,this.colors=new au(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===lh.Ordinal?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.deactivateAll(),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value)>-1||(this.activeEntries=[t],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-line-chart"]],contentQueries:function(t,e,i){if(1&t&&(u["\u0275\u0275contentQuery"](i,Yl,5),u["\u0275\u0275contentQuery"](i,Bl,5)),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first),u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.seriesTooltipTemplate=t.first)}},hostBindings:function(t,e){1&t&&u["\u0275\u0275listener"]("mouseleave",function(){return e.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275elementStart"](2,"clipPath"),u["\u0275\u0275element"](3,"rect"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](4,"g",1),u["\u0275\u0275template"](5,Vc,1,10,"g",2),u["\u0275\u0275template"](6,Ic,1,12,"g",3),u["\u0275\u0275elementStart"](7,"g"),u["\u0275\u0275template"](8,Pc,2,11,"g",4),u["\u0275\u0275template"](9,Xc,3,9,"g",5),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275template"](10,Yc,2,13,"g",6),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](17,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](2),u["\u0275\u0275attribute"]("id",e.clipPathId),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.xAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.yAxis),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("clip-path",e.clipPath),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngForOf",e.results)("ngForTrackBy",e.trackBy),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",!e.tooltipDisabled),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[ch,s.O5,s.sg,vh,wh,Fu,Uh,_h,Qh]},styles:[nc],encapsulation:2,data:{animation:[(0,E.X$)("animationState",[(0,E.eR)(":leave",[(0,E.oB)({opacity:1}),(0,E.jt)(500,(0,E.oB)({opacity:0}))])])]},changeDetection:0}),t})(),Fu=(()=>{class t{constructor(){this.animations=!0}ngOnChanges(t){this.update()}update(){this.updateGradients();const t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";const i=this.getAreaGenerator();if(this.areaPath=i(t)||"",this.hasRange){const e=this.getRangeGenerator();this.outerPath=e(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const t=this.data.series.map(t=>t.value),e=Math.max(...t);e===Math.min(...t)&&(this.stroke=this.colors.getColor(e))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return Qr().x(t=>{const e=t.name;let i;return i=this.xScale(this.scaleType===lh.Time?e:this.scaleType===lh.Linear?Number(e):e),i}).y(t=>this.yScale(t.value)).curve(this.curve)}getRangeGenerator(){return Zr().x(t=>{const e=t.name;let i;return i=this.xScale(this.scaleType===lh.Time?e:this.scaleType===lh.Linear?Number(e):e),i}).y0(t=>this.yScale("number"==typeof t.min?t.min:t.value)).y1(t=>this.yScale("number"==typeof t.max?t.max:t.value)).curve(this.curve)}getAreaGenerator(){return Zr().x(t=>this.xScale(t.name)).y0(()=>this.yScale.range()[0]).y1(t=>this.yScale(t.value)).curve(this.curve)}sortData(t){return this.scaleType===lh.Linear?hu(t,"name"):this.scaleType===lh.Time?du(t,"name"):uu(t,"name","asc",this.xScale.domain())}updateGradients(){if(this.colors.scaleType===lh.Linear){this.hasGradient=!0,this.gradientId="grad"+Mh().toString(),this.gradientUrl=`url(#${this.gradientId})`;const t=this.data.series.map(t=>t.value),e=Math.max(...t),i=Math.min(...t);this.gradientStops=this.colors.getLinearGradientStops(e,i),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name)}isInactive(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(e=>t.name===e.name)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Bc,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g"),u["\u0275\u0275elementStart"](1,"defs"),u["\u0275\u0275template"](2,Hc,1,2,"g",0),u["\u0275\u0275elementEnd"](),u["\u0275\u0275element"](3,"g",1),u["\u0275\u0275element"](4,"g",2),u["\u0275\u0275template"](5,Nc,1,9,"g",3),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](2),u["\u0275\u0275property"]("ngIf",e.hasGradient),u["\u0275\u0275advance"](1),u["\u0275\u0275classProp"]("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),u["\u0275\u0275property"]("data",e.data)("path",e.areaPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",e.areaGradientStops)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275classProp"]("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),u["\u0275\u0275property"]("data",e.data)("path",e.path)("stroke",e.stroke)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.hasRange))},directives:[s.O5,Bh,Du,Rh],encapsulation:2,changeDetection:0}),t})(),_u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})();Math;let Ou=(()=>{class t extends mh{constructor(){super(...arguments),this.activeEntries=[],this.tooltipDisabled=!1,this.label="Total",this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.margin=[20,20,20,20]}update(){super.update(),this.dims=iu({width:4*this.width/12,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors();const t=this.dims.width/2,e=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform=`translate(${t} , ${e})`}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new au(this.scheme,lh.Ordinal,this.domain,this.customColors)}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-advanced-pie-chart"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",label:"label",gradient:"gradient",tooltipText:"tooltipText",valueFormatting:"valueFormatting",nameFormatting:"nameFormatting",percentageFormatting:"percentageFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:7,vars:37,consts:[[1,"advanced-pie","chart"],[3,"view","showLegend","animations"],[1,"pie","chart"],["ngx-charts-pie-series","",3,"colors","series","innerRadius","activeEntries","outerRadius","gradient","tooltipDisabled","tooltipTemplate","tooltipText","animations","select","activate","deactivate"],[1,"advanced-pie-legend-wrapper"],[3,"data","colors","width","label","animations","valueFormatting","labelFormatting","percentageFormatting","select","activate","deactivate"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div"),u["\u0275\u0275elementStart"](1,"div",0),u["\u0275\u0275elementStart"](2,"ngx-charts-chart",1),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](3,"g",2),u["\u0275\u0275elementStart"](4,"g",3),u["\u0275\u0275listener"]("select",function(t){return e.onClick(t)})("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275namespaceHTML"](),u["\u0275\u0275elementStart"](5,"div",4),u["\u0275\u0275elementStart"](6,"ngx-charts-advanced-legend",5),u["\u0275\u0275listener"]("select",function(t){return e.onClick(t)})("activate",function(t){return e.onActivate(t,!0)})("deactivate",function(t){return e.onDeactivate(t,!0)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275styleProp"]("width",e.width,"px")("height",e.height,"px"),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("width",e.dims.width,"px")("height",e.dims.height,"px"),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](34,Ul,e.width,e.height))("showLegend",!1)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.transform),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("colors",e.colors)("series",e.results)("innerRadius",e.innerRadius)("activeEntries",e.activeEntries)("outerRadius",e.outerRadius)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("tooltipText",e.tooltipText)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("width",e.width-e.dims.width,"px")("height",e.height,"px"),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("data",e.results)("colors",e.colors)("width",e.width-e.dims.width-e.margin[1])("label",e.label)("animations",e.animations)("valueFormatting",e.valueFormatting)("labelFormatting",e.nameFormatting)("percentageFormatting",e.percentageFormatting))},directives:function(){return[ch,Gu,tu]},styles:[nc,".advanced-pie{float:left}.advanced-pie,.advanced-pie-legend-wrapper{display:inline-block}"],encapsulation:2,changeDetection:0}),t})(),Vu=(()=>{class t{constructor(t){this.platformId=t,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=ph}ngOnChanges(t){this.setTransforms(),this.update()}setTransforms(){if((0,s.PM)(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const t=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=t?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=t?`translate(${this.textX},${this.textY})`:null,this.textTransition=t||!this.animations?null:"transform 0.75s"}}update(){let t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);const e=So().innerRadius(t).outerRadius(t).centroid(this.data);let i=this.data.pos[1]/e[1];0!==this.data.pos[1]&&0!==e[1]||(i=1),this.line=`M${e}L${[i*e[0],i*e[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data)<Math.PI?oh.Start:oh.End}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.PLATFORM_ID))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:Wc,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"title"),u["\u0275\u0275text"](1),u["\u0275\u0275elementEnd"](),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](2,"g"),u["\u0275\u0275elementStart"](3,"text",0),u["\u0275\u0275text"](4),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275element"](5,"path",1)),2&t&&(u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate"](e.label),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("transform",e.styleTransform)("transition",e.textTransition),u["\u0275\u0275attribute"]("transform",e.attrTransform),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("text-anchor",e.textAnchor())("shape-rendering","crispEdges"),u["\u0275\u0275classProp"]("animation",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275textInterpolate1"](" ",e.labelTrim?e.trimLabel(e.label,e.labelTrimSize):e.label," "),u["\u0275\u0275advance"](1),u["\u0275\u0275classProp"]("animation",e.animations),u["\u0275\u0275attribute"]("d",e.line)("stroke",e.color))},encapsulation:2,changeDetection:0}),t})(),Iu=(()=>{class t{constructor(t){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.dblclick=new u.EventEmitter,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const t=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Mh().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),So().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)}loadAnimation(){const t=jt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().attrTween("d",function(t){this._current=this._current||t;const i=Object.assign({},t);i.endAngle=i.startAngle;const n=je(i,i);return this._current=n(0),function(t){return e(n(t))}}).transition().duration(750).attrTween("d",function(t){this._current=this._current||t;const i=je(this._current,t);return this._current=i(0),function(t){return e(i(t))}})}updateAnimation(){const t=jt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(750).attrTween("d",function(t){this._current=this._current||t;const i=je(this._current,t);return this._current=i(0),function(t){return e(i(t))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(t){t.preventDefault(),t.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:t})}}return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275directiveInject"](u.ElementRef))},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:zc,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(t,e){1&t&&(u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](0,"g",0),u["\u0275\u0275template"](1,$c,2,3,"defs",1),u["\u0275\u0275elementStart"](2,"path",2),u["\u0275\u0275listener"]("click",function(){return e.onClick()})("dblclick",function(t){return e.onDblClick(t)})("mouseenter",function(){return e.activate.emit(e.data)})("mouseleave",function(){return e.deactivate.emit(e.data)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("ngIf",e.gradient),u["\u0275\u0275advance"](1),u["\u0275\u0275styleProp"]("pointer-events",e.getPointerEvents()),u["\u0275\u0275classProp"]("active",e.isActive),u["\u0275\u0275attribute"]("d",e.path)("fill",e.getGradient()))},directives:[s.O5,Yh],encapsulation:2,changeDetection:0}),t})(),Pu=(()=>{class t extends mh{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=ah.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new u.EventEmitter,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=iu({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((t,e)=>this.domain.indexOf(t.name)-this.domain.indexOf(e.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new au(this.scheme,lh.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:lh.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(i=>e?i.label===t.name:i.name===t.name);const i=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=u["\u0275\u0275getInheritedFactory"](t)))(i||t)}}(),t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(t,e,i){if(1&t&&u["\u0275\u0275contentQuery"](i,Yl,5),2&t){let t;u["\u0275\u0275queryRefresh"](t=u["\u0275\u0275loadQuery"]())&&(e.tooltipTemplate=t.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[u["\u0275\u0275InheritDefinitionFeature"]],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"ngx-charts-chart",0),u["\u0275\u0275listener"]("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)})("legendLabelClick",function(t){return e.onClick(t)}),u["\u0275\u0275namespaceSVG"](),u["\u0275\u0275elementStart"](1,"g",1),u["\u0275\u0275elementStart"](2,"g",2),u["\u0275\u0275listener"]("dblclick",function(t){return e.dblclick.emit(t)})("select",function(t){return e.onClick(t)})("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275property"]("view",u["\u0275\u0275pureFunction2"](21,Ul,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),u["\u0275\u0275advance"](1),u["\u0275\u0275attribute"]("transform",e.translation),u["\u0275\u0275advance"](1),u["\u0275\u0275property"]("colors",e.colors)("series",e.data)("showLabels",e.labels)("labelFormatting",e.labelFormatting)("trimLabels",e.trimLabels)("maxLabelLength",e.maxLabelLength)("activeEntries",e.activeEntries)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("explodeSlices",e.explodeSlices)("gradient",e.gradient)("animations",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("tooltipText",e.tooltipText))},directives:function(){return[ch,Gu]},styles:[nc,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:fadeIn .75s ease-in;animation:fadeIn .75s ease-in}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:drawOut 3s linear;animation:drawOut 3s linear;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}"],encapsulation:2,changeDetection:0}),t})(),Gu=(()=>{class t{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new u.EventEmitter,this.activate=new u.EventEmitter,this.deactivate=new u.EventEmitter,this.dblclick=new u.EventEmitter}ngOnChanges(t){this.update()}update(){const t=function(){var t=ko,e=Lo,i=null,n=jr(0),a=jr(mo),s=jr(0);function r(r){var o,l,c,h,u,d=(r=$r(r)).length,m=0,g=new Array(d),p=new Array(d),f=+n.apply(this,arguments),x=Math.min(mo,Math.max(-mo,a.apply(this,arguments)-f)),v=Math.min(Math.abs(x)/d,s.apply(this,arguments)),y=v*(x<0?-1:1);for(o=0;o<d;++o)(u=p[g[o]=o]=+t(r[o],o,r))>0&&(m+=u);for(null!=e?g.sort(function(t,i){return e(p[t],p[i])}):null!=i&&g.sort(function(t,e){return i(r[t],r[e])}),o=0,c=m?(x-d*y)/m:0;o<d;++o,f=h)p[l=g[o]]={data:r[l],index:o,value:u=p[l],startAngle:f,endAngle:h=f+(u>0?u*c:0)+y,padAngle:v};return p}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:jr(+e),r):t},r.sortValues=function(t){return arguments.length?(e=t,i=null,r):e},r.sort=function(t){return arguments.length?(i=t,e=null,r):i},r.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:jr(+t),r):n},r.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:jr(+t),r):a},r.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:jr(+t),r):s},r}().value(t=>t.value).sort(null)(this.series);this.max=function(t,e){let i;if(void 0===e)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let n=-1;for(let a of t)null!=(a=e(a,++n))&&(i<a||void 0===i&&a>=a)&&(i=a)}return i}(t,t=>t.value),this.data=this.calculateLabelPositions(t),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}outerArc(){return So().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(t){const e=t;e.forEach(t=>{t.pos=this.outerArc().centroid(t),t.pos[0]=1.5*this.outerRadius*(this.midAngle(t)<Math.PI?1:-1)});for(let i=0;i<e.length-1;i++){const t=e[i];if(this.labelVisible(t))for(let n=i+1;n<e.length;n++){const i=e[n];if(this.labelVisible(i)&&i.pos[0]*t.pos[0]>0){const e=10-Math.abs(i.pos[1]-t.pos[1]);e>0&&(i.pos[1]+=Math.sign(i.pos[0])*e)}}}return e}labelVisible(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30}getTooltipTitle(t){return this.tooltipTemplate?void 0:this.tooltipText(t)}labelText(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)}label(t){return Ch(t.data.name)}defaultTooltipText(t){const e=this.label(t),i=Ch(t.data.value);return`\n <span class="tooltip-label">${Eh(e)}</span>\n <span class="tooltip-val">${i}</span>\n `}color(t){return this.colors.getColor(this.label(t))}trackBy(t,e){return e.data.name}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[u["\u0275\u0275NgOnChangesFeature"]],attrs:jc,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(t,e){1&t&&u["\u0275\u0275template"](0,qc,3,19,"g",0),2&t&&u["\u0275\u0275property"]("ngForOf",e.data)("ngForTrackBy",e.trackBy)},directives:[s.sg,s.O5,Iu,kh,Vu],encapsulation:2,changeDetection:0}),t})(),Xu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Ru=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu,Xu,_u]]}),t})(),Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Bu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu]]}),t})(),Hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[[eu,Xu,Au]]}),t})(),Nu=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({imports:[eu,gu,Au,Cu,Eu,_u,Ru,Yu,Xu,Bu,Hu]}),t})();const Wu=[{path:"",children:[{path:"chartjs",component:v},{path:"chartistjs",component:w},{path:"ngxchart",component:(()=>{class t{constructor(){this.range=!1,this.showXAxis=!0,this.showYAxis=!0,this.gradient=!1,this.showLegend=!1,this.showXAxisLabel=!0,this.tooltipDisabled=!1,this.xAxisLabel="Country",this.showYAxisLabel=!0,this.yAxisLabel="GDP Per Capita",this.showGridLines=!0,this.innerPadding=0,this.autoScale=!0,this.timeline=!1,this.barPadding=8,this.groupPadding=0,this.roundDomains=!1,this.maxRadius=10,this.minRadius=3,this.view="",this.showLabels=!0,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.rangeFillOpacity=.15,this.colorScheme={domain:["#1e88e5","#2ECC71","#26c6da","#ffc65d","#d96557","#ba68c8"]},this.schemeType="ordinal",this.curve=S,Object.assign(this,{single:L,multi:k}),this.dateData=C(6,!1),this.dateDataWithRange=C(2,!0)}get dateDataWithOrWithoutRange(){return this.range?this.dateDataWithRange:this.dateData}select(t){console.log("Item clicked",t)}onLegendLabelClick(t){console.log("Legend clicked",t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u["\u0275\u0275defineComponent"]({type:t,selectors:[["app-ngxchart"]],decls:115,vars:143,consts:[["fxLayout","row"],["fxFlex.gt-md","50"],["href","https://swimlane.github.io/ngx-charts/","target","_blank"],[1,"w100"],[1,"chart-container",3,"scheme","schemeType","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","tooltipDisabled","xAxisLabel","yAxisLabel","showGridLines","barPadding","view","roundDomains","select","legendLabelClick"],[1,"chart-container",3,"scheme","schemeType","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","tooltipDisabled","xAxisLabel","yAxisLabel","showGridLines","barPadding","roundDomains","legendLabelClick","select"],[1,"chart-container",3,"scheme","schemeType","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","tooltipDisabled","xAxisLabel","yAxisLabel","showGridLines","barPadding","groupPadding","roundDomains","legendLabelClick","select"],[1,"chart-container",3,"scheme","schemeType","results","gradient","tooltipDisabled","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","barPadding","groupPadding","roundDomains","legendLabelClick","select"],[1,"chart-container",3,"scheme","schemeType","results","legend","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","autoScale","timeline","showGridLines","curve","rangeFillOpacity","roundDomains","tooltipDisabled","legendLabelClick","select"],[1,"chart-container",3,"scheme","schemeType","results","legend","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","autoScale","timeline","showGridLines","roundDomains","curve","tooltipDisabled","legendLabelClick","select"],[1,"chart-container",3,"scheme","schemeType","results","legend","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","timeline","showGridLines","roundDomains","tooltipDisabled","curve","legendLabelClick","select"],[1,"chart-container",3,"scheme","results","legend","explodeSlices","labels","doughnut","arcWidth","gradient","tooltipDisabled","legendLabelClick","select"],[1,"chart-container",3,"scheme","results","gradient","tooltipDisabled","legendLabelClick","select"]],template:function(t,e){1&t&&(u["\u0275\u0275elementStart"](0,"div",0),u["\u0275\u0275elementStart"](1,"div",1),u["\u0275\u0275elementStart"](2,"mat-card"),u["\u0275\u0275elementStart"](3,"mat-card-content"),u["\u0275\u0275elementStart"](4,"mat-card-title"),u["\u0275\u0275text"](5,"Vertical bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](6,"mat-card-subtitle"),u["\u0275\u0275text"](7,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](8,"a",2),u["\u0275\u0275text"](9,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](10,"div",3),u["\u0275\u0275elementStart"](11,"ngx-charts-bar-vertical",4),u["\u0275\u0275listener"]("select",function(t){return e.select(t)})("legendLabelClick",function(t){return e.onLegendLabelClick(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](12,"div",1),u["\u0275\u0275elementStart"](13,"mat-card"),u["\u0275\u0275elementStart"](14,"mat-card-content"),u["\u0275\u0275elementStart"](15,"mat-card-title"),u["\u0275\u0275text"](16,"Horizontal bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](17,"mat-card-subtitle"),u["\u0275\u0275text"](18,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](19,"a",2),u["\u0275\u0275text"](20,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](21,"div",3),u["\u0275\u0275elementStart"](22,"ngx-charts-bar-horizontal",5),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](23,"div",0),u["\u0275\u0275elementStart"](24,"div",1),u["\u0275\u0275elementStart"](25,"mat-card"),u["\u0275\u0275elementStart"](26,"mat-card-content"),u["\u0275\u0275elementStart"](27,"mat-card-title"),u["\u0275\u0275text"](28,"Group Vertical bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](29,"mat-card-subtitle"),u["\u0275\u0275text"](30,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](31,"a",2),u["\u0275\u0275text"](32,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](33,"div",3),u["\u0275\u0275elementStart"](34,"ngx-charts-bar-vertical-2d",6),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](35,"div",1),u["\u0275\u0275elementStart"](36,"mat-card"),u["\u0275\u0275elementStart"](37,"mat-card-content"),u["\u0275\u0275elementStart"](38,"mat-card-title"),u["\u0275\u0275text"](39,"Horizontal bar chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](40,"mat-card-subtitle"),u["\u0275\u0275text"](41,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](42,"a",2),u["\u0275\u0275text"](43,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](44,"div",3),u["\u0275\u0275elementStart"](45,"ngx-charts-bar-horizontal-2d",7),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](46,"div",0),u["\u0275\u0275elementStart"](47,"div",1),u["\u0275\u0275elementStart"](48,"mat-card"),u["\u0275\u0275elementStart"](49,"mat-card-content"),u["\u0275\u0275elementStart"](50,"mat-card-title"),u["\u0275\u0275text"](51,"Line chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](52,"mat-card-subtitle"),u["\u0275\u0275text"](53,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](54,"a",2),u["\u0275\u0275text"](55,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](56,"div",3),u["\u0275\u0275elementStart"](57,"ngx-charts-line-chart",8),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](58,"div",1),u["\u0275\u0275elementStart"](59,"mat-card"),u["\u0275\u0275elementStart"](60,"mat-card-content"),u["\u0275\u0275elementStart"](61,"mat-card-title"),u["\u0275\u0275text"](62,"Area chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](63,"mat-card-subtitle"),u["\u0275\u0275text"](64,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](65,"a",2),u["\u0275\u0275text"](66,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](67,"div",3),u["\u0275\u0275elementStart"](68,"ngx-charts-area-chart",9),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](69,"div",0),u["\u0275\u0275elementStart"](70,"div",1),u["\u0275\u0275elementStart"](71,"mat-card"),u["\u0275\u0275elementStart"](72,"mat-card-content"),u["\u0275\u0275elementStart"](73,"mat-card-title"),u["\u0275\u0275text"](74,"Stacked chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](75,"mat-card-subtitle"),u["\u0275\u0275text"](76,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](77,"a",2),u["\u0275\u0275text"](78,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](79,"div",3),u["\u0275\u0275elementStart"](80,"ngx-charts-area-chart-stacked",10),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](81,"div",1),u["\u0275\u0275elementStart"](82,"mat-card"),u["\u0275\u0275elementStart"](83,"mat-card-content"),u["\u0275\u0275elementStart"](84,"mat-card-title"),u["\u0275\u0275text"](85,"Normalize Area chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](86,"mat-card-subtitle"),u["\u0275\u0275text"](87,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](88,"a",2),u["\u0275\u0275text"](89,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](90,"div",3),u["\u0275\u0275elementStart"](91,"ngx-charts-area-chart-normalized",10),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](92,"div",0),u["\u0275\u0275elementStart"](93,"div",1),u["\u0275\u0275elementStart"](94,"mat-card"),u["\u0275\u0275elementStart"](95,"mat-card-content"),u["\u0275\u0275elementStart"](96,"mat-card-title"),u["\u0275\u0275text"](97,"Pie chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](98,"mat-card-subtitle"),u["\u0275\u0275text"](99,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](100,"a",2),u["\u0275\u0275text"](101,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](102,"div",3),u["\u0275\u0275elementStart"](103,"ngx-charts-pie-chart",11),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](104,"div",1),u["\u0275\u0275elementStart"](105,"mat-card"),u["\u0275\u0275elementStart"](106,"mat-card-content"),u["\u0275\u0275elementStart"](107,"mat-card-title"),u["\u0275\u0275text"](108,"Advanced pie chart"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](109,"mat-card-subtitle"),u["\u0275\u0275text"](110,"Check the document here for getting more info "),u["\u0275\u0275elementStart"](111,"a",2),u["\u0275\u0275text"](112,"Click Here"),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementStart"](113,"div",3),u["\u0275\u0275elementStart"](114,"ngx-charts-advanced-pie-chart",12),u["\u0275\u0275listener"]("legendLabelClick",function(t){return e.onLegendLabelClick(t)})("select",function(t){return e.select(t)}),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"](),u["\u0275\u0275elementEnd"]()),2&t&&(u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.single)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("legend",e.showLegend)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("tooltipDisabled",e.tooltipDisabled)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",e.showGridLines)("barPadding",40)("view",e.view)("roundDomains",e.roundDomains),u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.single)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("legend",e.showLegend)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("tooltipDisabled",e.tooltipDisabled)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",e.showGridLines)("barPadding",20)("roundDomains",e.roundDomains),u["\u0275\u0275advance"](12),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.multi)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("legend",e.showLegend)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("tooltipDisabled",e.tooltipDisabled)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",e.showGridLines)("barPadding",e.barPadding)("groupPadding",20)("roundDomains",e.roundDomains),u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.multi)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("legend",e.showLegend)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",e.showGridLines)("barPadding",e.barPadding)("groupPadding",20)("roundDomains",e.roundDomains),u["\u0275\u0275advance"](12),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.dateDataWithOrWithoutRange)("legend",e.showLegend)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("autoScale",e.autoScale)("timeline",e.timeline)("showGridLines",e.showGridLines)("curve",e.curve)("rangeFillOpacity",e.rangeFillOpacity)("roundDomains",e.roundDomains)("tooltipDisabled",!0),u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.dateData)("legend",e.showLegend)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("autoScale",e.autoScale)("timeline",e.timeline)("showGridLines",e.showGridLines)("roundDomains",e.roundDomains)("curve",e.curve)("tooltipDisabled",e.tooltipDisabled),u["\u0275\u0275advance"](12),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.dateData)("legend",e.showLegend)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("timeline",e.timeline)("showGridLines",e.showGridLines)("roundDomains",e.roundDomains)("tooltipDisabled",e.tooltipDisabled)("curve",e.curve),u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("schemeType",e.schemeType)("results",e.dateData)("legend",e.showLegend)("gradient",e.gradient)("xAxis",e.showXAxis)("yAxis",e.showYAxis)("showXAxisLabel",e.showXAxisLabel)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("timeline",e.timeline)("showGridLines",e.showGridLines)("roundDomains",e.roundDomains)("tooltipDisabled",e.tooltipDisabled)("curve",e.curve),u["\u0275\u0275advance"](12),u["\u0275\u0275property"]("scheme",e.colorScheme)("results",e.single)("legend",e.showLegend)("explodeSlices",e.explodeSlices)("labels",e.showLabels)("doughnut",e.doughnut)("arcWidth",e.arcWidth)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled),u["\u0275\u0275advance"](11),u["\u0275\u0275property"]("scheme",e.colorScheme)("results",e.single)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled))},directives:[d.xw,d.yH,m.a8,m.dn,m.n5,m.$j,yu,xu,bu,vu,Mu,ou,cu,lu,Pu,Ou],styles:[".chart-container[_ngcontent-%COMP%]{display:block;position:relative}.w100[_ngcontent-%COMP%]{width:100%;height:300px;overflow:hidden;display:block}"]}),t})()}]}];let zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=u["\u0275\u0275defineInjector"]({providers:[],imports:[[s.ez,n.Bz.forChild(Wu),r.O,a.JF,c.FormsModule,c.ReactiveFormsModule,h.o9,o.HT,y.f,l.m9,Nu]]}),t})()},69175:function(t){"use strict";t.exports=JSON.parse('{"Bar":{"labels":["Jan","Feb","Mar","Apr","May","Jun"],"series":[[5,4,3,7,5,10],[3,2,9,5,4,6]]},"Line":{"labels":["Monday","Tuesday","Wednesday","Thursday","Friday"],"series":[[12,9,7,8,5],[2,1,3.5,7,3],[1,3,4,5,6]]},"Line2":{"labels":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"series":[[5,5,10,8,7,5,4,null,null,null,10,10,7,8,6,9],[10,15,null,12,null,10,12,15,null,null,12,null,14,null,null,null],[null,null,null,null,3,4,1,3,4,6,7,9,5,null,null,null]]},"Scatter":{"labels":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"series":[[53.761530227932376,55.06077543488965,90.15619763154757,37.945743703232026,90.15064659594809,72.37213982905773,29.242023161826005,10.613377393892765,41.13272180459888,66.89170357483623,85.47173517613665,80.61313435041848,33.86466777842112,6.993834151672074,58.93321826442517,84.4944785171936,66.47863439014286,26.61792342884319,64.7715312645164,66.7721238997995,24.81459377695263,82.09485043326285,94.28939258245515,81.16315118589196,26.285515136087987,94.25034710171474,82.86738500874603,42.275860431799764,7.252221593822195,12.509815755028853,57.592396396889086,16.98227807583916,82.13296667627357,20.7798608815297,1.4886093931434141,27.717128889831557,83.02006467579533,46.825802760236044,4.449951322677559,63.949111152579285,76.2705142938321,92.84217568625859,33.34033701723147,83.32421059421287,30.95015406095809,99.26555827017742,64.73104862164556,58.3205528852039,98.07205383638176,34.217237701943006,76.84029415694194,77.51086205882534],[68.01743447487219,33.569040390627556,55.83518094287856,6.424873491809824,40.24108430485855,12.867529962712322,33.9171424717146,66.13486382709537,75.36042883674916,37.18758127466557,46.080488500245266,40.98286341759507,25.372664387026923,40.063178151024424,73.6495194240123,48.56310577188692,22.903651846539972,91.5635618730181,84.08459591966795,49.153284675642595,34.82239557500657,38.7753190443602,77.57931404198679,78.24594487949813,42.96149738863182,68.87344162290039,73.35891706187205,79.20638493178991,39.862955442611494,67.72254472880542,32.5667298714178,67.8951691474951,68.22845079029227,24.013142038835245,84.77387385278308,81.96540495436318,21.938120212431865,20.591735159801374,44.392082366517926,99.42917256114683,75.80197000496361,44.95928290576234,56.30251437622547,81.39575345403685,46.6480941362678,60.30444929651577,63.904344644822956,96.31525902388087,80.79036620032171,67.94970208668927,81.84914397158013,64.34930133297705],[94.83796449464408,0.05012881656139001,78.03842883107683,86.85066315022306,63.09834842166116,23.82558487142836,95.04013234951407,91.84355248378253,12.28927042529946,91.59027939302398,44.15426456286402,38.40309269293461,3.0323072732378,51.442756807992104,51.067878308530304,68.87925798432126,9.786004373688861,93.42472024399827,7.196590706996409,90.61672585107475,82.64800742042794,29.33983554466535,27.575295787547738,63.76900610636933,44.31691167371892,35.02049600051234,77.91406665575869,9.594366007019817,33.17507518940415,45.94854823450043,6.028395302814493,97.36303808493578,20.735238575670635,11.577295085428618,49.377810037702986,7.984978938697163,81.52380171386066,86.62152122764415,46.81516933597669,72.70055546352265,39.482785893198404,2.1729768023229346,32.730007414228865,11.8384494034782,97.04367174876609,37.87839695714026,96.1605067491887,24.340714355822968,90.92986653306863,1.9182109464024322,36.43773292877359,51.562138311337314],[90.93023971442824,91.24607758668748,83.11135627737995,38.89630350329263,47.48702934796674,83.10718371512166,93.40725921590878,62.65211828434698,76.93458061916239,94.13663459332706,15.47636651231441,93.70144628274673,80.7911280644665,32.06886936152644,6.458421962605865,14.668285135928372,10.700783089925082,46.997088144127886,53.02589740808132,15.662154340561152,94.70275097718405,59.27632659816442,53.88591373783527,21.602789791233846,29.326094253488066,8.159091366607441,52.57892041859127,71.68439221439431,61.773032787481455,43.02319475997418,97.7745443722398,41.77024219267196,32.79576671635134,26.614574588124352,96.60428591791621,68.90454201273897,33.39711159158707,94.56531035270376,83.77269890317353,72.91107164394433,50.31188574983041,54.67801129631369,69.65510719649639,59.96153020907791,50.66882388014429,97.73196339743835,12.936677564924759,30.197501751145396,7.071721221094629,60.85688790258899,51.276925828485446,30.951614223635193]]},"LineWithArea":{"labels":[1,2,3,4,5,6,7,8],"series":[[0,5000,15000,8000,15000,9000,30000,0],[0,3000,5000,2000,8000,1000,5000,0]]},"Bi-PolarBar":{"labels":["W1","W2","W3","W4","W5","W6","W7","W8","W9","W10"],"series":[[1,2,4,8,6,-2,-1,-4,-6,-2]]},"DistributedSeries":{"labels":["XS","S","M","L","XL","XXL","XXXL"],"series":[20,60,120,200,180,20,10]},"Pie":{"series":[20,10,30,40]}}')}}]);