text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("d3-format"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("rxjs")):"function"==typeof define&&define.amd?define("ngx-graph",["@angular/animations","@angular/common","@angular/core","@angular/platform-browser","d3-array","d3-brush","d3-color","d3-force","d3-format","d3-hierarchy","d3-interpolate","d3-scale","d3-selection","d3-shape","d3-time-format","rxjs"],e):"object"==typeof exports?exports["ngx-graph"]=e(require("@angular/animations"),require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("d3-array"),require("d3-brush"),require("d3-color"),require("d3-force"),require("d3-format"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("rxjs")):t["ngx-graph"]=e(t["@angular/animations"],t["@angular/common"],t["@angular/core"],t["@angular/platform-browser"],t["d3-array"],t["d3-brush"],t["d3-color"],t["d3-force"],t["d3-format"],t["d3-hierarchy"],t["d3-interpolate"],t["d3-scale"],t["d3-selection"],t["d3-shape"],t["d3-time-format"],t.rxjs)}("undefined"!=typeof self?self:this,function(d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){return function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="./src/index.ts")}({"./node_modules/@swimlane/ngx-charts/release/index.js":function(t,e,n){var i;"undefined"!=typeof self&&self,i=function(n,i,r,o,s,a,c,u,l,p,h,d,f,g,v,m,y){return function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="./src/index.ts")}({"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/bar-chart/bar-label.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".textDataLabel {\n  font-size: 11px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/base-chart.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".ngx-charts {\n  float: left;\n  overflow: visible; }\n  .ngx-charts .circle,\n  .ngx-charts .bar,\n  .ngx-charts .arc {\n    cursor: pointer; }\n  .ngx-charts .bar.active, .ngx-charts .bar:hover,\n  .ngx-charts .cell.active,\n  .ngx-charts .cell:hover,\n  .ngx-charts .arc.active,\n  .ngx-charts .arc:hover,\n  .ngx-charts .card.active,\n  .ngx-charts .card:hover {\n    opacity: 0.8;\n    -webkit-transition: opacity 100ms ease-in-out;\n    transition: opacity 100ms ease-in-out; }\n  .ngx-charts .bar:focus,\n  .ngx-charts .cell:focus,\n  .ngx-charts .arc:focus,\n  .ngx-charts .card:focus {\n    outline: none; }\n  .ngx-charts g:focus {\n    outline: none; }\n  .ngx-charts .line-series.inactive,\n  .ngx-charts .line-series-range.inactive,\n  .ngx-charts .polar-series-path.inactive,\n  .ngx-charts .polar-series-area.inactive,\n  .ngx-charts .area-series.inactive {\n    -webkit-transition: opacity 100ms ease-in-out;\n    transition: opacity 100ms ease-in-out;\n    opacity: .2; }\n  .ngx-charts .line-highlight {\n    display: none; }\n    .ngx-charts .line-highlight.active {\n      display: block; }\n  .ngx-charts .area {\n    opacity: 0.6; }\n  .ngx-charts .circle:hover {\n    cursor: pointer; }\n  .ngx-charts .label {\n    font-size: 12px;\n    font-weight: normal; }\n  .ngx-charts .tooltip-anchor {\n    fill: black; }\n  .ngx-charts .gridline-path {\n    stroke: #ddd;\n    stroke-width: 1;\n    fill: none; }\n  .ngx-charts .refline-path {\n    stroke: #a8b2c7;\n    stroke-width: 1;\n    stroke-dasharray: 5;\n    stroke-dashoffset: 5; }\n  .ngx-charts .refline-label {\n    font-size: 9px; }\n  .ngx-charts .reference-area {\n    fill-opacity: 0.05;\n    fill: #000; }\n  .ngx-charts .gridline-path-dotted {\n    stroke: #ddd;\n    stroke-width: 1;\n    fill: none;\n    stroke-dasharray: 1, 20;\n    stroke-dashoffset: 3; }\n  .ngx-charts .grid-panel rect {\n    fill: none; }\n  .ngx-charts .grid-panel.odd rect {\n    fill: rgba(0, 0, 0, 0.05); }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/advanced-legend.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".advanced-pie-legend {\n  float: left;\n  position: relative;\n  top: 50%;\n  -webkit-transform: translate(0, -50%);\n          transform: translate(0, -50%); }\n  .advanced-pie-legend .total-value {\n    font-size: 36px; }\n  .advanced-pie-legend .total-label {\n    font-size: 24px;\n    margin-bottom: 19px; }\n  .advanced-pie-legend .legend-items-container {\n    width: 100%; }\n    .advanced-pie-legend .legend-items-container .legend-items {\n      white-space: nowrap;\n      overflow: auto; }\n      .advanced-pie-legend .legend-items-container .legend-items .legend-item {\n        margin-right: 20px;\n        display: inline-block;\n        cursor: pointer; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item:focus {\n          outline: none; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item:hover {\n          color: #000;\n          -webkit-transition: 0.2s;\n          transition: 0.2s; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value {\n          font-size: 24px;\n          margin-top: -6px;\n          margin-left: 11px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label {\n          font-size: 14px;\n          opacity: 0.7;\n          margin-left: 11px;\n          margin-top: -6px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent {\n          font-size: 24px;\n          opacity: 0.7;\n          margin-left: 11px; }\n        .advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color {\n          width: 4px;\n          height: 42px;\n          float: left;\n          margin-right: 7px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/legend.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".chart-legend {\n  display: inline-block;\n  padding: 0;\n  width: auto !important; }\n  .chart-legend .legend-title {\n    white-space: nowrap;\n    overflow: hidden;\n    margin-left: 10px;\n    margin-bottom: 5px;\n    font-size: 14px;\n    font-weight: bold; }\n  .chart-legend ul, .chart-legend li {\n    padding: 0;\n    margin: 0;\n    list-style: none; }\n  .chart-legend .legend-wrap {\n    width: calc(100% - 10px); }\n  .chart-legend .legend-labels {\n    line-height: 85%;\n    list-style: none;\n    text-align: left;\n    float: left;\n    width: 100%;\n    border-radius: 3px;\n    overflow-y: auto;\n    overflow-x: hidden;\n    white-space: nowrap;\n    background: rgba(0, 0, 0, 0.05); }\n  .chart-legend .legend-label {\n    cursor: pointer;\n    font-size: 90%;\n    margin: 8px;\n    color: #AFB7C8; }\n    .chart-legend .legend-label:hover {\n      color: #000;\n      -webkit-transition: 0.2s;\n      transition: 0.2s; }\n    .chart-legend .legend-label .active .legend-label-text {\n      color: #000; }\n  .chart-legend .legend-label-color {\n    display: inline-block;\n    height: 15px;\n    width: 15px;\n    margin-right: 5px;\n    color: #5b646b;\n    border-radius: 3px; }\n  .chart-legend .legend-label-text {\n    display: inline-block;\n    vertical-align: top;\n    line-height: 15px;\n    font-size: 12px;\n    width: calc(100% - 20px);\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    overflow: hidden; }\n  .chart-legend .legend-title-text {\n    vertical-align: bottom;\n    display: inline-block;\n    line-height: 16px;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/scale-legend.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".chart-legend {\n  display: inline-block;\n  padding: 0;\n  width: auto !important; }\n  .chart-legend .scale-legend {\n    text-align: center;\n    display: -webkit-box;\n    display: -ms-flexbox;\n    display: flex;\n    -webkit-box-orient: vertical;\n    -webkit-box-direction: normal;\n        -ms-flex-direction: column;\n            flex-direction: column; }\n  .chart-legend .scale-legend-wrap {\n    display: inline-block;\n    -webkit-box-flex: 1;\n        -ms-flex: 1;\n            flex: 1;\n    width: 30px;\n    border-radius: 5px;\n    margin: 0 auto; }\n  .chart-legend .scale-legend-label {\n    font-size: 12px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/timeline/timeline.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".timeline .brush-background {\n  fill: rgba(0, 0, 0, 0.05); }\n\n.timeline .brush .selection {\n  fill: rgba(0, 0, 0, 0.1);\n  stroke-width: 1px;\n  stroke: #888888; }\n\n.timeline .brush .handle {\n  fill-opacity: 0; }\n\n.timeline .embedded-chart {\n  opacity: 0.6; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/tooltip/tooltip.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".ngx-charts-tooltip-content {\n  position: fixed;\n  border-radius: 3px;\n  z-index: 5000;\n  display: block;\n  font-weight: normal;\n  opacity: 0;\n  pointer-events: none !important; }\n  .ngx-charts-tooltip-content.type-popover {\n    background: #fff;\n    color: #060709;\n    border: 1px solid #72809b;\n    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n    font-size: 13px;\n    padding: 4px; }\n    .ngx-charts-tooltip-content.type-popover .tooltip-caret {\n      position: absolute;\n      z-index: 5001;\n      width: 0;\n      height: 0; }\n      .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left {\n        border-top: 7px solid transparent;\n        border-bottom: 7px solid transparent;\n        border-left: 7px solid #fff; }\n      .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top {\n        border-left: 7px solid transparent;\n        border-right: 7px solid transparent;\n        border-top: 7px solid #fff; }\n      .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right {\n        border-top: 7px solid transparent;\n        border-bottom: 7px solid transparent;\n        border-right: 7px solid #fff; }\n      .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom {\n        border-left: 7px solid transparent;\n        border-right: 7px solid transparent;\n        border-bottom: 7px solid #fff; }\n  .ngx-charts-tooltip-content.type-tooltip {\n    color: #fff;\n    background: rgba(0, 0, 0, 0.75);\n    font-size: 12px;\n    padding: 0 10px;\n    text-align: center;\n    pointer-events: auto; }\n    .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left {\n      border-top: 7px solid transparent;\n      border-bottom: 7px solid transparent;\n      border-left: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top {\n      border-left: 7px solid transparent;\n      border-right: 7px solid transparent;\n      border-top: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right {\n      border-top: 7px solid transparent;\n      border-bottom: 7px solid transparent;\n      border-right: 7px solid rgba(0, 0, 0, 0.75); }\n    .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom {\n      border-left: 7px solid transparent;\n      border-right: 7px solid transparent;\n      border-bottom: 7px solid rgba(0, 0, 0, 0.75); }\n  .ngx-charts-tooltip-content .tooltip-label {\n    display: block;\n    line-height: 1em;\n    padding: 8px 5px 5px 5px;\n    font-size: 1em; }\n  .ngx-charts-tooltip-content .tooltip-val {\n    display: block;\n    font-size: 1.3em;\n    line-height: 1em;\n    padding: 0 5px 8px 5px; }\n  .ngx-charts-tooltip-content .tooltip-caret {\n    position: absolute;\n    z-index: 5001;\n    width: 0;\n    height: 0; }\n  .ngx-charts-tooltip-content.position-right {\n    -webkit-transform: translate3d(10px, 0, 0);\n            transform: translate3d(10px, 0, 0); }\n  .ngx-charts-tooltip-content.position-left {\n    -webkit-transform: translate3d(-10px, 0, 0);\n            transform: translate3d(-10px, 0, 0); }\n  .ngx-charts-tooltip-content.position-top {\n    -webkit-transform: translate3d(0, -10px, 0);\n            transform: translate3d(0, -10px, 0); }\n  .ngx-charts-tooltip-content.position-bottom {\n    -webkit-transform: translate3d(0, 10px, 0);\n            transform: translate3d(0, 10px, 0); }\n  .ngx-charts-tooltip-content.animate {\n    opacity: 1;\n    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;\n    transition: opacity 0.3s, -webkit-transform 0.3s;\n    transition: opacity 0.3s, transform 0.3s;\n    transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s;\n    -webkit-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0);\n    pointer-events: auto; }\n\n.area-tooltip-container {\n  padding: 5px 0;\n  pointer-events: none; }\n\n.tooltip-item {\n  text-align: left;\n  line-height: 1.2em;\n  padding: 5px 0; }\n  .tooltip-item .tooltip-item-color {\n    display: inline-block;\n    height: 12px;\n    width: 12px;\n    margin-right: 5px;\n    color: #5b646b;\n    border-radius: 3px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/force-directed-graph/force-directed-graph.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".force-directed-graph .edge {\n  stroke: #333; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/gauge/gauge.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".gauge .background-arc path {\n  fill: rgba(0, 0, 0, 0.05); }\n\n.gauge .gauge-tick path {\n  stroke: #666; }\n\n.gauge .gauge-tick text {\n  font-size: 12px;\n  fill: #666;\n  font-weight: bold; }\n\n.gauge .gauge-tick-large path {\n  stroke-width: 2px; }\n\n.gauge .gauge-tick-small path {\n  stroke-width: 1px; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/gauge/linear-gauge.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".linear-gauge {\n  cursor: pointer; }\n  .linear-gauge .background-bar path {\n    fill: rgba(0, 0, 0, 0.05); }\n  .linear-gauge .units {\n    fill: #666; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/number-card/card.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,"ngx-charts-number-card .cell .trimmed-label {\n  font-size: 12px;\n  pointer-events: none;\n  overflow: hidden;\n  text-align: left;\n  line-height: 1em; }\n  ngx-charts-number-card .cell .trimmed-label p {\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    width: 100%;\n    padding: 0;\n    margin: 0; }\n\nngx-charts-number-card .cell .value-text {\n  pointer-events: none; }\n\nngx-charts-number-card .number-card.clickable .cell .card, ngx-charts-number-card .number-card.clickable .cell .card-band {\n  cursor: pointer; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/advanced-pie-chart.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".advanced-pie {\n  display: inline-block;\n  float: left; }\n\n.advanced-pie-legend-wrapper {\n  display: inline-block; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/pie-chart.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".pie-label {\n  font-size: 11px; }\n  .pie-label.animation {\n    -webkit-animation: 750ms ease-in fadeIn;\n            animation: 750ms ease-in fadeIn; }\n\n@-webkit-keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n@keyframes fadeIn {\n  from {\n    opacity: 0; }\n  to {\n    opacity: 1; } }\n\n.pie-label-line {\n  stroke-dasharray: 100%; }\n  .pie-label-line.animation {\n    -webkit-animation: 3s linear drawOut;\n            animation: 3s linear drawOut;\n    -webkit-transition: d 750ms;\n    transition: d 750ms; }\n\n@-webkit-keyframes drawOut {\n  from {\n    stroke-dashoffset: 100%; }\n  to {\n    stroke-dashoffset: 0; } }\n\n@keyframes drawOut {\n  from {\n    stroke-dashoffset: 100%; }\n  to {\n    stroke-dashoffset: 0; } }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/pie-grid.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".pie-grid .arc1 {\n  opacity: 0.4; }\n\n.pie-grid .percent-label {\n  font-size: 16px;\n  font-weight: 400; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/polar-chart/polar-chart.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".polar-chart .polar-chart-background {\n  fill: none; }\n\n.polar-chart .radial-gridline-path {\n  stroke-dasharray: 10 10;\n  fill: none; }\n\n.polar-chart .pie-label-line {\n  stroke: #2f3646; }\n\n.polar-charts-series .polar-series-area {\n  pointer-events: none; }\n\n.polar-series-path {\n  pointer-events: none; }\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/tree-map/tree-map.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,".tree-map .treemap-val {\n  font-size: 1.3em;\n  padding-top: 5px;\n  display: inline-block; }\n\n.tree-map .label p {\n  display: table-cell;\n  text-align: center;\n  line-height: 1.2em;\n  vertical-align: middle; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(t,e){t.exports=function(n){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var s;return[n].join("\n")}(t,n);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},s.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&n[o[0]]||(e&&!o[2]?o[2]=e:e&&(o[2]="("+o[2]+") and ("+e+")"),s.push(o))}},s}},"./src/area-chart/area-chart-normalized.component.ts":function(t,e,i){"use strict";i.d(e,"a",function(){return g});var r,o=i("@angular/core"),s=(i.n(o),i("d3-scale")),a=(i.n(s),i("d3-shape")),c=(i.n(a),i("./src/common/view-dimensions.helper.ts")),u=i("./src/common/color.helper.ts"),n=i("./src/common/base-chart.component.ts"),h=i("./src/utils/id.ts"),l=i("./src/common/domain.helper.ts"),p=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.showGridLines=!0,t.curve=a.curveLinear,t.activeEntries=[],t.roundDomains=!1,t.tooltipDisabled=!1,t.activate=new o.EventEmitter,t.deactivate=new o.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.timelineHeight=50,t.timelinePadding=10,t}return p(t,n),t.prototype.update=function(){var l=this;n.prototype.update.call(this),this.dims=Object(c.a)({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}),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(var t=function(t){for(var i=p.xSet[t],e=0,n=0,r=0,o=p.results;r<o.length;r++){(u=(c=o[r]).series.find(function(t){var e=t.name,n=i;return"time"===l.scaleType&&(e=e.valueOf(),n=n.valueOf()),e===n}))&&(n+=u.value)}for(var s=0,a=p.results;s<a.length;s++){var c,u;(u=(c=a[s]).series.find(function(t){var e=t.name,n=i;return"time"===l.scaleType&&(e=e.valueOf(),n=n.valueOf()),e===n}))?(u.d0=e,u.d1=e+u.value,e+=u.value):(u={name:i,value:0,d0:e,d1:e},c.series.push(u)),0<n?(u.d0=100*u.d0/n,u.d1=100*u.d1/n):(u.d0=0,u.d1=0)}},p=this,e=0;e<this.xSet.length;e++)t(e);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Object(h.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},t.prototype.updateTimeline=function(){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]+")")},t.prototype.getXDomain=function(){var t=Object(l.a)(this.results);this.scaleType=this.getScaleType(t);var e=[];if("time"===this.scaleType){var n=Math.min.apply(Math,t),i=Math.max.apply(Math,t);e=[new Date(n),new Date(i)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return i<n?1:n<i?-1:0})}else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)}),e=[n=Math.min.apply(Math,t),i=Math.max.apply(Math,t)],this.xSet=t.slice().sort(function(t,e){return t-e})}else e=t,this.xSet=t;return e},t.prototype.getYDomain=function(){return[0,100]},t.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(s.scaleTime)():"linear"===this.scaleType?n=Object(s.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(s.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},t.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},t.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},t.prototype.isDate=function(t){return t instanceof Date},t.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},t.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},t.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new u.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},d([Object(o.Input)(),f("design:type",Object)],t.prototype,"legend",void 0),d([Object(o.Input)(),f("design:type",String)],t.prototype,"legendTitle",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxis",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxis",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"showXAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"showYAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"timeline",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"gradient",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"showGridLines",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"curve",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"activeEntries",void 0),d([Object(o.Input)(),f("design:type",String)],t.prototype,"schemeType",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"xAxisTicks",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"yAxisTicks",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"roundDomains",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),d([Object(o.Output)(),f("design:type",o.EventEmitter)],t.prototype,"activate",void 0),d([Object(o.Output)(),f("design:type",o.EventEmitter)],t.prototype,"deactivate",void 0),d([Object(o.ContentChild)("tooltipTemplate"),f("design:type",o.TemplateRef)],t.prototype,"tooltipTemplate",void 0),d([Object(o.ContentChild)("seriesTooltipTemplate"),f("design:type",o.TemplateRef)],t.prototype,"seriesTooltipTemplate",void 0),d([Object(o.HostListener)("mouseleave"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],t.prototype,"hideCircles",null),t=d([Object(o.Component)({selector:"ngx-charts-area-chart-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [scaleType]="scaleType"\n              [activeEntries]="activeEntries"\n              [gradient]="gradient"\n              normalized="true"\n              [curve]="curve"\n              [animations]="animations"\n            />\n          </svg:g>\n\n          <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n            <svg:g ngx-charts-tooltip-area\n              [dims]="dims"\n              [xSet]="xSet"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [results]="results"\n              [colors]="colors"\n              [showPercentage]="true"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="seriesTooltipTemplate"\n              (hover)="updateHoveredVertical($event)"\n            />\n\n            <svg:g *ngFor="let series of results">\n              <svg:g ngx-charts-circle-series\n                type="stacked"\n                [xScale]="xScale"\n                [yScale]="yScale"\n                [colors]="colors"\n                [activeEntries]="activeEntries"\n                [data]="series"\n                [scaleType]="scaleType"\n                [visibleValue]="hoveredVertical"\n                [tooltipDisabled]="tooltipDisabled"\n                [tooltipTemplate]="tooltipTemplate"\n                (select)="onClick($event, series)"\n                (activate)="onActivate($event)"\n                (deactivate)="onDeactivate($event)"\n              />\n            </svg:g>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType != \'ordinal\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            normalized="true"\n            [curve]="curve"\n            [animations]="animations"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[i("./src/common/base-chart.component.scss")],encapsulation:o.ViewEncapsulation.None})],t)}(n.a)},"./src/area-chart/area-chart-stacked.component.ts":function(t,e,i){"use strict";i.d(e,"a",function(){return g});var r,o=i("@angular/core"),s=(i.n(o),i("d3-scale")),a=(i.n(s),i("d3-shape")),u=(i.n(a),i("./src/common/view-dimensions.helper.ts")),c=i("./src/common/color.helper.ts"),n=i("./src/common/base-chart.component.ts"),l=i("./src/utils/id.ts"),p=i("./src/common/domain.helper.ts"),h=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.showGridLines=!0,t.curve=a.curveLinear,t.activeEntries=[],t.roundDomains=!1,t.tooltipDisabled=!1,t.activate=new o.EventEmitter,t.deactivate=new o.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.timelineHeight=50,t.timelinePadding=10,t}return h(t,n),t.prototype.update=function(){var a=this;n.prototype.update.call(this),this.dims=Object(u.a)({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}),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(var t=function(t){for(var i=c.xSet[t],e=0,n=0,r=c.results;n<r.length;n++){var o=r[n],s=o.series.find(function(t){var e=t.name,n=i;return"time"===a.scaleType&&(e=e.valueOf(),n=n.valueOf()),e===n});s?(s.d0=e,s.d1=e+s.value,e+=s.value):(s={name:i,value:0,d0:e,d1:e},o.series.push(s))}},c=this,e=0;e<this.xSet.length;e++)t(e);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Object(l.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},t.prototype.updateTimeline=function(){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]+")")},t.prototype.getXDomain=function(){var t=Object(p.a)(this.results);this.scaleType=this.getScaleType(t);var e,n,i=[];return"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)})),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),n=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(i=[new Date(e),new Date(n)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return i<n?1:n<i?-1:0})):"linear"===this.scaleType?(i=[e,n],this.xSet=t.slice().sort(function(t,e){return t-e})):(i=t,this.xSet=t),i},t.prototype.getYDomain=function(){for(var s=this,a=[],t=function(t){for(var i=c.xSet[t],e=0,n=0,r=c.results;n<r.length;n++){var o=r[n].series.find(function(t){var e=t.name,n=i;return"time"===s.scaleType&&(e=e.valueOf(),n=n.valueOf()),e===n});o&&(e+=o.value)}a.push(e)},c=this,e=0;e<this.xSet.length;e++)t(e);return[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,[0].concat(a)),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,a)]},t.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(s.scaleTime)():"linear"===this.scaleType?n=Object(s.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(s.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},t.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},t.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},t.prototype.isDate=function(t){return t instanceof Date},t.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},t.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},t.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},d([Object(o.Input)(),f("design:type",Object)],t.prototype,"legend",void 0),d([Object(o.Input)(),f("design:type",String)],t.prototype,"legendTitle",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxis",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxis",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"showXAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"showYAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxisLabel",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"timeline",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"gradient",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"showGridLines",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"curve",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"activeEntries",void 0),d([Object(o.Input)(),f("design:type",String)],t.prototype,"schemeType",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"xAxisTicks",void 0),d([Object(o.Input)(),f("design:type",Array)],t.prototype,"yAxisTicks",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"roundDomains",void 0),d([Object(o.Input)(),f("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xScaleMin",void 0),d([Object(o.Input)(),f("design:type",Object)],t.prototype,"xScaleMax",void 0),d([Object(o.Input)(),f("design:type",Number)],t.prototype,"yScaleMin",void 0),d([Object(o.Input)(),f("design:type",Number)],t.prototype,"yScaleMax",void 0),d([Object(o.Output)(),f("design:type",o.EventEmitter)],t.prototype,"activate",void 0),d([Object(o.Output)(),f("design:type",o.EventEmitter)],t.prototype,"deactivate",void 0),d([Object(o.ContentChild)("tooltipTemplate"),f("design:type",o.TemplateRef)],t.prototype,"tooltipTemplate",void 0),d([Object(o.ContentChild)("seriesTooltipTemplate"),f("design:type",o.TemplateRef)],t.prototype,"seriesTooltipTemplate",void 0),d([Object(o.HostListener)("mouseleave"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],t.prototype,"hideCircles",null),t=d([Object(o.Component)({selector:"ngx-charts-area-chart-stacked",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [scaleType]="scaleType"\n              [gradient]="gradient"\n              [activeEntries]="activeEntries"\n              stacked="true"\n              [curve]="curve"\n              [animations]="animations"\n            />\n          </svg:g>\n\n          <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n            <svg:g ngx-charts-tooltip-area\n              [dims]="dims"\n              [xSet]="xSet"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [results]="results"\n              [colors]="colors"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="seriesTooltipTemplate"\n              (hover)="updateHoveredVertical($event)"\n            />\n\n            <svg:g *ngFor="let series of results; trackBy:trackBy">\n              <svg:g ngx-charts-circle-series\n                type="stacked"\n                [xScale]="xScale"\n                [yScale]="yScale"\n                [colors]="colors"\n                [activeEntries]="activeEntries"\n                [data]="series"\n                [scaleType]="scaleType"\n                [visibleValue]="hoveredVertical"\n                [tooltipDisabled]="tooltipDisabled"\n                [tooltipTemplate]="tooltipTemplate"\n                (select)="onClick($event, series)"\n                (activate)="onActivate($event)"\n                (deactivate)="onDeactivate($event)"\n              />\n            </svg:g>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType != \'ordinal\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            stacked="true"\n            [curve]="curve"\n            [animations]="animations"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[i("./src/common/base-chart.component.scss")],encapsulation:o.ViewEncapsulation.None})],t)}(n.a)},"./src/area-chart/area-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i,r=n("@angular/core"),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=n("./src/utils/id.ts"),p=n("./src/common/domain.helper.ts"),h=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legendTitle="Legend",t.baseValue="auto",t.showGridLines=!0,t.curve=s.curveLinear,t.activeEntries=[],t.roundDomains=!1,t.tooltipDisabled=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.timelineHeight=50,t.timelinePadding=10,t}return h(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(a.a)({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}),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"+Object(l.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},t.prototype.updateTimeline=function(){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]+")")},t.prototype.getXDomain=function(){var t=Object(p.a)(this.results);this.scaleType=this.getScaleType(t);var e,n,i=[];return"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)})),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),n=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(i=[new Date(e),new Date(n)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return i<n?1:n<i?-1:0})):"linear"===this.scaleType?(i=[e,n],this.xSet=t.slice().sort(function(t,e){return t-e})):(i=t,this.xSet=t),i},t.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.value)||t.push(o.value)}var s=t.slice();return this.autoScale||s.push(0),"auto"!==this.baseValue&&s.push(this.baseValue),[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,s),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,s)]},t.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(o.scaleTime)():"linear"===this.scaleType?n=Object(o.scaleLinear)():"ordinal"===this.scaleType&&(n=Object(o.scalePoint)().padding(.1)),n.range([0,e]).domain(t),this.roundDomains?n.nice():n},t.prototype.getYScale=function(t,e){var n=Object(o.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},t.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},t.prototype.isDate=function(t){return t instanceof Date},t.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},t.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},t.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},d([Object(r.Input)(),f("design:type",Object)],t.prototype,"legend",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"legendTitle",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"state",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xAxis",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yAxis",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"baseValue",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"autoScale",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"showXAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"showYAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"timeline",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"gradient",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"showGridLines",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"curve",void 0),d([Object(r.Input)(),f("design:type",Array)],t.prototype,"activeEntries",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"schemeType",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Array)],t.prototype,"xAxisTicks",void 0),d([Object(r.Input)(),f("design:type",Array)],t.prototype,"yAxisTicks",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"roundDomains",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xScaleMin",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xScaleMax",void 0),d([Object(r.Input)(),f("design:type",Number)],t.prototype,"yScaleMin",void 0),d([Object(r.Input)(),f("design:type",Number)],t.prototype,"yScaleMax",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],t.prototype,"activate",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),d([Object(r.ContentChild)("tooltipTemplate"),f("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),d([Object(r.ContentChild)("seriesTooltipTemplate"),f("design:type",r.TemplateRef)],t.prototype,"seriesTooltipTemplate",void 0),d([Object(r.HostListener)("mouseleave"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],t.prototype,"hideCircles",null),t=d([Object(r.Component)({selector:"ngx-charts-area-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="area-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy">\n            <svg:g ngx-charts-area-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [baseValue]="baseValue"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [gradient]="gradient"\n              [curve]="curve"\n              [animations]="animations"\n            />\n          </svg:g>\n\n          <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n            <svg:g ngx-charts-tooltip-area\n              [dims]="dims"\n              [xSet]="xSet"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [results]="results"\n              [colors]="colors"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="seriesTooltipTemplate"\n              (hover)="updateHoveredVertical($event)"\n            />\n\n            <svg:g *ngFor="let series of results">\n              <svg:g ngx-charts-circle-series\n                [xScale]="xScale"\n                [yScale]="yScale"\n                [colors]="colors"\n                [activeEntries]="activeEntries"\n                [data]="series"\n                [scaleType]="scaleType"\n                [visibleValue]="hoveredVertical"\n                [tooltipDisabled]="tooltipDisabled"\n                [tooltipTemplate]="tooltipTemplate"\n                (select)="onClick($event, series)"\n                (activate)="onActivate($event)"\n                (deactivate)="onDeactivate($event)"\n              />\n            </svg:g>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType != \'ordinal\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [legend]="legend"\n        [scaleType]="scaleType"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-area-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [baseValue]="baseValue"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [gradient]="gradient"\n            [curve]="curve"\n            [animations]="animations"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],t)}(u.a)},"./src/area-chart/area-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("./src/area-chart/area-chart.component.ts")),o=n("./src/area-chart/area-chart-normalized.component.ts"),s=n("./src/area-chart/area-chart-stacked.component.ts"),a=n("./src/area-chart/area-series.component.ts"),c=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return r.a}),n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return s.a}),n.d(e,"e",function(){return a.a});var u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(i.NgModule)({imports:[c.a],declarations:[r.a,o.a,s.a,a.a],exports:[r.a,o.a,s.a,a.a]})],t)}()},"./src/area-chart/area-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),o=(n.n(i),n("d3-shape")),s=(n.n(o),n("./src/utils/sort.ts")),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t,e,n=this;this.updateGradient();var i=function(t){var e=t.name;return n.xScale(e)};this.stacked||this.normalized?(t=Object(o.area)().x(i).y0(function(t,e){return n.yScale(t.d0)}).y1(function(t,e){return n.yScale(t.d1)}),e=Object(o.area)().x(i).y0(function(t){return n.yScale.range()[0]}).y1(function(t){return n.yScale.range()[0]})):(t=Object(o.area)().x(i).y0(function(){return"auto"===n.baseValue?n.yScale.range()[0]:n.yScale(n.baseValue)}).y1(function(t){return n.yScale(t.value)}),e=Object(o.area)().x(i).y0(function(t){return"auto"===n.baseValue?n.yScale.range()[0]:n.yScale(n.baseValue)}).y1(function(t){return"auto"===n.baseValue?n.yScale.range()[0]:n.yScale(n.baseValue)})),t.curve(this.curve),e.curve(this.curve),this.opacity=.8;var r=this.data.series;r="linear"===this.scaleType?Object(s.c)(r,"name"):"time"===this.scaleType?Object(s.b)(r,"name"):Object(s.a)(r,"name","asc",this.xScale.domain()),this.path=t(r),this.startingPath=e(r)},t.prototype.updateGradient=function(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){var t=this.data.series.map(function(t){return t.d0}),e=this.data.series.map(function(t){return t.d1}),n=Math.max.apply(Math,e),i=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(n,i)}else{var r=this.data.series.map(function(t){return t.value});n=Math.max.apply(Math,r);this.gradientStops=this.colors.getLinearGradientStops(n)}else this.hasGradient=!1,this.gradientStops=void 0},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.isInactive=function(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(t){return e.name===t.name})},r([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"baseValue",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"scaleType",void 0),r([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"stacked",void 0),r([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"normalized",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"gradient",void 0),r([Object(i.Input)(),a("design:type",Object)],t.prototype,"curve",void 0),r([Object(i.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),r([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-area-series]",template:'\n    <svg:g ngx-charts-area\n      class="area-series"\n      [data]="data"\n      [path]="path"\n      [fill]="colors.getColor(data.name)"\n      [stops]="gradientStops"\n      [startingPath]="startingPath"\n      [opacity]="opacity"\n      [gradient]="gradient || hasGradient"\n      [animations]="animations"\n      [class.active]="isActive(data)"\n      [class.inactive]="isInactive(data)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/area-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/area-chart/area-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e});n("./src/area-chart/area-chart.component.ts"),n("./src/area-chart/area-chart-normalized.component.ts"),n("./src/area-chart/area-chart-stacked.component.ts"),n("./src/area-chart/area-series.component.ts")},"./src/bar-chart/bar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/bar-chart/bar.component.ts"),s=n("./src/bar-chart/bar-horizontal.component.ts"),a=n("./src/bar-chart/bar-horizontal-2d.component.ts"),c=n("./src/bar-chart/bar-horizontal-normalized.component.ts"),u=n("./src/bar-chart/bar-horizontal-stacked.component.ts"),l=n("./src/bar-chart/bar-vertical.component.ts"),p=n("./src/bar-chart/bar-vertical-2d.component.ts"),h=n("./src/bar-chart/bar-vertical-normalized.component.ts"),d=n("./src/bar-chart/bar-vertical-stacked.component.ts"),f=n("./src/bar-chart/series-horizontal.component.ts"),g=n("./src/bar-chart/series-vertical.component.ts"),v=n("./src/bar-chart/bar-label.component.ts");n.d(e,"g",function(){return v.a}),n.d(e,"b",function(){return o.a}),n.d(e,"d",function(){return s.a}),n.d(e,"c",function(){return a.a}),n.d(e,"e",function(){return c.a}),n.d(e,"f",function(){return u.a}),n.d(e,"i",function(){return l.a}),n.d(e,"h",function(){return p.a}),n.d(e,"j",function(){return h.a}),n.d(e,"k",function(){return d.a}),n.d(e,"l",function(){return f.a}),n.d(e,"m",function(){return g.b});var m=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},y=function(){function t(){}return t=m([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a,c.a,u.a,l.a,p.a,h.a,d.a,v.a,f.a,g.b],exports:[o.a,s.a,a.a,c.a,u.a,l.a,p.a,h.a,d.a,v.a,f.a,g.b]})],t)}()},"./src/bar-chart/bar-horizontal-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.groupPadding=16,t.barPadding=8,t.roundDomains=!1,t.roundEdges=!0,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxWidth={negative:0,positive:0},t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Object(a.a)({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}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=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]+")"},t.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},t.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},t.prototype.getValueScale=function(){var t=Object(s.scaleLinear)().range([0,this.dims.width]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.value)||t.push(o.value)}return[Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.groupTransform=function(t){return"translate(0, "+this.groupScale(t.name)+")"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onDataLabelMaxWidthChanged=function(t,e){var n=this;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(function(){return n.update()})},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"groupPadding",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundEdges",void 0),p([Object(r.Input)(),h("design:type",Number)],t.prototype,"xScaleMax",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showDataLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-horizontal-2d",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-grid-panel-series\n          [xScale]="valueScale"\n          [yScale]="groupScale"\n          [data]="results"\n          [dims]="dims"\n          orient="horizontal">\n        </svg:g>\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="valueScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="groupScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          [yAxisOffset]="dataLabelMaxWidth.negative"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; let index = index; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            [xScale]="valueScale"\n            [activeEntries]="activeEntries"\n            [yScale]="innerScale"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [seriesName]="group.name"\n            [roundEdges]="roundEdges"\n            [animations]="animations"\n            [showDataLabel]="showDataLabel"\n            [dataLabelFormatting]="dataLabelFormatting"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n            (dataLabelWidthChanged)="onDataLabelMaxWidthChanged($event, index)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-horizontal-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(a.a)({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}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){return[0,100]},t.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},t.prototype.getXScale=function(){var t=Object(s.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},t.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-horizontal-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            type="normalized"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [seriesName]="group.name"\n            [animations]="animations"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-horizontal-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxWidth={negative:0,positive:0},t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Object(a.a)({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}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){for(var t=[],e=0,n=0,i=0,r=this.results;i<r.length;i++){for(var o=0,s=0,a=0,c=r[i].series;a<c.length;a++){var u=c[a];u.value<0?o+=u.value:s+=u.value,e=u.value<e?u.value:e,n=u.value>n?u.value:n}t.push(o),t.push(s)}return t.push(e),t.push(n),[Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.getYScale=function(){var t=this.groupDomain.length/(this.dims.height/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.groupDomain)},t.prototype.getXScale=function(){var t=Object(s.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?t.nice():t},t.prototype.groupTransform=function(t){return"translate(0, "+this.yScale(t.name)+")"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onDataLabelMaxWidthChanged=function(t,e){var n=this;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(function(){return n.update()})},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Number)],t.prototype,"xScaleMax",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showDataLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-horizontal-stacked",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          [yAxisOffset]="dataLabelMaxWidth.negative"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; let index = index; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-horizontal\n            type="stacked"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [colors]="colors"\n            [series]="group.series"\n            [activeEntries]="activeEntries"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [seriesName]="group.name"\n            [animations]="animations"\n            [showDataLabel]="showDataLabel"\n            [dataLabelFormatting]="dataLabelFormatting"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n            (dataLabelWidthChanged)="onDataLabelMaxWidthChanged($event, index)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.roundEdges=!0,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxWidth={negative:0,positive:0},t}return u(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=Object(s.a)({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}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?t.nice():t},t.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=this.yDomain.length/(this.dims.height/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.yDomain)},t.prototype.getXDomain=function(){var t=this.results.map(function(t){return t.value});return[this.xScaleMin?Math.min.apply(Math,[this.xScaleMin].concat(t)):Math.min.apply(Math,[0].concat(t)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.getYDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.yDomain:this.xDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};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},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onDataLabelMaxWidthChanged=function(t){var e=this;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(function(){return e.update()})},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],t.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"xAxisTicks",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"yAxisTicks",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"roundEdges",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"xScaleMax",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"xScaleMin",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"showDataLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=l([Object(r.Component)({selector:"ngx-charts-bar-horizontal",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          [yAxisOffset]="dataLabelMaxWidth.negative"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-horizontal\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [series]="results"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [activeEntries]="activeEntries"\n          [roundEdges]="roundEdges"\n          [animations]="animations"\n          [showDataLabel]="showDataLabel"\n          [dataLabelFormatting]="dataLabelFormatting"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n          (dataLabelWidthChanged)="onDataLabelMaxWidthChanged($event)"\n          >\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],t)}(c.a)},"./src/bar-chart/bar-label.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/bar-chart/bar-label.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/bar-chart/bar-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("./src/index.ts")),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.dimensionsChanged=new i.EventEmitter,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.getSize=function(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}},t.prototype.ngAfterViewInit=function(){this.dimensionsChanged.emit(this.getSize())},t.prototype.update=function(){this.valueFormatting?this.formatedValue=this.valueFormatting(this.value):this.formatedValue=Object(r.formatLabel)(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+")")},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"value",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"valueFormatting",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"barX",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"barY",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"barWidth",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"barHeight",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"orientation",void 0),o([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"dimensionsChanged",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-bar-label]",template:'  \n    <svg:text   \n      class="textDataLabel" \n      alignment-baseline="middle"     \n      [attr.text-anchor]="textAnchor"\n      [attr.transform]="transform"\n      [attr.x]="x" \n      [attr.y]="y">\n      {{formatedValue}}     \n    </svg:text>          \n\n  ',styles:[n("./src/bar-chart/bar-label.component.scss")],changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.ElementRef])],t)}()},"./src/bar-chart/bar-vertical-2d.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.scaleType="ordinal",t.showGridLines=!0,t.activeEntries=[],t.groupPadding=16,t.barPadding=8,t.roundDomains=!1,t.roundEdges=!0,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxHeight={negative:0,positive:0},t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Object(a.a)({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}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=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)+")"},t.prototype.onDataLabelMaxHeightChanged=function(t,e){var n=this;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(function(){return n.update()})},t.prototype.getGroupScale=function(){var t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)},t.prototype.getInnerScale=function(){var t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)},t.prototype.getValueScale=function(){var t=Object(s.scaleLinear)().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.value)||t.push(o.value)}return[Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.groupTransform=function(t){return"translate("+this.groupScale(t.name)+", 0)"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"scaleType",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"groupPadding",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundEdges",void 0),p([Object(r.Input)(),h("design:type",Number)],t.prototype,"yScaleMax",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showDataLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-vertical-2d",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-grid-panel-series\n          [xScale]="groupScale"\n          [yScale]="valueScale"\n          [data]="results"\n          [dims]="dims"\n          orient="vertical">\n        </svg:g>\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="groupScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          [xAxisOffset]="dataLabelMaxHeight.negative"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="valueScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-vertical\n          *ngFor="let group of results; let index = index; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)"\n          [activeEntries]="activeEntries"\n          [xScale]="innerScale"\n          [yScale]="valueScale"\n          [colors]="colors"\n          [series]="group.series"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [showDataLabel]="showDataLabel"\n          [dataLabelFormatting]="dataLabelFormatting"\n          [seriesName]="group.name"\n          [roundEdges]="roundEdges"\n          [animations]="animations"\n          (select)="onClick($event, group)"\n          (activate)="onActivate($event, group)"\n          (deactivate)="onDeactivate($event, group)"\n          (dataLabelHeightChanged)="onDataLabelMaxHeightChanged($event, index)"\n        />\n        </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-vertical-normalized.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(a.a)({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}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){return[0,100]},t.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},t.prototype.getYScale=function(){var t=Object(s.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},t.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-vertical-normalized",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-vertical\n            type="normalized"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [seriesName]="group.name"\n            [animations]="animations"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-vertical-stacked.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/view-dimensions.helper.ts")),c=n("./src/common/color.helper.ts"),u=n("./src/common/base-chart.component.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxHeight={negative:0,positive:0},t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Object(a.a)({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}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),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)+")"},t.prototype.getGroupDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getInnerDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){for(var t=[],e=0,n=0,i=0,r=this.results;i<r.length;i++){for(var o=0,s=0,a=0,c=r[i].series;a<c.length;a++){var u=c[a];u.value<0?o+=u.value:s+=u.value,e=u.value<e?u.value:e,n=u.value>n?u.value:n}t.push(o),t.push(s)}return t.push(e),t.push(n),[Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.getXScale=function(){var t=this.groupDomain.length/(this.dims.width/this.barPadding+1);return Object(s.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.groupDomain)},t.prototype.getYScale=function(){var t=Object(s.scaleLinear)().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t},t.prototype.onDataLabelMaxHeightChanged=function(t,e){var n=this;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(function(){return n.update()})},t.prototype.groupTransform=function(t){return"translate("+this.xScale(t.name)+", 0)"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.colors=new c.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name),-1<this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series})||(this.activeEntries=[n].concat(this.activeEntries),this.activate.emit({value:n,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t,e){var n=Object.assign({},t);e&&(n.series=e.name);var i=this.activeEntries.findIndex(function(t){return t.name===n.name&&t.value===n.value&&t.series===n.series});this.activeEntries.splice(i,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:n,entries:this.activeEntries})},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxis",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showXAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"showYAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisLabel",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"gradient",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showGridLines",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"schemeType",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"xAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"yAxisTicks",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"barPadding",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"roundDomains",void 0),p([Object(r.Input)(),h("design:type",Number)],t.prototype,"yScaleMax",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"showDataLabel",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=p([Object(r.Component)({selector:"ngx-charts-bar-vertical-stacked",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          [xAxisOffset]="dataLabelMaxHeight.negative"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g\n          *ngFor="let group of results; let index = index; trackBy:trackBy"\n          [@animationState]="\'active\'"\n          [attr.transform]="groupTransform(group)">\n          <svg:g ngx-charts-series-vertical\n            type="stacked"\n            [xScale]="xScale"\n            [yScale]="yScale"\n            [activeEntries]="activeEntries"\n            [colors]="colors"\n            [series]="group.series"\n            [dims]="dims"\n            [gradient]="gradient"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [showDataLabel]="showDataLabel"\n            [dataLabelFormatting]="dataLabelFormatting"\n            [seriesName]="group.name"\n            [animations]="animations"\n            (select)="onClick($event, group)"\n            (activate)="onActivate($event, group)"\n            (deactivate)="onDeactivate($event, group)"\n            (dataLabelHeightChanged)="onDataLabelMaxHeightChanged($event, index)"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1,transform:"*"}),Object(o.animate)(500,Object(o.style)({opacity:0,transform:"scale(0)"}))])])]})],t)}(u.a)},"./src/bar-chart/bar-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("./src/common/view-dimensions.helper.ts")),a=n("./src/common/color.helper.ts"),c=n("./src/common/base-chart.component.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.barPadding=8,t.roundDomains=!1,t.roundEdges=!0,t.showDataLabel=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxHeight={negative:0,positive:0},t}return u(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Object(s.a)({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}),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)+")"},t.prototype.getXScale=function(){this.xDomain=this.getXDomain();var t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Object(o.scaleBand)().rangeRound([0,this.dims.width]).paddingInner(t).domain(this.xDomain)},t.prototype.getYScale=function(){this.yDomain=this.getYDomain();var t=Object(o.scaleLinear)().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t},t.prototype.getXDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getYDomain=function(){var t=this.results.map(function(t){return t.value});return[this.yScaleMin?Math.min.apply(Math,[this.yScaleMin].concat(t)):Math.min.apply(Math,[0].concat(t)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(t)):Math.max.apply(Math,t)]},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new a.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onDataLabelMaxHeightChanged=function(t){var e=this;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(function(){return e.update()})},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},l([Object(r.Input)(),p("design:type",Object)],t.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxis",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"showXAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"showYAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxisLabel",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"showGridLines",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"schemeType",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"xAxisTicks",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"yAxisTicks",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"barPadding",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"roundDomains",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"roundEdges",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"yScaleMax",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"yScaleMin",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"showDataLabel",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=l([Object(r.Component)({selector:"ngx-charts-bar-vertical",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="bar-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          [xAxisOffset]="dataLabelMaxHeight.negative"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-series-vertical\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [series]="results"\n          [dims]="dims"\n          [gradient]="gradient"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [showDataLabel]="showDataLabel"\n          [dataLabelFormatting]="dataLabelFormatting"\n          [activeEntries]="activeEntries"\n          [roundEdges]="roundEdges"\n          [animations]="animations"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n          (select)="onClick($event)"\n          (dataLabelHeightChanged)="onDataLabelMaxHeightChanged($event)"\n          >          \n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None})],t)}(c.a)},"./src/bar-chart/bar.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("d3-selection")),o=(n.n(r),n("./src/common/shape.helper.ts")),s=n("./src/utils/id.ts"),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Object(s.a)().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var t=Object(r.select)(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]},t.prototype.getStartingPath=function(){if(!this.animations)return this.getPath();var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Object(o.a)(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(o.a)(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=Object(o.a)(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=Object(o.a)(this.x,this.y,1,this.height,0,this.edges)),t},t.prototype.getPath=function(){var t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges)):t=Object(o.a)(this.x,this.y,this.width,this.height,e,this.edges),t},t.prototype.getRadius=function(){var t=0;return this.roundEdges&&5<this.height&&5<this.width&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t},t.prototype.getStartOpacity=function(){return this.roundEdges?.2:.5},Object.defineProperty(t.prototype,"edges",{get:function(){var t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=0<this.data.value?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=0<this.data.value?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"fill",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"width",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"height",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"x",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"y",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"orientation",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"roundEdges",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"offset",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"isActive",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"stops",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),a([Object(i.HostListener)("mouseenter"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"onMouseEnter",null),a([Object(i.HostListener)("mouseleave"),c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=a([Object(i.Component)({selector:"g[ngx-charts-bar]",template:'\n    <svg:defs *ngIf="hasGradient">\n      <svg:g ngx-charts-svg-linear-gradient\n        [orientation]="orientation"\n        [name]="gradientId"\n        [stops]="gradientStops"\n      />\n    </svg:defs>\n    <svg:path\n      class="bar"\n      stroke="none"\n      [class.active]="isActive"\n      [attr.d]="path"\n      [attr.fill]="hasGradient ? gradientFill : fill"\n      (click)="select.emit(data)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[i.ElementRef])],t)}()},"./src/bar-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e}),n.d(e,"f",function(){return i.f}),n.d(e,"g",function(){return i.g}),n.d(e,"h",function(){return i.h}),n.d(e,"i",function(){return i.i}),n.d(e,"j",function(){return i.j}),n.d(e,"k",function(){return i.k}),n.d(e,"m",function(){return i.l}),n.d(e,"n",function(){return i.m});n("./src/bar-chart/bar.component.ts"),n("./src/bar-chart/bar-horizontal.component.ts"),n("./src/bar-chart/bar-horizontal-2d.component.ts"),n("./src/bar-chart/bar-horizontal-normalized.component.ts"),n("./src/bar-chart/bar-horizontal-stacked.component.ts"),n("./src/bar-chart/series-horizontal.component.ts"),n("./src/bar-chart/bar-vertical.component.ts"),n("./src/bar-chart/bar-vertical-2d.component.ts"),n("./src/bar-chart/bar-vertical-normalized.component.ts"),n("./src/bar-chart/bar-vertical-stacked.component.ts");var r=n("./src/bar-chart/series-vertical.component.ts");n.d(e,"l",function(){return r.a})},"./src/bar-chart/series-horizontal.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),g=(n.n(r),n("./src/common/label.helper.ts")),v=n("./src/bar-chart/series-vertical.component.ts"),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.barsForDataLabels=[],this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.dataLabelWidthChanged=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var l=this;this.updateTooltipSettings();var p,h,d=((t={})[v.a.positive]=0,t[v.a.negative]=0,t);p=v.a.positive,"normalized"===this.type&&(h=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0));var t,f=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(function(t,e){var n=t.value,i=t.name,r=Object(g.a)(i),o=l.roundEdges;p=0<n?v.a.positive:v.a.negative;var s={value:n,label:i,roundEdges:o,data:t,formattedLabel:r};if(s.height=l.yScale.bandwidth(),"standard"===l.type)s.width=Math.abs(l.xScale(n)-l.xScale(f)),s.x=n<0?l.xScale(n):l.xScale(f),s.y=l.yScale(i);else if("stacked"===l.type){var a=(c=d[p])+n;d[p]+=n,s.width=l.xScale(a)-l.xScale(c),s.x=l.xScale(c),s.y=0,s.offset0=c,s.offset1=a}else if("normalized"===l.type){var c;a=(c=d[p])+n;d[p]+=n,0<h?(c=100*c/h,a=100*a/h):a=c=0,s.width=l.xScale(a)-l.xScale(c),s.x=l.xScale(c),s.y=0,s.offset0=c,n=((s.offset1=a)-c).toFixed(2)+"%"}"ordinal"===l.colors.scaleType?s.color=l.colors.getColor(i):"standard"===l.type?(s.color=l.colors.getColor(n),s.gradientStops=l.colors.getLinearGradientStops(n)):(s.color=l.colors.getColor(s.offset1),s.gradientStops=l.colors.getLinearGradientStops(s.offset1,s.offset0));var u=r;return l.seriesName&&(u=l.seriesName+" • "+r,s.data.series=l.seriesName),s.tooltipText=l.tooltipDisabled?void 0:'\n        <span class="tooltip-label">'+u+'</span>\n        <span class="tooltip-val">'+n.toLocaleString()+"</span>\n      ",s}),this.updateDataLabels()},t.prototype.updateDataLabels=function(){var n=this;if("stacked"===this.type){this.barsForDataLabels=[];var t={};t.series=this.seriesName;var e=this.series.map(function(t){return t.value}).reduce(function(t,e){return 0<e?t+e:t},0),i=this.series.map(function(t){return t.value}).reduce(function(t,e){return e<0?t+e:t},0);t.total=e+i,t.x=0,(t.y=0)<t.total?t.width=this.xScale(e):t.width=this.xScale(i),t.height=this.yScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(function(t){var e={};return e.series=n.seriesName?n.seriesName:t.name,e.total=t.value,e.x=n.xScale(0),e.y=n.yScale(t.name),e.width=n.xScale(e.total)-n.xScale(0),e.height=n.yScale.bandwidth(),e})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name&&e.series===t.series})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.trackDataLabelBy=function(t,e){return t+"#"+e.series+"#"+e.total},t.prototype.click=function(t){this.select.emit(t)},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"type",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"series",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"gradient",void 0),o([Object(i.Input)(),s("design:type",Array)],t.prototype,"activeEntries",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"seriesName",void 0),o([Object(i.Input)(),s("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"roundEdges",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"showDataLabel",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"activate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"deactivate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"dataLabelWidthChanged",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-series-horizontal]",template:'\n    <svg:g ngx-charts-bar\n      *ngFor="let bar of bars; trackBy:trackBy"\n      [@animationState]="\'active\'"\n      [width]="bar.width"\n      [height]="bar.height"\n      [x]="bar.x"\n      [y]="bar.y"\n      [fill]="bar.color"\n      [stops]="bar.gradientStops"\n      [data]="bar.data"\n      [orientation]="\'horizontal\'"\n      [roundEdges]="bar.roundEdges"\n      (select)="click($event)"\n      [gradient]="gradient"\n      [isActive]="isActive(bar.data)"\n      [animations]="animations"\n      (activate)="activate.emit($event)"\n      (deactivate)="deactivate.emit($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="tooltipPlacement"\n      [tooltipType]="tooltipType"\n      [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n      [tooltipTemplate]="tooltipTemplate"\n      [tooltipContext]="bar.data">\n    </svg:g>\n    <svg:g *ngIf="showDataLabel">\n      <svg:g ngx-charts-bar-label *ngFor="let b of barsForDataLabels; let i = index; trackBy:trackDataLabelBy"         \n        [barX]="b.x"\n        [barY]="b.y"\n        [barWidth]="b.width"\n        [barHeight]="b.height"\n        [value]="b.total"\n        [valueFormatting]="dataLabelFormatting"\n        [orientation]="\'horizontal\'"\n        (dimensionsChanged)="dataLabelWidthChanged.emit({size:$event, index:i})"      \n      />\n    </svg:g> \n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)(":leave",[Object(r.style)({opacity:1}),Object(r.animate)(500,Object(r.style)({opacity:0}))])])]})],t)}()},"./src/bar-chart/series-vertical.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return c});var v,i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),m=(n.n(o),n("./src/common/label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};(i=v||(v={})).positive="positive",i.negative="negative";var c=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.select=new r.EventEmitter,this.activate=new r.EventEmitter,this.deactivate=new r.EventEmitter,this.dataLabelHeightChanged=new r.EventEmitter,this.barsForDataLabels=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var l,p=this;this.updateTooltipSettings(),this.series.length&&(l=this.xScale.bandwidth());var h,t,d=Math.max(this.yScale.domain()[0],0),f=((t={})[v.positive]=0,t[v.negative]=0,t),g=v.positive;"normalized"===this.type&&(h=this.series.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)),this.bars=this.series.map(function(t,e){var n=t.value,i=t.name,r=Object(m.a)(i),o=p.roundEdges;g=0<n?v.positive:v.negative;var s={value:n,label:i,roundEdges:o,data:t,width:l,formattedLabel:r,height:0,x:0,y:0};if("standard"===p.type)s.height=Math.abs(p.yScale(n)-p.yScale(d)),s.x=p.xScale(i),s.y=n<0?p.yScale(0):p.yScale(n);else if("stacked"===p.type){var a=(c=f[g])+n;f[g]+=n,s.height=p.yScale(c)-p.yScale(a),s.x=0,s.y=p.yScale(a),s.offset0=c,s.offset1=a}else if("normalized"===p.type){var c;a=(c=f[g])+n;f[g]+=n,0<h?(c=100*c/h,a=100*a/h):a=c=0,s.height=p.yScale(c)-p.yScale(a),s.x=0,s.y=p.yScale(a),s.offset0=c,n=((s.offset1=a)-c).toFixed(2)+"%"}"ordinal"===p.colors.scaleType?s.color=p.colors.getColor(i):"standard"===p.type?(s.color=p.colors.getColor(n),s.gradientStops=p.colors.getLinearGradientStops(n)):(s.color=p.colors.getColor(s.offset1),s.gradientStops=p.colors.getLinearGradientStops(s.offset1,s.offset0));var u=r;return p.seriesName&&(u=p.seriesName+" • "+r,s.data.series=p.seriesName),s.tooltipText=p.tooltipDisabled?void 0:'\n        <span class="tooltip-label">'+u+'</span>\n        <span class="tooltip-val">'+n.toLocaleString()+"</span>\n      ",s}),this.updateDataLabels()},t.prototype.updateDataLabels=function(){var n=this;if("stacked"===this.type){this.barsForDataLabels=[];var t={};t.series=this.seriesName;var e=this.series.map(function(t){return t.value}).reduce(function(t,e){return 0<e?t+e:t},0),i=this.series.map(function(t){return t.value}).reduce(function(t,e){return e<0?t+e:t},0);t.total=e+i,t.x=0,(t.y=0)<t.total?t.height=this.yScale(e):t.height=this.yScale(i),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(function(t){var e={};return e.series=n.seriesName?n.seriesName:t.name,e.total=t.value,e.x=n.xScale(t.name),e.y=n.yScale(0),e.height=n.yScale(e.total)-n.yScale(0),e.width=n.xScale.bandwidth(),e})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name&&e.series===t.series})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},t.prototype.trackDataLabelBy=function(t,e){return t+"#"+e.series+"#"+e.total},s([Object(r.Input)(),a("design:type",Object)],t.prototype,"dims",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"type",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"series",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"xScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"yScale",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(r.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(r.Input)(),a("design:type",String)],t.prototype,"seriesName",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(r.Input)(),a("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"roundEdges",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"showDataLabel",void 0),s([Object(r.Input)(),a("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),s([Object(r.Output)(),a("design:type",Object)],t.prototype,"dataLabelHeightChanged",void 0),t=s([Object(r.Component)({selector:"g[ngx-charts-series-vertical]",template:'\n    <svg:g ngx-charts-bar\n      *ngFor="let bar of bars; trackBy: trackBy"\n      [@animationState]="\'active\'"\n      [@.disabled]="!animations"\n      [width]="bar.width"\n      [height]="bar.height"\n      [x]="bar.x"\n      [y]="bar.y"\n      [fill]="bar.color"\n      [stops]="bar.gradientStops"\n      [data]="bar.data"\n      [orientation]="\'vertical\'"\n      [roundEdges]="bar.roundEdges"\n      [gradient]="gradient"\n      [isActive]="isActive(bar.data)"\n      (select)="onClick($event)"\n      (activate)="activate.emit($event)"\n      (deactivate)="deactivate.emit($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="tooltipPlacement"\n      [tooltipType]="tooltipType"\n      [tooltipTitle]="tooltipTemplate ? undefined : bar.tooltipText"\n      [tooltipTemplate]="tooltipTemplate"\n      [tooltipContext]="bar.data"\n      [animations]="animations">\n    </svg:g>\n    <svg:g *ngIf="showDataLabel">\n      <svg:g ngx-charts-bar-label *ngFor="let b of barsForDataLabels; let i = index; trackBy:trackDataLabelBy"         \n        [barX]="b.x"\n        [barY]="b.y"\n        [barWidth]="b.width"\n        [barHeight]="b.height"\n        [value]="b.total"\n        [valueFormatting]="dataLabelFormatting"\n        [orientation]="\'vertical\'"\n        (dimensionsChanged)="dataLabelHeightChanged.emit({size:$event, index:i})"\n      />\n    </svg:g> \n  ',changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}()},"./src/bubble-chart/bubble-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("./src/common/base-chart.component.ts")),c=n("./src/common/view-dimensions.helper.ts"),u=n("./src/common/color.helper.ts"),l=n("./src/bubble-chart/bubble-chart.utils.ts"),p=n("./src/utils/id.ts"),h=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.showGridLines=!0,t.legend=!1,t.legendTitle="Legend",t.xAxis=!0,t.yAxis=!0,t.roundDomains=!1,t.maxRadius=10,t.minRadius=3,t.schemeType="ordinal",t.legendPosition="right",t.tooltipDisabled=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.scaleType="linear",t.margin=[10,20,10,20],t.bubblePadding=[0,0,0,0],t.xAxisHeight=0,t.yAxisWidth=0,t.activeEntries=[],t}return h(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(c.a)({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}),this.seriesDomain=this.results.map(function(t){return t.name}),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform="translate("+this.dims.xOffset+","+this.margin[0]+")";var t="ordinal"===this.schemeType?this.seriesDomain:this.rDomain;this.colors=new u.a(this.scheme,this.schemeType,t,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions(),this.clipPathId="clip"+Object(p.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},t.prototype.hideCircles=function(){this.deactivateAll()},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.getBubblePadding=function(){for(var t=0,e=0,n=this.dims.height,i=this.dims.width,r=0,o=this.data;r<o.length;r++)for(var s=0,a=o[r].series;s<a.length;s++){var c=a[s],u=this.rScale(c.r),l="linear"===this.xScaleType?this.xScale(Number(c.x)):this.xScale(c.x),p="linear"===this.yScaleType?this.yScale(Number(c.y)):this.yScale(c.y);e=Math.max(u-l,e),t=Math.max(u-p,t),n=Math.max(p+u,n),i=Math.max(l+u,i)}return[t,i=Math.max(i-this.dims.width,0),n=Math.max(n-this.dims.height,0),e]},t.prototype.setScales=function(){var t=this.dims.width;void 0===this.xScaleMin&&void 0===this.xScaleMax&&(t-=this.bubblePadding[1]);var e=this.dims.height;void 0===this.yScaleMin&&void 0===this.yScaleMax&&(e-=this.bubblePadding[2]),this.xScale=this.getXScale(this.xDomain,t),this.yScale=this.getYScale(this.yDomain,e)},t.prototype.getYScale=function(t,e){return Object(l.b)(t,[e,this.bubblePadding[0]],this.yScaleType,this.roundDomains)},t.prototype.getXScale=function(t,e){return Object(l.b)(t,[this.bubblePadding[3],e],this.xScaleType,this.roundDomains)},t.prototype.getRScale=function(t,e){var n=Object(s.scaleLinear)().range(e).domain(t);return this.roundDomains?n.nice():n},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.rDomain,t.colors=this.colors.scale),t},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.x)||t.push(o.x)}return this.xScaleType=Object(l.c)(t),Object(l.a)(t,this.xScaleType,this.autoScale,this.xScaleMin,this.xScaleMax)},t.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.y)||t.push(o.y)}return this.yScaleType=Object(l.c)(t),Object(l.a)(t,this.yScaleType,this.autoScale,this.yScaleMin,this.yScaleMax)},t.prototype.getRDomain=function(){for(var t=1/0,e=-1/0,n=0,i=this.results;n<i.length;n++)for(var r=0,o=i[n].series;r<o.length;r++){var s=o[r],a=Number(s.r)||1;t=Math.min(t,a),e=Math.max(e,a)}return[t,e]},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},t.prototype.trackBy=function(t,e){return e.name},d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"showGridLines",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"legend",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"legendTitle",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"xAxis",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"yAxis",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"showXAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"showYAxisLabel",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"xAxisLabel",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"yAxisLabel",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),d([Object(r.Input)(),f("design:type",Array)],t.prototype,"xAxisTicks",void 0),d([Object(r.Input)(),f("design:type",Array)],t.prototype,"yAxisTicks",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"roundDomains",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"maxRadius",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"minRadius",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"autoScale",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"schemeType",void 0),d([Object(r.Input)(),f("design:type",String)],t.prototype,"legendPosition",void 0),d([Object(r.Input)(),f("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xScaleMin",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"xScaleMax",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yScaleMin",void 0),d([Object(r.Input)(),f("design:type",Object)],t.prototype,"yScaleMax",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],t.prototype,"activate",void 0),d([Object(r.Output)(),f("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),d([Object(r.ContentChild)("tooltipTemplate"),f("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),d([Object(r.HostListener)("mouseleave"),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],t.prototype,"hideCircles",null),t=d([Object(r.Component)({selector:"ngx-charts-bubble-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [activeEntries]="activeEntries"\n      [legendOptions]="legendOptions"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="bubble-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [showGridLines]="showGridLines"\n          [dims]="dims"\n          [xScale]="xScale"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)"/>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [showGridLines]="showGridLines"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)"/>\n        <svg:rect\n          class="bubble-chart-area"\n          x="0"\n          y="0"\n          [attr.width]="dims.width"\n          [attr.height]="dims.height"\n          style="fill: rgb(255, 0, 0); opacity: 0; cursor: \'auto\';"\n          (mouseenter)="deactivateAll()"\n        />\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of data; trackBy:trackBy" [@animationState]="\'active\'">\n            <svg:g ngx-charts-bubble-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [rScale]="rScale"\n              [xScaleType]="xScaleType"\n              [yScaleType]="yScaleType"\n              [xAxisLabel]="xAxisLabel"\n              [yAxisLabel]="yAxisLabel"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="tooltipTemplate"\n              (select)="onClick($event, series)"\n              (activate)="onActivate($event)"\n              (deactivate)="onDeactivate($event)" />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],changeDetection:r.ChangeDetectionStrategy.OnPush,encapsulation:r.ViewEncapsulation.None,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}(a.a)},"./src/bubble-chart/bubble-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/bubble-chart/bubble-chart.component.ts"),s=n("./src/bubble-chart/bubble-series.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"c",function(){return s.a});var a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=function(){function t(){}return t=a([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a],exports:[o.a,s.a]})],t)}()},"./src/bubble-chart/bubble-chart.utils.ts":function(t,e,n){"use strict";e.c=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];s(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},e.a=function(t,e,n,i,r){var o=[];"linear"===e&&(t=t.map(function(t){return Number(t)}),n||t.push(0));if("time"===e||"linear"===e){var s=i||Math.min.apply(Math,t),a=r||Math.max.apply(Math,t);o=[s,a]}else o=t;return o},e.b=function(t,e,n,i){var r;"time"===n?r=Object(o.scaleTime)().range(e).domain(t):"linear"===n?(r=Object(o.scaleLinear)().range(e).domain(t),i&&(r=r.nice())):"ordinal"===n&&(r=Object(o.scalePoint)().range([e[0],e[1]]).domain(t));return r};var o=n("d3-scale");n.n(o);function s(t){return t instanceof Date}},"./src/bubble-chart/bubble-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),f=(n.n(r),n("./src/common/label.helper.ts")),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circles=this.getCircles()},t.prototype.getCircles=function(){var h=this,d=this.data.name;return this.data.series.map(function(t,e){if(void 0!==t.y&&void 0!==t.x){var n=t.y,i=t.x,r=t.r,o=h.rScale(r||1),s=Object(f.a)(t.name),a="linear"===h.xScaleType?h.xScale(Number(i)):h.xScale(i),c="linear"===h.yScaleType?h.yScale(Number(n)):h.yScale(n),u="linear"===h.colors.scaleType?h.colors.getColor(r):h.colors.getColor(d),l=!h.activeEntries.length||h.isActive({name:d}),p=l?1:.3;return{data:{series:d,name:t.name,value:t.y,x:t.x,radius:t.r},x:i,y:n,r:r,classNames:["circle-data-"+e],value:n,label:i,cx:a,cy:c,radius:o,tooltipLabel:s,color:u,opacity:p,seriesName:d,isActive:l,transform:"translate("+a+","+c+")"}}}).filter(function(t){return void 0!==t})},t.prototype.getTooltipText=function(t){var e=void 0!==t.r,n=t.tooltipLabel&&t.tooltipLabel.length,i=t.seriesName&&t.seriesName.length,r=e?Object(f.a)(t.r):"",o=this.xAxisLabel&&""!==this.xAxisLabel?this.xAxisLabel+":":"",s=this.yAxisLabel&&""!==this.yAxisLabel?this.yAxisLabel+":":"",a=Object(f.a)(t.x),c=Object(f.a)(t.y),u=i&&n?t.seriesName+" • "+t.tooltipLabel:t.seriesName+t.tooltipLabel;return"\n      "+(i||n?'<span class="tooltip-label">'+u+"</span>":"")+'\n      <span class="tooltip-label">\n        <label>'+o+"</label> "+a+"<br />\n        <label>"+s+"</label> "+c+'\n      </span>\n      <span class="tooltip-val">\n        '+r+"\n      </span>\n    "},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.isVisible=function(t){return 0<this.activeEntries.length?this.isActive({name:t.seriesName}):0!==t.opacity},t.prototype.activateCircle=function(t){t.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(t){t.barVisible=!1,this.deactivate.emit({name:this.data.name})},t.prototype.trackBy=function(t,e){return e.data.series+" "+e.data.name},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"rScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScaleType",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScaleType",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"visibleValue",void 0),o([Object(i.Input)(),s("design:type",Array)],t.prototype,"activeEntries",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"xAxisLabel",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"yAxisLabel",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(i.Input)(),s("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"activate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"deactivate",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-bubble-series]",template:'\n    <svg:g *ngFor="let circle of circles; trackBy: trackBy">\n      <svg:g [attr.transform]="circle.transform">\n        <svg:g ngx-charts-circle\n          [@animationState]="\'active\'"\n          class="circle"\n          [cx]="0"\n          [cy]="0"\n          [r]="circle.radius"\n          [fill]="circle.color"\n          [style.opacity]="circle.opacity"\n          [class.active]="circle.isActive"\n          [pointerEvents]="\'all\'"\n          [data]="circle.value"\n          [classNames]="circle.classNames"\n          (select)="onClick($event, circle.label)"\n          (activate)="activateCircle(circle)"\n          (deactivate)="deactivateCircle(circle)"\n          ngx-tooltip\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipPlacement]="\'top\'"\n          [tooltipType]="\'tooltip\'"\n          [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(circle)"\n          [tooltipTemplate]="tooltipTemplate"\n          [tooltipContext]="circle.data"\n        />\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)(":enter",[Object(r.style)({opacity:0,transform:"scale(0)"}),Object(r.animate)(250,Object(r.style)({opacity:1,transform:"scale(1)"}))])])]})],t)}()},"./src/bubble-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/bubble-chart/bubble-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c});n("./src/bubble-chart/bubble-chart.component.ts"),n("./src/bubble-chart/bubble-series.component.ts")},"./src/common/area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("d3-selection")),o=(n.n(r),n("./src/utils/id.ts")),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new i.EventEmitter,this.initialized=!1,this.hasGradient=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Object(o.a)().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var t=Object(r.select)(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"path",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"startingPath",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"fill",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"opacity",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"startOpacity",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"endOpacity",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"activeLabel",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(i.Input)(),a("design:type",Array)],t.prototype,"stops",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-area]",template:'\n    <svg:defs *ngIf="gradient">\n      <svg:g ngx-charts-svg-linear-gradient\n        orientation="vertical"\n        [name]="gradientId"\n        [stops]="gradientStops"\n      />\n    </svg:defs>\n    <svg:path\n      class="area"\n      [attr.d]="areaPath"\n      [attr.fill]="gradient ? gradientFill : fill"\n      [style.opacity]="opacity"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[i.ElementRef])],t)}()},"./src/common/axes/axes.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),r=(n.n(i),n("./src/common/axes/axis-label.component.ts")),o=n("./src/common/axes/x-axis.component.ts"),s=n("./src/common/axes/x-axis-ticks.component.ts"),a=n("./src/common/axes/y-axis.component.ts"),c=n("./src/common/axes/y-axis-ticks.component.ts"),u=n("@angular/common"),l=(n.n(u),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),p=function(){function t(){}return t=l([Object(i.NgModule)({imports:[u.CommonModule],declarations:[r.a,o.a,s.a,a.a,c.a],exports:[r.a,o.a,s.a,a.a,c.a]})],t)}()},"./src/common/axes/axis-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"orient",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"label",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"offset",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"height",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-axis-label]",template:'\n    <svg:text\n      [attr.stroke-width]="strokeWidth"\n      [attr.x]="x"\n      [attr.y]="y"\n      [attr.text-anchor]="textAnchor"\n      [attr.transform]="transform">\n      {{label}}\n    </svg:text>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[i.ElementRef])],t)}()},"./src/common/axes/ticks.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){if(t.length>e){for(var n=[],i=Math.floor(t.length/e),r=0;r<t.length;r++)r%i==0&&n.push(t[r]);t=n}return t}},"./src/common/axes/x-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("./src/common/trim-label.helper.ts")),o=n("./src/common/axes/ticks.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.dimensionsChanged=new i.EventEmitter,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.trimLabel=r.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var t=this,e=this.scale;this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:e.tickFormat?this.tickFormat=e.tickFormat.apply(e,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};var n=this.getRotationAngle(this.ticks);this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",0!==n?(this.textTransform="rotate("+n+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return t.updateDims()})},t.prototype.getRotationAngle=function(t){for(var e=0,n=0;n<t.length;n++){var i=this.tickFormat(t[n]).toString();i.length>this.maxTicksLength&&(this.maxTicksLength=i.length)}for(var r=8*Math.min(this.maxTicksLength,this.maxAllowedLength),o=r,s=Math.floor(this.width/t.length);s<o&&-90<e;)e-=30,o=Math.cos(e*(Math.PI/180))*r;return e},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(o.a)(t,e)),t},t.prototype.getMaxTicks=function(t){return Math.floor(this.width/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"scale",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"orient",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickArguments",void 0),s([Object(i.Input)(),a("design:type",Array)],t.prototype,"tickValues",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickStroke",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"tickFormatting",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showGridLines",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"gridLineHeight",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"width",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"dimensionsChanged",void 0),s([Object(i.ViewChild)("ticksel"),a("design:type",i.ElementRef)],t.prototype,"ticksElement",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-x-axis-ticks]",template:'\n    <svg:g #ticksel>\n      <svg:g *ngFor="let tick of ticks" class="tick"\n        [attr.transform]="tickTransform(tick)">\n        <title>{{tickFormat(tick)}}</title>\n        <svg:text\n          stroke-width="0.01"\n          [attr.text-anchor]="textAnchor"\n          [attr.transform]="textTransform"\n          [style.font-size]="\'12px\'">\n          {{trimLabel(tickFormat(tick))}}\n        </svg:text>\n      </svg:g>\n    </svg:g>\n\n    <svg:g *ngFor="let tick of ticks"\n      [attr.transform]="tickTransform(tick)">\n      <svg:g *ngIf="showGridLines"\n        [attr.transform]="gridLineTransform()">\n        <svg:line\n          class="gridline-path gridline-path-vertical"\n          [attr.y1]="-gridLineHeight"\n          y2="0" />\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],t)}()},"./src/common/axes/x-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("./src/common/axes/x-axis-ticks.component.ts")),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new i.EventEmitter,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.padding+this.dims.height)+")",void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},t.prototype.emitTicksHeight=function(t){var e=this,n=t.height,i=n+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(function(){e.dimensionsChanged.emit({height:n})},0))},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"tickFormatting",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showGridLines",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showLabel",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"labelText",void 0),o([Object(i.Input)(),s("design:type",Array)],t.prototype,"ticks",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xAxisTickInterval",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xAxisTickCount",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"xOrient",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"xAxisOffset",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"dimensionsChanged",void 0),o([Object(i.ViewChild)(r.a),s("design:type",r.a)],t.prototype,"ticksComponent",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-x-axis]",template:'\n    <svg:g\n      [attr.class]="xAxisClassName"\n      [attr.transform]="transform">\n      <svg:g ngx-charts-x-axis-ticks\n        *ngIf="xScale"\n        [tickFormatting]="tickFormatting"\n        [tickArguments]="tickArguments"\n        [tickStroke]="tickStroke"\n        [scale]="xScale"\n        [orient]="xOrient"\n        [showGridLines]="showGridLines"\n        [gridLineHeight]="dims.height"\n        [width]="dims.width"\n        [tickValues]="ticks"\n        (dimensionsChanged)="emitTicksHeight($event)"\n      />\n      <svg:g ngx-charts-axis-label\n        *ngIf="showLabel"\n        [label]="labelText"\n        [offset]="labelOffset"\n        [orient]="\'bottom\'"\n        [height]="dims.height"\n        [width]="dims.width">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/axes/y-axis-ticks.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("./src/common/trim-label.helper.ts")),o=n("./src/common/axes/ticks.helper.ts"),s=n("./src/common/shape.helper.ts"),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.EventEmitter,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.trimLabel=r.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){return t.updateDims()})},t.prototype.updateDims=function(){var t=this,e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(function(){return t.updateDims()}))},t.prototype.update=function(){var e,t=this,n="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormatting?this.tickFormat=this.tickFormatting:e.tickFormat?this.tickFormat=e.tickFormat.apply(e,this.tickArguments):this.tickFormat=function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=e.bandwidth?function(t){return e(t)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em"}setTimeout(function(){return t.updateDims()})},t.prototype.setReferencelines=function(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(t){return t.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(t){return t.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Object(s.a)(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])},t.prototype.getTicks=function(){var t,e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=Object(o.a)(t,e)),t},t.prototype.getMaxTicks=function(t){return Math.floor(this.height/t)},t.prototype.tickTransform=function(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(5,0)"},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"scale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"orient",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickArguments",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"tickValues",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickStroke",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"tickFormatting",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"showGridLines",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"gridLineWidth",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"height",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"referenceLines",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"showRefLabels",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"showRefLines",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"dimensionsChanged",void 0),a([Object(i.ViewChild)("ticksel"),c("design:type",i.ElementRef)],t.prototype,"ticksElement",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-y-axis-ticks]",template:'\n    <svg:g #ticksel>\n      <svg:g *ngFor="let tick of ticks" class="tick"\n        [attr.transform]="transform(tick)" >\n        <title>{{tickFormat(tick)}}</title>\n        <svg:text\n          stroke-width="0.01"\n          [attr.dy]="dy"\n          [attr.x]="x1"\n          [attr.y]="y1"\n          [attr.text-anchor]="textAnchor"\n          [style.font-size]="\'12px\'">\n          {{trimLabel(tickFormat(tick))}}\n        </svg:text>\n      </svg:g>\n    </svg:g>\n\n    <svg:path *ngIf="referenceLineLength > 1 && refMax && refMin && showRefLines"\n      class="reference-area"\n      [attr.d]="referenceAreaPath"\n      [attr.transform]="gridLineTransform()"\n    />\n    <svg:g *ngFor="let tick of ticks"\n      [attr.transform]="transform(tick)">\n      <svg:g\n        *ngIf="showGridLines"\n        [attr.transform]="gridLineTransform()">\n        <svg:line *ngIf="orient === \'left\'"\n          class="gridline-path gridline-path-horizontal"\n          x1="0"\n          [attr.x2]="gridLineWidth" />\n        <svg:line *ngIf="orient === \'right\'"\n          class="gridline-path gridline-path-horizontal"\n          x1="0"\n          [attr.x2]="-gridLineWidth" />\n      </svg:g>\n    </svg:g>\n\n    <svg:g *ngFor="let refLine of referenceLines">\n      <svg:g *ngIf="showRefLines" [attr.transform]="transform(refLine.value)">\n        <svg:line class="refline-path gridline-path-horizontal"\n          x1="0"\n          [attr.x2]="gridLineWidth"\n          [attr.transform]="gridLineTransform()"/>\n        <svg:g *ngIf="showRefLabels">\n          <title>{{trimLabel(tickFormat(refLine.value))}}</title>\n          <svg:text\n            class="refline-label"\n            [attr.dy]="dy"\n            [attr.y]="-6"\n            [attr.x]="gridLineWidth"\n            [attr.text-anchor]="textAnchor" >\n            {{refLine.name}}\n          </svg:text>\n        </svg:g>\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],t)}()},"./src/common/axes/y-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("./src/common/axes/y-axis-ticks.component.ts")),o=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new i.EventEmitter,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(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])},t.prototype.emitTicksWidth=function(t){var e=this,n=t.width;n!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=n+this.labelOffset,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){e.dimensionsChanged.emit({width:n})},0))},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"tickFormatting",void 0),o([Object(i.Input)(),s("design:type",Array)],t.prototype,"ticks",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showGridLines",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showLabel",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"labelText",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yAxisTickInterval",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yAxisTickCount",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"yOrient",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"referenceLines",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showRefLines",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"showRefLabels",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"yAxisOffset",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"dimensionsChanged",void 0),o([Object(i.ViewChild)(r.a),s("design:type",r.a)],t.prototype,"ticksComponent",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-y-axis]",template:'\n    <svg:g\n      [attr.class]="yAxisClassName"\n      [attr.transform]="transform">\n      <svg:g ngx-charts-y-axis-ticks\n        *ngIf="yScale"\n        [tickFormatting]="tickFormatting"\n        [tickArguments]="tickArguments"\n        [tickValues]="ticks"\n        [tickStroke]="tickStroke"\n        [scale]="yScale"\n        [orient]="yOrient"\n        [showGridLines]="showGridLines"\n        [gridLineWidth]="dims.width"\n        [referenceLines]="referenceLines"\n        [showRefLines]="showRefLines"\n        [showRefLabels]="showRefLabels"\n        [height]="dims.height"\n        (dimensionsChanged)="emitTicksWidth($event)"\n      />\n\n      <svg:g ngx-charts-axis-label\n        *ngIf="showLabel"\n        [label]="labelText"\n        [offset]="labelOffset"\n        [orient]="yOrient"\n        [height]="dims.height"\n        [width]="dims.width">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/base-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/base-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/base-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("rxjs")),o=(n.n(r),n("rxjs/operators")),s=(n.n(o),n("./src/utils/index.ts")),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new i.EventEmitter}return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new s.a(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(this.results?this.results=this.cloneData(this.results):this.results=[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=~~this.width,this.height=~~this.height,this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null},t.prototype.formatDates=function(){for(var t=0;t<this.results.length;t++){var e=this.results[t];if(e.name instanceof Date&&(e.name=e.name.toLocaleDateString()),e.series)for(var n=0;n<e.series.length;n++){var i=e.series[n];i.name instanceof Date&&(i.name=i.name.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var e=this,t=Object(r.fromEvent)(window,"resize").pipe(Object(o.debounceTime)(200)).subscribe(function(t){e.update(),e.cd&&e.cd.markForCheck()});this.resizeSubscription=t},t.prototype.cloneData=function(t){for(var e=[],n=0,i=t;n<i.length;n++){var r=i[n],o={name:r.name};if(void 0!==r.value&&(o.value=r.value),void 0!==r.series){o.series=[];for(var s=0,a=r.series;s<a.length;s++){var c=a[s],u=Object.assign({},c);o.series.push(u)}}void 0!==r.extra&&(o.extra=JSON.parse(JSON.stringify(r.extra))),e.push(o)}return e},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"results",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"view",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"scheme",void 0),a([Object(i.Input)(),c("design:type",String)],t.prototype,"schemeType",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"customColors",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),t=a([Object(i.Component)({selector:"base-chart",template:"<div></div>"}),c("design:paramtypes",[i.ElementRef,i.NgZone,i.ChangeDetectorRef])],t)}()},"./src/common/chart-common.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return j});var i=n("@angular/core"),r=(n.n(i),n("@angular/common")),o=(n.n(r),n("./src/common/charts/chart.component.ts")),s=n("./src/common/legend/index.ts"),a=n("./src/common/base-chart.component.ts"),c=n("./src/common/axes/axes.module.ts"),u=n("./src/common/tooltip/index.ts"),l=n("./src/common/circle-series.component.ts"),p=n("./src/common/circle.component.ts"),h=n("./src/common/grid-panel.component.ts"),d=n("./src/common/grid-panel-series.component.ts"),f=n("./src/common/svg-linear-gradient.component.ts"),g=n("./src/common/svg-radial-gradient.component.ts"),v=n("./src/common/timeline/index.ts"),m=n("./src/common/area.component.ts"),y=n("./src/common/tooltip-area.component.ts"),b=n("./src/common/count/index.ts"),x=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},O=[m.a,a.a,b.a,y.a,o.a,s.b,s.c,s.d,p.a,l.a,h.a,d.a,f.a,g.a,v.a,s.a],j=function(){function t(){}return t=x([Object(i.NgModule)({providers:[r.Location,{provide:r.LocationStrategy,useClass:r.PathLocationStrategy}],imports:[r.CommonModule,c.a,u.f],declarations:O.slice(),exports:[r.CommonModule,c.a,u.f].concat(O)})],t)}()},"./src/common/charts/chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),o=(n.n(r),n("./src/common/tooltip/index.ts")),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.vcr=t,this.tooltipService=e,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.EventEmitter,this.legendLabelActivate=new i.EventEmitter,this.legendLabelDeactivate=new i.EventEmitter,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),t="scaleLegend"===this.legendType?1:2);var e=12-t;this.chartWidth=~~(this.view[0]*e/12),this.legendWidth=~~(this.view[0]*t/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"view",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"showLegend",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"legendOptions",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"legendData",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"legendType",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Array)],t.prototype,"activeEntries",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"legendLabelClick",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"legendLabelActivate",void 0),s([Object(i.Output)(),a("design:type",i.EventEmitter)],t.prototype,"legendLabelDeactivate",void 0),t=s([Object(i.Component)({providers:[o.g],selector:"ngx-charts-chart",template:'\n    <div\n      class="ngx-charts-outer"\n      [style.width.px]="view[0]"\n      [@animationState]="\'active\'"\n      [@.disabled]="!animations">\n      <svg\n        class="ngx-charts"\n        [attr.width]="chartWidth"\n        [attr.height]="view[1]">\n        <ng-content></ng-content>\n      </svg>\n      <ngx-charts-scale-legend\n        *ngIf="showLegend && legendType === \'scaleLegend\'"\n        class="chart-legend"\n        [valueRange]="legendOptions.domain"\n        [colors]="legendOptions.colors"\n        [height]="view[1]"\n        [width]="legendWidth">\n      </ngx-charts-scale-legend>\n      <ngx-charts-legend\n        *ngIf="showLegend && legendType === \'legend\'"\n        class="chart-legend"\n        [data]="legendOptions.domain"\n        [title]="legendOptions.title"\n        [colors]="legendOptions.colors"\n        [height]="view[1]"\n        [width]="legendWidth"\n        [activeEntries]="activeEntries"\n        (labelClick)="legendLabelClick.emit($event)"\n        (labelActivate)="legendLabelActivate.emit($event)"\n        (labelDeactivate)="legendLabelDeactivate.emit($event)">\n      </ngx-charts-legend>\n    </div>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)(":enter",[Object(r.style)({opacity:0}),Object(r.animate)("500ms 100ms",Object(r.style)({opacity:1}))])])]}),a("design:paramtypes",[i.ViewContainerRef,o.g])],t)}()},"./src/common/charts/index.ts":function(t,e,n){"use strict";var i=n("./src/common/charts/chart.component.ts");n.d(e,"a",function(){return i.a})},"./src/common/circle-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),u=(n.n(r),n("./src/common/label.helper.ts")),o=n("./src/utils/id.ts"),s=n("./src/common/index.ts"),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.barVisible=!1}return t.prototype.ngOnInit=function(){this.gradientId="grad"+Object(o.a)().toString(),this.gradientFill="url(#"+this.gradientId+")"},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.circle=this.getActiveCircle()},t.prototype.getActiveCircle=function(){var n=this,t=this.data.series.findIndex(function(t){var e=t.name;return e&&n.visibleValue&&e.toString()===n.visibleValue.toString()&&void 0!==t.value});if(-1!==t)return this.mapDataPointToCircle(this.data.series[t],t)},t.prototype.mapDataPointToCircle=function(t,e){var n,i=this.data.name,r=t.value,o=t.name,s=Object(u.a)(o);n="time"===this.scaleType?this.xScale(o):"linear"===this.scaleType?this.xScale(Number(o)):this.xScale(o);var a,c=this.yScale("standard"===this.type?r:t.d1);return{classNames:["circle-data-"+e],value:r,label:o,data:{series:i,value:r,name:o},cx:n,cy:c,radius:5,height:this.yScale.range()[0]-c,tooltipLabel:s,color:a="linear"===this.colors.scaleType?"standard"===this.type?this.colors.getColor(r):this.colors.getColor(t.d1):this.colors.getColor(i),opacity:1,seriesName:i,gradientStops:this.getGradientStops(a),min:t.min,max:t.max}},t.prototype.getTooltipText=function(t){var e=t.tooltipLabel,n=t.value,i=t.seriesName,r=t.min,o=t.max;return'\n      <span class="tooltip-label">'+i+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+this.getTooltipMinMaxText(r,o)+"</span>\n    "},t.prototype.getTooltipMinMaxText=function(t,e){if(void 0!==t||void 0!==e){var n=" (";return void 0!==t?(void 0===e&&(n+="≥"),n+=t.toLocaleString(),void 0!==e&&(n+=" - ")):void 0!==e&&(n+="≤"),void 0!==e&&(n+=e.toLocaleString()),n+=")"}return""},t.prototype.getGradientStops=function(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]},t.prototype.onClick=function(t,e){this.select.emit({name:e,value:t})},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.activateCircle=function(){this.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"type",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),c("design:type",s.i)],t.prototype,"colors",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"visibleValue",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),c("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-circle-series]",template:'\n    <svg:g *ngIf="circle">\n      <defs>\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="circle.gradientStops"\n        />\n      </defs>\n      <svg:rect\n        *ngIf="barVisible && type === \'standard\'"\n        [@animationState]="\'active\'"\n        [attr.x]="circle.cx - circle.radius"\n        [attr.y]="circle.cy"\n        [attr.width]="circle.radius * 2"\n        [attr.height]="circle.height"\n        [attr.fill]="gradientFill"\n        class="tooltip-bar"\n      />\n      <svg:g ngx-charts-circle\n        class="circle"\n        [cx]="circle.cx"\n        [cy]="circle.cy"\n        [r]="circle.radius"\n        [fill]="circle.color"\n        [class.active]="isActive({name: circle.seriesName})"\n        [pointerEvents]="circle.value === 0 ? \'none\': \'all\'"\n        [data]="circle.value"\n        [classNames]="circle.classNames"\n        (select)="onClick($event, circle.label)"\n        (activate)="activateCircle()"\n        (deactivate)="deactivateCircle()"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(circle)"\n        [tooltipTemplate]="tooltipTemplate"\n        [tooltipContext]="circle.data"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)(":enter",[Object(r.style)({opacity:0}),Object(r.animate)(250,Object(r.style)({opacity:1}))])])]})],t)}()},"./src/common/circle.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.ngOnChanges=function(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"cx",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"cy",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"r",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"fill",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"stroke",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"classNames",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"circleOpacity",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"pointerEvents",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"select",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"activate",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"deactivate",void 0),r([Object(i.HostListener)("click"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onClick",null),r([Object(i.HostListener)("mouseenter"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseEnter",null),r([Object(i.HostListener)("mouseleave"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=r([Object(i.Component)({selector:"g[ngx-charts-circle]",template:'\n    <svg:circle\n      [attr.cx]="cx"\n      [attr.cy]="cy"\n      [attr.r]="r"\n      [attr.fill]="fill"\n      [attr.stroke]="stroke"\n      [attr.opacity]="circleOpacity"\n      [attr.class]="classNames"\n      [attr.pointer-events]="pointerEvents"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/color.helper.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("d3-array"),v=(n.n(s),n("d3-scale")),a=(n.n(v),n("./src/utils/color-sets.ts")),i=function(){function t(e,t,n,i){"string"==typeof e&&(e=a.a.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=t,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(e,t,this.domain)}return t.prototype.generateColorScheme=function(e,t,n){var i;if("string"==typeof e&&(e=a.a.find(function(t){return t.name===e})),"quantile"===t)i=Object(v.scaleQuantile)().range(e.domain).domain(n);else if("ordinal"===t)i=Object(v.scaleOrdinal)().range(e.domain).domain(n);else if("linear"===t){var r=e.domain.slice();1===r.length&&(r.push(r[0]),this.colorDomain=r);var o=Object(s.range)(0,1,1/r.length);i=Object(v.scaleLinear)().domain(o).range(r)}return i},t.prototype.getColor=function(t){if("linear"===this.scaleType){var e=Object(v.scaleLinear)().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n=t.toString(),i=void 0;return this.customColors&&0<this.customColors.length&&(i=this.customColors.find(function(t){return t.name.toLowerCase()===n.toLowerCase()})),i?i.value:this.scale(t)},t.prototype.getLinearGradientStops=function(t,e){void 0===e&&(e=this.domain[0]);var n=Object(v.scaleLinear)().domain(this.domain).range([0,1]),i=Object(v.scaleBand)().domain(this.colorDomain).range([0,1]),r=this.getColor(t),o=n(e),s=this.getColor(e),a=n(t),c=1,u=o,l=[];for(l.push({color:s,offset:o,originalOffset:o,opacity:1});u<a&&c<this.colorDomain.length;){var p=this.colorDomain[c],h=i(p);if(h<=o)c++;else{if(h.toFixed(4)>=(a-i.bandwidth()).toFixed(4))break;l.push({color:p,offset:h,opacity:1}),u=h,c++}}if(l[l.length-1].offset<100&&l.push({color:r,offset:a,opacity:1}),a===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(var d=0,f=l;d<f.length;d++){var g=f[d];g.offset=(g.offset-o)/(a-o)*100}return l},t}()},"./src/common/count/count.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),s=(n.n(i),n("./src/common/count/count.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t,e){this.cd=t,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new i.EventEmitter,this.countFinish=new i.EventEmitter,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=e.nativeElement}return Object.defineProperty(t.prototype,"countDecimals",{get:function(){return this._countDecimals?this._countDecimals:Object(s.b)(this.countTo)},set:function(t){this._countDecimals=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countTo",{get:function(){return this._countTo},set:function(t){this._countTo=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countFrom",{get:function(){return this._countFrom},set:function(t){this._countFrom=parseFloat(t),this.start()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.start=function(){var r=this;cancelAnimationFrame(this.animationReq);var o=this.valueFormatting||function(t){return""+r.countPrefix+t.value.toLocaleString()+r.countSuffix};this.animationReq=Object(s.a)(this.countFrom,this.countTo,this.countDecimals,this.countDuration,function(t){var e=t.value,n=t.progress,i=t.finished;r.value=o({value:e}),r.cd.markForCheck(),i||r.countChange.emit({value:e,progress:n}),i&&r.countFinish.emit({value:e,progress:n})})},r([Object(i.Input)(),o("design:type",Number)],t.prototype,"countDuration",void 0),r([Object(i.Input)(),o("design:type",String)],t.prototype,"countPrefix",void 0),r([Object(i.Input)(),o("design:type",String)],t.prototype,"countSuffix",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),o("design:type",Number),o("design:paramtypes",[Number])],t.prototype,"countDecimals",null),r([Object(i.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],t.prototype,"countTo",null),r([Object(i.Input)(),o("design:type",Object),o("design:paramtypes",[Object])],t.prototype,"countFrom",null),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"countChange",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"countFinish",void 0),t=r([Object(i.Component)({selector:"[ngx-charts-count-up]",template:"{{value}}"}),o("design:paramtypes",[i.ChangeDetectorRef,i.ElementRef])],t)}()},"./src/common/count/count.helper.ts":function(t,e,n){"use strict";function h(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e}e.a=function(t,e,n,i,o){var s,a=Number(t),c=Number(e),u=c<a,r=Math.max(0,n),l=Math.pow(10,r),p=1e3*Number(i);return requestAnimationFrame(function(t){return function e(t){var n;var i=t-s;n=u?a-h(i,0,a-c,p):h(i,a,c-a,p);n=u?n<c?c:n:c<n?c:n;n=Math.round(n*l)/l;var r=i<p;o({value:n,progress:i,timestamp:t,finished:!r});if(r)return requestAnimationFrame(function(t){return e(t)})}(s=t)})},e.b=function(t){var e=Number(t);if(e%1!=0&&Math.abs(e)<=10)return 2;return 0}},"./src/common/count/index.ts":function(t,e,n){"use strict";var i=n("./src/common/count/count.directive.ts");n.d(e,"a",function(){return i.a});var r=n("./src/common/count/count.helper.ts");n.d(e,"b",function(){return r.a}),n.d(e,"c",function(){return r.b})},"./src/common/domain.helper.ts":function(t,e,n){"use strict";e.a=function(t){for(var e=new Set,n=0,i=t;n<i.length;n++)for(var r=i[n],o=0,s=r.series;o<s.length;o++){var a=s[o];e.add(a.name)}return Array.from(e)}},"./src/common/grid-layout.helper.ts":function(t,e,n){"use strict";e.b=x,e.a=function(t,e,n,i){for(var r=Object(b.scaleBand)(),o=Object(b.scaleBand)(),s=t.width,a=t.height,c=x(t,e.length,n),u=c[0],l=c[1],p=[],h=[],d=0;d<l;d++)h.push(d);for(var d=0;d<u;d++)p.push(d);r.domain(p),o.domain(h),r.rangeRound([0,s],.1),o.rangeRound([0,a],.1);for(var f=[],g=i||(y=e,y.map(function(t){return t?t.value:0}).reduce(function(t,e){return t+e},0)),v=r.bandwidth(),m=o.bandwidth(),d=0;d<e.length;d++)f[d]={},f[d].data={name:e[d]?e[d].name:"",value:e[d]?e[d].value:void 0,extra:e[d]?e[d].extra:void 0},f[d].x=r(d%u),f[d].y=o(Math.floor(d/u)),f[d].width=v,f[d].height=m,f[d].data.percent=0<g?f[d].data.value/g:0,f[d].data.total=g;var y;return f};var b=n("d3-scale");n.n(b);function x(t,e,n){var i=1,r=e,o=t.width;if(n<o)for(;o/r<n;)i+=1,r=Math.ceil(e/i);return[r,i]}},"./src/common/grid-panel-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.gridPanels=this.getGridPanels()},t.prototype.getGridPanels=function(){var u=this;return this.data.map(function(t,e){var n,i,r,o,s,a="odd";if("vertical"===u.orient){var c=u.xScale(t.name);Number.parseInt((c/u.xScale.step()).toString())%2==1&&(a="even"),n=u.xScale.bandwidth()*u.xScale.paddingInner(),i=u.xScale.bandwidth()+n,r=u.dims.height,o=u.xScale(t.name)-n/2,s=0}else if("horizontal"===u.orient){c=u.yScale(t.name);Number.parseInt((c/u.yScale.step()).toString())%2==1&&(a="even"),n=u.yScale.bandwidth()*u.yScale.paddingInner(),i=u.dims.width,r=u.yScale.bandwidth()+n,o=0,s=u.yScale(t.name)-n/2}return{name:t.name,class:a,height:r,width:i,x:o,y:s}})},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"dims",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"xScale",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"yScale",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"orient",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-grid-panel-series]",template:'\n    <svg:g ngx-charts-grid-panel *ngFor="let gridPanel of gridPanels"\n      [height]="gridPanel.height"\n      [width]="gridPanel.width"\n      [x]="gridPanel.x"\n      [y]="gridPanel.y"\n      [class.grid-panel]="true"\n      [class.odd]="gridPanel.class === \'odd\'"\n      [class.even]="gridPanel.class === \'even\'">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/grid-panel.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){}return r([Object(i.Input)(),o("design:type",Object)],t.prototype,"path",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"x",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"y",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-grid-panel]",template:'\n    <svg:rect\n      [attr.height]="height"\n      [attr.width]="width"\n      [attr.x]="x"\n      [attr.y]="y"\n      stroke="none"\n      class="gridpanel"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/index.ts":function(t,e,n){"use strict";var i=n("./src/common/chart-common.module.ts");n.d(e,"e",function(){return i.a});var r=n("./src/common/legend/index.ts");n.d(e,"a",function(){return r.a}),n.d(e,"m",function(){return r.b}),n.d(e,"n",function(){return r.c}),n.d(e,"o",function(){return r.d});var o=n("./src/common/tooltip/index.ts");n.d(e,"b",function(){return o.a}),n.d(e,"p",function(){return o.b}),n.d(e,"q",function(){return o.c}),n.d(e,"v",function(){return o.d}),n.d(e,"w",function(){return o.e}),n.d(e,"x",function(){return o.f}),n.d(e,"y",function(){return o.g});var s=n("./src/common/count/index.ts");n.d(e,"j",function(){return s.a}),n.d(e,"A",function(){return s.b}),n.d(e,"B",function(){return s.c});var a=n("./src/common/timeline/index.ts");n.d(e,"t",function(){return a.a});var c=n("./src/common/color.helper.ts");n.d(e,"i",function(){return c.a});var u=n("./src/common/charts/index.ts");n.d(e,"f",function(){return u.a});var l=n("./src/common/area.component.ts");n.d(e,"c",function(){return l.a});var p=n("./src/common/base-chart.component.ts");n.d(e,"d",function(){return p.a});var h=n("./src/common/circle.component.ts");n.d(e,"g",function(){return h.a});var d=n("./src/common/circle-series.component.ts");n.d(e,"h",function(){return d.a});var f=n("./src/common/grid-layout.helper.ts");n.d(e,"D",function(){return f.a}),n.d(e,"E",function(){return f.b});var g=n("./src/common/grid-panel.component.ts");n.d(e,"k",function(){return g.a});var v=n("./src/common/grid-panel-series.component.ts");n.d(e,"l",function(){return v.a});var m=n("./src/common/svg-linear-gradient.component.ts");n.d(e,"r",function(){return m.a});var y=n("./src/common/svg-radial-gradient.component.ts");n.d(e,"s",function(){return y.a});var b=n("./src/common/tooltip-area.component.ts");n.d(e,"u",function(){return b.a});var x=n("./src/common/tick-format.helper.ts");n.d(e,"F",function(){return x.a});var O=n("./src/common/trim-label.helper.ts");n.d(e,"G",function(){return O.a});var j=n("./src/common/view-dimensions.helper.ts");n.d(e,"z",function(){return j.a});var _=n("./src/common/label.helper.ts");n.d(e,"C",function(){return _.a})},"./src/common/label.helper.ts":function(t,e,n){"use strict";e.a=function(t){t=t instanceof Date?t.toLocaleDateString():t.toLocaleString();return t}},"./src/common/legend/advanced-legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/advanced-legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/advanced-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),a=(n.n(i),n("./src/common/trim-label.helper.ts")),c=n("./src/common/label.helper.ts"),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.label="Total",this.animations=!0,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.legendItems=[],this.valueFormatting=function(t){return t},this.labelFormatting=function(t){return t},this.percentageFormatting=function(t){return t}}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.getTotal=function(){return this.data.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},t.prototype.update=function(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()},t.prototype.getLegendItems=function(){var s=this;return this.data.map(function(t,e){var n=Object(c.a)(t.name),i=t.value,r=s.colors.getColor(n),o=0<s.total?i/s.total*100:0;return{value:s.valueFormatting(i),color:r,label:Object(a.a)(s.labelFormatting(n),20),originalLabel:t.name,percentage:s.percentageFormatting(o)}})},t.prototype.trackBy=function(t){return t.formattedLabel},r([Object(i.Input)(),o("design:type",Number)],t.prototype,"width",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),o("design:type",String)],t.prototype,"label",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"select",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"activate",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"deactivate",void 0),r([Object(i.Input)(),o("design:type",Function)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),o("design:type",Function)],t.prototype,"labelFormatting",void 0),r([Object(i.Input)(),o("design:type",Function)],t.prototype,"percentageFormatting",void 0),t=r([Object(i.Component)({selector:"ngx-charts-advanced-legend",template:'\n    <div class="advanced-pie-legend"\n      [style.width.px]="width">\n      <div\n        *ngIf="animations"\n        class="total-value"\n        ngx-charts-count-up\n        [countTo]="roundedTotal">\n      </div>\n      <div *ngIf="!animations">\n        {{roundedTotal}}\n      </div>\n      <div class="total-label">\n        {{label}}\n      </div>\n      <div class="legend-items-container">\n        <div class="legend-items">\n          <div\n            *ngFor="let legendItem of legendItems; trackBy:trackBy"\n            tabindex="-1"\n            class="legend-item"\n            (mouseenter)="activate.emit(legendItem.label)"\n            (mouseleave)="deactivate.emit(legendItem.label)"\n            (click)="select.emit({ name: legendItem.label, value: legendItem.value })">\n            <div\n              class="item-color"\n              [style.background]="legendItem.color">\n            </div>\n            <div *ngIf="animations"\n              class="item-value"\n              ngx-charts-count-up\n              [countTo]="legendItem.value">\n            </div>\n            <div *ngIf="!animations" class="item-value">\n              {{legendItem.value}}\n            </div>\n            <div class="item-label">{{legendItem.label}}</div>\n            <div *ngIf="animations"\n              class="item-percent"\n              ngx-charts-count-up\n              [countTo]="legendItem.percentage"\n              [countSuffix]="\'%\'">\n            </div>\n            <div *ngIf="!animations"\n              class="item-percent">\n              {{legendItem.percentage.toLocaleString()}}%\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/advanced-legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/legend/index.ts":function(t,e,n){"use strict";var i=n("./src/common/legend/legend.component.ts");n.d(e,"b",function(){return i.a});var r=n("./src/common/legend/scale-legend.component.ts");n.d(e,"d",function(){return r.a});var o=n("./src/common/legend/legend-entry.component.ts");n.d(e,"c",function(){return o.a});var s=n("./src/common/legend/advanced-legend.component.ts");n.d(e,"a",function(){return s.a})},"./src/common/legend/legend-entry.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.isActive=!1,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.toggle=new i.EventEmitter}return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},r([Object(i.Input)(),o("design:type",String)],t.prototype,"color",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"label",void 0),r([Object(i.Input)(),o("design:type",String)],t.prototype,"formattedLabel",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"isActive",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"select",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"activate",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"deactivate",void 0),r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"toggle",void 0),r([Object(i.HostListener)("mouseenter"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseEnter",null),r([Object(i.HostListener)("mouseleave"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t=r([Object(i.Component)({selector:"ngx-charts-legend-entry",template:'\n    <span \n      [title]="formattedLabel"\n      tabindex="-1"\n      [class.active]="isActive"\n      (click)="select.emit(formattedLabel)">\n      <span\n        class="legend-label-color"\n        [style.background-color]="color"\n        (click)="toggle.emit(formattedLabel)">\n      </span>\n      <span class="legend-label-text">\n        {{trimmedLabel}}\n      </span>\n    </span>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/legend/legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),n("./src/common/label.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.cd=t,this.labelClick=new i.EventEmitter,this.labelActivate=new i.EventEmitter,this.labelDeactivate=new i.EventEmitter,this.legendEntries=[]}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var n=[],t=function(t){var e=Object(o.a)(t);-1===n.findIndex(function(t){return t.label===e})&&n.push({label:t,formattedLabel:e,color:i.colors.getColor(t)})},i=this,e=0,r=this.data;e<r.length;e++){t(r[e])}return n},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.label===t.name})},t.prototype.activate=function(t){this.labelActivate.emit(t)},t.prototype.deactivate=function(t){this.labelDeactivate.emit(t)},t.prototype.trackBy=function(t,e){return e.label},r([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"title",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"activeEntries",void 0),r([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"labelClick",void 0),r([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"labelActivate",void 0),r([Object(i.Output)(),s("design:type",i.EventEmitter)],t.prototype,"labelDeactivate",void 0),t=r([Object(i.Component)({selector:"ngx-charts-legend",template:'\n    <div [style.width.px]="width">\n      <header class="legend-title" *ngIf="title?.length > 0">\n        <span class="legend-title-text">{{title}}</span>\n      </header>\n      <div class="legend-wrap">\n        <ul class="legend-labels"\n          [style.max-height.px]="height - 45">\n          <li\n            *ngFor="let entry of legendEntries; trackBy: trackBy"\n            class="legend-label">\n            <ngx-charts-legend-entry\n              [label]="entry.label"\n              [formattedLabel]="entry.formattedLabel"\n              [color]="entry.color"\n              [isActive]="isActive(entry)"\n              (select)="labelClick.emit($event)"\n              (activate)="activate($event)"\n              (deactivate)="deactivate($event)">\n            </ngx-charts-legend-entry>\n          </li>\n        </ul>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.ChangeDetectorRef])],t)}()},"./src/common/legend/scale-legend.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/legend/scale-legend.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/legend/scale-legend.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("@angular/platform-browser")),o=(n.n(r),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.sanitizer=t}return t.prototype.ngOnChanges=function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to bottom, "+e+")")},t.prototype.gradientString=function(t,n){n.push(1);var i=[];return t.reverse().forEach(function(t,e){i.push(t+" "+Math.round(100*n[e])+"%")}),i.join(", ")},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"valueRange",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"height",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"width",void 0),t=o([Object(i.Component)({selector:"ngx-charts-scale-legend",template:'\n    <div\n      class="scale-legend"\n      [style.height.px]="height"\n      [style.width.px]="width">\n      <div class="scale-legend-label">\n        <span>{{ valueRange[1].toLocaleString() }}</span>\n      </div>\n      <div\n        class="scale-legend-wrap"\n        [style.background]="gradient">\n      </div>\n      <div class="scale-legend-label">\n        <span>{{ valueRange[0].toLocaleString() }}</span>\n      </div>\n    </div>\n  ',styles:[n("./src/common/legend/scale-legend.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[r.DomSanitizer])],t)}()},"./src/common/shape.helper.ts":function(t,e,n){"use strict";e.a=function(t,e,n,i,r,o){var s=o[0],a=o[1],c=o[2],u=o[3],l="";n=Math.floor(n),i=Math.floor(i),l="M"+[t+r,e],l+="h"+((n=0===n?1:n)-2*r),l+=a?"a"+[r,r]+" 0 0 1 "+[r,r]:"h"+r+"v"+r;l+="v"+((i=0===i?1:i)-2*r),l+=u?"a"+[r,r]+" 0 0 1 "+[-r,r]:"v"+r+"h"+-r;l+="h"+(2*r-n),l+=c?"a"+[r,r]+" 0 0 1 "+[-r,-r]:"h"+-r+"v"+-r;l+="v"+(2*r-i),l+=s?"a"+[r,r]+" 0 0 1 "+[r,-r]:"v"+-r+"h"+r;return l+="z"}},"./src/common/svg-linear-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.orientation="vertical"}return t.prototype.ngOnChanges=function(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"orientation",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"name",void 0),r([Object(i.Input)(),o("design:type",Array)],t.prototype,"stops",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-svg-linear-gradient]",template:'\n    <svg:linearGradient\n      [id]="name"\n      [attr.x1]="x1"\n      [attr.y1]="y1"\n      [attr.x2]="x2"\n      [attr.y2]="y2">\n      <svg:stop *ngFor="let stop of stops"\n        [attr.offset]="stop.offset + \'%\'"\n        [style.stop-color]="stop.color"\n        [style.stop-opacity]="stop.opacity"\n      />\n    </svg:linearGradient>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/svg-radial-gradient.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.endOpacity=1,this.cx=0,this.cy=0}return Object.defineProperty(t.prototype,"stops",{get:function(){return this.stopsInput||this.stopsDefault},set:function(t){this.stopsInput=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(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}])},r([Object(i.Input)(),o("design:type",String)],t.prototype,"color",void 0),r([Object(i.Input)(),o("design:type",String)],t.prototype,"name",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"startOpacity",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"endOpacity",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"cx",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"cy",void 0),r([Object(i.Input)(),o("design:type",Array),o("design:paramtypes",[Array])],t.prototype,"stops",null),t=r([Object(i.Component)({selector:"g[ngx-charts-svg-radial-gradient]",template:'\n    <svg:radialGradient\n      [id]="name"\n      [attr.cx]="cx"\n      [attr.cy]="cy"\n      [attr.r]="r"\n      gradientUnits="userSpaceOnUse">\n      <svg:stop *ngFor="let stop of stops"\n        [attr.offset]="stop.offset + \'%\'"\n        [style.stop-color]="stop.color"\n        [style.stop-opacity]="stop.opacity"\n      />\n    </svg:radialGradient>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/common/tick-format.helper.ts":function(t,e,n){"use strict";e.a=function(n,i){return function(t){if("No Value"===t||"Other"===t)return t;if("date"===n&&"groupBy"===i){var e=Object(r.timeFormat)("MM/DD/YYYY");return e(t)}return t.toString()}};var r=n("d3-time-format");n.n(r)},"./src/common/timeline/index.ts":function(t,e,n){"use strict";var i=n("./src/common/timeline/timeline.component.ts");n.d(e,"a",function(){return i.a})},"./src/common/timeline/timeline.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/timeline/timeline.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/timeline/timeline.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("d3-brush")),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("d3-selection")),a=(n.n(s),n("./src/utils/index.ts")),c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t,e){this.cd=e,this.height=50,this.select=new i.EventEmitter,this.onDomainChange=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)},t.prototype.update=function(){this.dims=this.getDims(),this.height=this.dims.height;var 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"+Object(a.b)().toString(),this.filter="url(#"+this.filterId+")",this.cd.markForCheck()},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}var s=[];if("time"===this.scaleType)s=[Math.min.apply(Math,t),Math.max.apply(Math,t)];else if("linear"===this.scaleType){t=t.map(function(t){return Number(t)}),s=[Math.min.apply(Math,t),Math.max.apply(Math,t)]}else s=t;return s},t.prototype.getXScale=function(){var t;return"time"===this.scaleType?t=Object(o.scaleTime)().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?t=Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(t=Object(o.scalePoint)().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t},t.prototype.addBrush=function(){var e=this;if(!this.brush){var t=this.height,n=this.view[0];this.brush=Object(r.brushX)().extent([[0,0],[n,t]]).on("brush end",function(){var t=(s.event.selection||e.xScale.range()).map(e.xScale.invert);e.onDomainChange.emit(t),e.cd.markForCheck()}),Object(s.select)(this.element).select(".brush").call(this.brush)}},t.prototype.updateBrush=function(){if(this.brush){var t=this.height,e=this.view[0];this.brush.extent([[0,0],[e,t]]),Object(s.select)(this.element).select(".brush").call(this.brush),Object(s.select)(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck()}},t.prototype.getDims=function(){return{width:this.view[0],height:this.height}},c([Object(i.Input)(),u("design:type",Object)],t.prototype,"view",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"state",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"results",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"scheme",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"customColors",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"legend",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"miniChart",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"autoScale",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"scaleType",void 0),c([Object(i.Input)(),u("design:type",Number)],t.prototype,"height",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"select",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"onDomainChange",void 0),t=c([Object(i.Component)({selector:"g[ngx-charts-timeline]",template:'\n    <svg:g\n      class="timeline"\n      [attr.transform]="transform">\n      <svg:filter [attr.id]="filterId">\n        <svg:feColorMatrix in="SourceGraphic"\n            type="matrix"\n            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" />\n      </svg:filter>\n      <svg:g class="embedded-chart">\n        <ng-content></ng-content>\n      </svg:g>\n      <svg:rect x="0"\n        [attr.width]="view[0]"\n        y="0"\n        [attr.height]="height"\n        class="brush-background"\n      />\n      <svg:g class="brush"></svg:g>\n    </svg:g>\n  ',styles:[n("./src/common/timeline/timeline.component.scss")],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[i.ElementRef,i.ChangeDetectorRef])],t)}()},"./src/common/tooltip-area.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),o=(n.n(r),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.renderer=t,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new i.EventEmitter}return t.prototype.getValues=function(e){for(var t=[],n=0,i=this.results;n<i.length;n++){var r=i[n],o=r.series.find(function(t){return t.name.toString()===e.toString()}),s=r.name;if(s instanceof Date&&(s=s.toLocaleDateString()),o){var a=o.name,c=o.value;this.showPercentage&&(c=(o.d1-o.d0).toFixed(2)+"%");var u=void 0;if("linear"===this.colors.scaleType){var l=c;o.d1&&(l=o.d1),u=this.colors.getColor(l)}else u=this.colors.getColor(r.name);t.push({value:c,name:a,series:s,min:o.min,max:o.max,color:u})}}return t},t.prototype.mouseMove=function(t){var e=t.pageX-t.target.getBoundingClientRect().left,n=this.findClosestPointIndex(e),i=this.xSet[n];if(this.anchorPos=this.xScale(i),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(i),this.anchorPos!==this.lastAnchorPos){var r=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[r]),this.anchorOpacity=.7,this.hover.emit({value:i}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}},t.prototype.findClosestPointIndex=function(t){for(var e=0,n=this.xSet.length-1,i=Number.MAX_VALUE,r=0;e<=n;){var o=(e+n)/2|0,s=this.xScale(this.xSet[o]),a=Math.abs(s-t);if(a<i&&(i=a,r=o),s<t)e=o+1;else{if(!(t<s)){i=0,r=o;break}n=o-1}}return r},t.prototype.showTooltip=function(){var t=new MouseEvent("mouseenter",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t])},t.prototype.hideTooltip=function(){var t=new MouseEvent("mouseleave",{bubbles:!1});this.renderer.invokeElementMethod(this.tooltipAnchor.nativeElement,"dispatchEvent",[t]),this.anchorOpacity=0,this.lastAnchorPos=-1},t.prototype.getToolTipText=function(t){var e="";return void 0!==t.series?e+=t.series:e+="???",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+="≥"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="≤"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"dims",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xSet",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"results",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"showPercentage",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),o([Object(i.Input)(),s("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"hover",void 0),o([Object(i.ViewChild)("tooltipAnchor"),s("design:type",Object)],t.prototype,"tooltipAnchor",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-tooltip-area]",template:'\n    <svg:g>\n      <svg:rect\n        class="tooltip-area"\n        [attr.x]="0"\n        y="0"\n        [attr.width]="dims.width"\n        [attr.height]="dims.height"\n        style="opacity: 0; cursor: \'auto\';"\n        (mousemove)="mouseMove($event)"\n        (mouseleave)="hideTooltip()"\n      />\n      <xhtml:ng-template #defaultTooltipTemplate let-model="model">\n        <xhtml:div class="area-tooltip-container">\n          <xhtml:div\n            *ngFor="let tooltipItem of model"\n            class="tooltip-item">\n            <span\n              class="tooltip-item-color"\n              [style.background-color]="tooltipItem.color">\n            </span>\n            {{getToolTipText(tooltipItem)}}\n          </xhtml:div>\n        </xhtml:div>\n      </xhtml:ng-template>\n      <svg:rect\n        #tooltipAnchor\n        [@animationState]="anchorOpacity !== 0 ? \'active\' : \'inactive\'"\n        class="tooltip-anchor"\n        [attr.x]="anchorPos"\n        y="0"\n        [attr.width]="1"\n        [attr.height]="dims.height"\n        [style.opacity]="anchorOpacity"\n        [style.pointer-events]="\'none\'"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'right\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipSpacing]="15"\n        [tooltipTemplate]="tooltipTemplate ? tooltipTemplate: defaultTooltipTemplate"\n        [tooltipContext]="anchorValues"\n        [tooltipImmediateExit]="true"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)("inactive => active",[Object(r.style)({opacity:0}),Object(r.animate)(250,Object(r.style)({opacity:.7}))]),Object(r.transition)("active => inactive",[Object(r.style)({opacity:.7}),Object(r.animate)(250,Object(r.style)({opacity:0}))])])]}),s("design:paramtypes",[i.Renderer])],t)}()},"./src/common/tooltip/alignment.type.ts":function(t,e,n){"use strict";var i,r;n.d(e,"a",function(){return i}),(r=i||(i={}))[r.left="left"]="left",r[r.center="center"]="center",r[r.right="right"]="right"},"./src/common/tooltip/index.ts":function(t,e,n){"use strict";var i=n("./src/common/tooltip/tooltip.module.ts");n.d(e,"f",function(){return i.a});var r=n("./src/common/tooltip/tooltip.service.ts");n.d(e,"g",function(){return r.a});var o=n("./src/common/tooltip/tooltip.component.ts");n.d(e,"d",function(){return o.a});var s=n("./src/common/tooltip/tooltip.directive.ts");n.d(e,"e",function(){return s.a});var a=n("./src/common/tooltip/style.type.ts");n.d(e,"c",function(){return a.a});var c=n("./src/common/tooltip/alignment.type.ts");n.d(e,"a",function(){return c.a});var u=n("./src/common/tooltip/show.type.ts");n.d(e,"b",function(){return u.a})},"./src/common/tooltip/injection-registery.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){function t(t){this.injectionService=t,this.defaults={},this.components=new Map}return t.prototype.getByType=function(t){return void 0===t&&(t=this.type),this.components.get(t)},t.prototype.create=function(t){return this.createByType(this.type,t)},t.prototype.createByType=function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n},t.prototype.destroy=function(t){var e=this.components.get(t.componentType);if(e){var n=e.indexOf(t);if(-1<n)e[n].destroy(),e.splice(n,1)}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(t){var e=this.components.get(t);if(e)for(var n=0,i=e;n<i.length;n++){var r=i[n];this.destroy(r)}},t.prototype.assignDefaults=function(t){var e=this.defaults,n=e.inputs,i=e.outputs;return t.inputs||t.outputs||(t={inputs:t}),n&&(t.inputs=Object.assign(n,t.inputs)),i&&(t.outputs=Object.assign(i,t.outputs)),t},t.prototype.injectComponent=function(t,e){return this.injectionService.appendComponent(t,e)},t.prototype.register=function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)},t}()},"./src/common/tooltip/injection.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}return t.prototype.getRootViewContainer=function(){var t=this.applicationRef.components;if(t&&t.length)return t[0];if(this._container)return this._container;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(t){this._container=t},t.prototype.getComponentRootNode=function(t){return t.hostView?t.hostView.rootNodes[0]:t.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(t,e){if(e){if(void 0!==e.inputs)for(var n=0,i=Object.getOwnPropertyNames(e.inputs);n<i.length;n++){var r=i[n];t.instance[r]=e.inputs[r]}if(void 0!==e.outputs)for(var o=0,s=Object.getOwnPropertyNames(e.outputs);o<s.length;o++){var a=s[o];t.instance[a]=e.outputs[a]}}return t},t.prototype.appendComponent=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=this.getRootViewContainerNode());var i=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector),r=this.applicationRef,o=this.getComponentRootNode(i);return this.projectComponentBindings(i,e),r.attachView(i.hostView),i.onDestroy(function(){r.detachView(i.hostView)}),i.instance.renderer.projectNodes(n,[o]),i},t=r([Object(i.Injectable)(),o("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector])],t)}()},"./src/common/tooltip/position/index.ts":function(t,e,n){"use strict";var i=n("./src/common/tooltip/position/placement.type.ts");n.d(e,"a",function(){return i.a});var r=n("./src/common/tooltip/position/position.ts");n.d(e,"b",function(){return r.a})},"./src/common/tooltip/position/placement.type.ts":function(t,e,n){"use strict";var i,r;n.d(e,"a",function(){return i}),(r=i||(i={}))[r.top="top"]="top",r[r.bottom="bottom"]="bottom",r[r.left="left"]="left",r[r.right="right"]="right"},"./src/common/tooltip/position/position.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var c=n("./src/common/tooltip/position/placement.type.ts");function s(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function u(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var i=function(){function a(){}return a.calculateVerticalAlignment=function(t,e,n){var i=s(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i},a.calculateVerticalCaret=function(t,e,n,i){var r;"top"===i&&(r=t.height/2-n.height/2+7),"bottom"===i&&(r=e.height-t.height/2-n.height/2-7),"center"===i&&(r=e.height/2-n.height/2);var o=s(t,e,i);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r},a.calculateHorizontalAlignment=function(t,e,n){var i=u(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i},a.calculateHorizontalCaret=function(t,e,n,i){var r;"left"===i&&(r=t.width/2-n.width/2+7),"right"===i&&(r=e.width-t.width/2-n.width/2-7),"center"===i&&(r=e.width/2-n.width/2);var o=u(t,e,i);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r},a.shouldFlip=function(t,e,n,i,r){var o=!1;"right"===n&&(u(t,e,i)+e.width+r>window.innerWidth&&(o=!0));"left"===n&&(u(t,e,i)-r<0&&(o=!0));("top"===n&&t.top-e.height-r<0&&(o=!0),"bottom"===n)&&(s(t,e,i)+e.height+r>window.innerHeight&&(o=!0));return o},a.positionCaret=function(t,e,n,i,r){var o=0,s=0;return t===c.a.right?(s=-7,o=a.calculateVerticalCaret(n,e,i,r)):t===c.a.left?(s=e.width,o=a.calculateVerticalCaret(n,e,i,r)):t===c.a.top?(o=e.height,s=a.calculateHorizontalCaret(n,e,i,r)):t===c.a.bottom&&(o=-7,s=a.calculateHorizontalCaret(n,e,i,r)),{top:o,left:s}},a.positionContent=function(t,e,n,i,r){var o=0,s=0;return t===c.a.right?(s=n.left+n.width+i,o=a.calculateVerticalAlignment(n,e,r)):t===c.a.left?(s=n.left-e.width-i,o=a.calculateVerticalAlignment(n,e,r)):t===c.a.top?(o=n.top-e.height-i,s=a.calculateHorizontalAlignment(n,e,r)):t===c.a.bottom&&(o=n.top+n.height+i,s=a.calculateHorizontalAlignment(n,e,r)),{top:o,left:s}},a.determinePlacement=function(t,e,n,i,r){if(a.shouldFlip(n,e,t,r,i)){if(t===c.a.right)return c.a.left;if(t===c.a.left)return c.a.right;if(t===c.a.top)return c.a.bottom;if(t===c.a.bottom)return c.a.top}return t},a}()},"./src/common/tooltip/show.type.ts":function(t,e,n){"use strict";var i,r;n.d(e,"a",function(){return i}),(r=i||(i={}))[r.all="all"]="all",r[r.focus="focus"]="focus",r[r.mouseover="mouseover"]="mouseover"},"./src/common/tooltip/style.type.ts":function(t,e,n){"use strict";var i,r;n.d(e,"a",function(){return i}),(r=i||(i={}))[r.popover="popover"]="popover",r[r.tooltip="tooltip"]="tooltip"},"./src/common/tooltip/tooltip.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/common/tooltip/tooltip.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/common/tooltip/tooltip.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("./src/utils/throttle.ts")),a=n("./src/common/tooltip/position/index.ts"),o=(n("./src/common/tooltip/style.type.ts"),n("./src/common/tooltip/alignment.type.ts"),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t,e){this.element=t,this.renderer=e}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var i=e.getBoundingClientRect();this.checkFlip(n,i),this.positionContent(e,n,i),this.showCaret&&this.positionCaret(n,i),setTimeout(function(){return t.renderer.setElementClass(e,"animate",!0)},1)}},t.prototype.positionContent=function(t,e,n){var i=a.b.positionContent(this.placement,n,e,this.spacing,this.alignment),r=i.top,o=i.left;this.renderer.setElementStyle(t,"top",r+"px"),this.renderer.setElementStyle(t,"left",o+"px")},t.prototype.positionCaret=function(t,e){var n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),r=a.b.positionCaret(this.placement,e,t,i,this.alignment),o=r.top,s=r.left;this.renderer.setElementStyle(n,"top",o+"px"),this.renderer.setElementStyle(n,"left",s+"px")},t.prototype.checkFlip=function(t,e){this.placement=a.b.determinePlacement(this.placement,e,t,this.spacing,this.alignment)},t.prototype.onWindowResize=function(){this.position()},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"host",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"showCaret",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"type",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"placement",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"alignment",void 0),o([Object(i.Input)(),s("design:type",Number)],t.prototype,"spacing",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"cssClass",void 0),o([Object(i.Input)(),s("design:type",String)],t.prototype,"title",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"template",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"context",void 0),o([Object(i.ViewChild)("caretElm"),s("design:type",Object)],t.prototype,"caretElm",void 0),o([Object(i.HostBinding)("class"),s("design:type",String),s("design:paramtypes",[])],t.prototype,"cssClasses",null),o([Object(i.HostListener)("window:resize"),Object(r.a)(100),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"onWindowResize",null),t=o([Object(i.Component)({selector:"ngx-tooltip-content",template:'\n    <div>\n      <span\n        #caretElm\n        [hidden]="!showCaret"\n        class="tooltip-caret position-{{this.placement}}">\n      </span>\n      <div class="tooltip-content">\n        <span *ngIf="!title">\n          <ng-template\n            [ngTemplateOutlet]="template"\n            [ngTemplateOutletContext]="{ model: context }">\n          </ng-template>\n        </span>\n        <span\n          *ngIf="title"\n          [innerHTML]="title">\n        </span>\n      </div>\n    </div>\n  ',encapsulation:i.ViewEncapsulation.None,styles:[n("./src/common/tooltip/tooltip.component.scss")]}),s("design:paramtypes",[i.ElementRef,i.Renderer])],t)}()},"./src/common/tooltip/tooltip.directive.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("@angular/core"),r=(n.n(i),n("./src/common/tooltip/position/index.ts")),o=n("./src/common/tooltip/style.type.ts"),s=n("./src/common/tooltip/alignment.type.ts"),a=n("./src/common/tooltip/show.type.ts"),c=n("./src/common/tooltip/tooltip.service.ts"),u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function t(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=r.a.top,this.tooltipAlignment=s.a.center,this.tooltipType=o.a.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=a.a.all,this.tooltipImmediateExit=!1,this.show=new i.EventEmitter,this.hide=new i.EventEmitter}return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===a.a.all||this.tooltipShowEvent===a.a.mouseover},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},t.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},t.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},t.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},t.prototype.onMouseLeave=function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component)if(this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}},t.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},t.prototype.showTooltip=function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}},t.prototype.addHideListeners=function(e){var n=this;this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",function(){clearTimeout(n.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",function(){n.hideTooltip(n.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(t){e.contains(t.target)||n.hideTooltip()}))},t.prototype.hideTooltip=function(t){var e=this;if(void 0===t&&(t=!1),this.component){var n=function(){e.mouseLeaveContentEvent&&e.mouseLeaveContentEvent(),e.mouseEnterContentEvent&&e.mouseEnterContentEvent(),e.documentClickEvent&&e.documentClickEvent(),e.hide.emit(!0),e.tooltipService.destroy(e.component),e.component=void 0};clearTimeout(this.timeout),t?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}},t.prototype.createBoundOptions=function(){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}},u([Object(i.Input)(),l("design:type",String)],t.prototype,"tooltipCssClass",void 0),u([Object(i.Input)(),l("design:type",String)],t.prototype,"tooltipTitle",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipAppendToBody",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipSpacing",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipShowCaret",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipPlacement",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipAlignment",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipType",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipCloseOnClickOutside",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipCloseOnMouseLeave",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipHideTimeout",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipShowTimeout",void 0),u([Object(i.Input)(),l("design:type",Object)],t.prototype,"tooltipTemplate",void 0),u([Object(i.Input)(),l("design:type",Number)],t.prototype,"tooltipShowEvent",void 0),u([Object(i.Input)(),l("design:type",Object)],t.prototype,"tooltipContext",void 0),u([Object(i.Input)(),l("design:type",Boolean)],t.prototype,"tooltipImmediateExit",void 0),u([Object(i.Output)(),l("design:type",Object)],t.prototype,"show",void 0),u([Object(i.Output)(),l("design:type",Object)],t.prototype,"hide",void 0),u([Object(i.HostListener)("focusin"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onFocus",null),u([Object(i.HostListener)("blur"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onBlur",null),u([Object(i.HostListener)("mouseenter"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([Object(i.HostListener)("mouseleave",["$event.target"]),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],t.prototype,"onMouseLeave",null),u([Object(i.HostListener)("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],t.prototype,"onMouseClick",null),t=u([Object(i.Directive)({selector:"[ngx-tooltip]"}),l("design:paramtypes",[c.a,i.ViewContainerRef,i.Renderer])],t)}()},"./src/common/tooltip/tooltip.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("@angular/common")),o=(n.n(r),n("./src/common/tooltip/tooltip.directive.ts")),s=n("./src/common/tooltip/tooltip.component.ts"),a=n("./src/common/tooltip/tooltip.service.ts"),c=n("./src/common/tooltip/injection.service.ts"),u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(i.NgModule)({declarations:[s.a,o.a],providers:[c.a,a.a],exports:[s.a,o.a],imports:[r.CommonModule],entryComponents:[s.a]})],t)}()},"./src/common/tooltip/tooltip.service.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i,r=n("@angular/core"),o=(n.n(r),n("./src/common/tooltip/injection.service.ts")),s=n("./src/common/tooltip/injection-registery.service.ts"),a=n("./src/common/tooltip/tooltip.component.ts"),c=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(n){function t(t){var e=n.call(this,t)||this;return e.injectionService=t,e.type=a.a,e}return c(t,n),t=u([Object(r.Injectable)(),l("design:paramtypes",[o.a])],t)}(s.a)},"./src/common/trim-label.helper.ts":function(t,e,n){"use strict";e.a=function(t,e){void 0===e&&(e=16);if("string"!=typeof t)return"number"==typeof t?t+"":"";return(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}},"./src/common/view-dimensions.helper.ts":function(t,e,n){"use strict";e.a=function(t){var e=t.width,n=t.height,i=t.margins,r=t.showXAxis,o=void 0!==r&&r,s=t.showYAxis,a=void 0!==s&&s,c=t.xAxisHeight,u=void 0===c?0:c,l=t.yAxisWidth,p=void 0===l?0:l,h=t.showXLabel,d=void 0!==h&&h,f=t.showYLabel,g=void 0!==f&&f,v=t.showLegend,m=void 0!==v&&v,y=t.legendType,b=void 0===y?"ordinal":y,x=t.columns,O=void 0===x?12:x,j=i[3],_=e,w=n-i[0]-i[2];m&&(O-="ordinal"===b?2:1);if(_=(_=_*O/12)-i[1]-i[3],o&&(w-=5,w-=u,d)){var S=30;w-=S}if(a&&(_-=5,_-=p,j+=p,j+=10,g)){var S=30;_-=S,j+=S}return _=Math.max(0,_),w=Math.max(0,w),{width:~~_,height:~~w,xOffset:~~j}}},"./src/force-directed-graph/force-directed-graph.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/force-directed-graph/force-directed-graph.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/force-directed-graph/force-directed-graph.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i,r=n("@angular/core"),o=(n.n(r),n("d3-force")),s=(n.n(o),n("./src/common/charts/chart.component.ts")),a=n("./src/common/base-chart.component.ts"),c=n("./src/common/view-dimensions.helper.ts"),u=n("./src/common/color.helper.ts"),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.force=Object(o.forceSimulation)().force("charge",Object(o.forceManyBody)()).force("collide",Object(o.forceCollide)(5)).force("x",Object(o.forceX)()).force("y",Object(o.forceY)()),t.forceLink=Object(o.forceLink)().id(function(t){return t.value}),t.legendTitle="Legend",t.nodes=[],t.links=[],t.activeEntries=[],t.tooltipDisabled=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[0,0,0,0],t.results=[],t.groupResultsBy=function(t){return t.value},t}return l(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(c.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="\n      translate("+(this.dims.xOffset+this.dims.width/2)+", "+(this.margin[0]+this.dims.height/2)+")\n    ",this.force&&this.force.nodes(this.nodes).force("link",this.forceLink.links(this.links)).alpha(.5).restart()},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.onActivate=function(t){-1<this.activeEntries.indexOf(t)||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},t.prototype.getSeriesDomain=function(){var e=this;return this.nodes.map(function(t){return e.groupResultsBy(t)}).reduce(function(t,e){return t.includes(e)?t:t.concat([e])},[]).sort()},t.prototype.trackLinkBy=function(t,e){return e.index},t.prototype.trackNodeBy=function(t,e){return e.value},t.prototype.setColors=function(){this.colors=new u.a(this.scheme,"ordinal",this.seriesDomain,this.customColors)},t.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors,title:this.legendTitle}},t.prototype.onDragStart=function(t,e){this.force.alphaTarget(.3).restart(),this.draggingNode=t,this.draggingStart={x:e.x-t.x,y:e.y-t.y},this.draggingNode.fx=e.x-this.draggingStart.x,this.draggingNode.fy=e.y-this.draggingStart.y},t.prototype.onDrag=function(t){this.draggingNode&&(this.draggingNode.fx=t.x-this.draggingStart.x,this.draggingNode.fy=t.y-this.draggingStart.y)},t.prototype.onDragEnd=function(t){this.draggingNode&&(this.force.alphaTarget(0),this.draggingNode.fx=void 0,this.draggingNode.fy=void 0,this.draggingNode=void 0)},p([Object(r.Input)(),h("design:type",Object)],t.prototype,"force",void 0),p([Object(r.Input)(),h("design:type",Object)],t.prototype,"forceLink",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"legend",void 0),p([Object(r.Input)(),h("design:type",String)],t.prototype,"legendTitle",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"nodes",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"links",void 0),p([Object(r.Input)(),h("design:type",Array)],t.prototype,"activeEntries",void 0),p([Object(r.Input)(),h("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"activate",void 0),p([Object(r.Output)(),h("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),p([Object(r.ContentChild)("linkTemplate"),h("design:type",r.TemplateRef)],t.prototype,"linkTemplate",void 0),p([Object(r.ContentChild)("nodeTemplate"),h("design:type",r.TemplateRef)],t.prototype,"nodeTemplate",void 0),p([Object(r.ContentChild)("tooltipTemplate"),h("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),p([Object(r.ViewChild)(s.a,{read:r.ElementRef}),h("design:type",r.ElementRef)],t.prototype,"chart",void 0),p([Object(r.Input)(),h("design:type",Function)],t.prototype,"groupResultsBy",void 0),p([Object(r.HostListener)("document:mousemove",["$event"]),h("design:type",Function),h("design:paramtypes",[MouseEvent]),h("design:returntype",void 0)],t.prototype,"onDrag",null),p([Object(r.HostListener)("document:mouseup",["$event"]),h("design:type",Function),h("design:paramtypes",[MouseEvent]),h("design:returntype",void 0)],t.prototype,"onDragEnd",null),t=p([Object(r.Component)({selector:"ngx-charts-force-directed-graph",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="force-directed-graph chart">\n        <svg:g class="links">\n          <svg:g *ngFor="let link of links; trackBy:trackLinkBy">\n            <ng-template *ngIf="linkTemplate"\n              [ngTemplateOutlet]="linkTemplate"\n              [ngTemplateOutletContext]="{ $implicit: link }">\n            </ng-template>\n            <svg:line *ngIf="!linkTemplate"\n              strokeWidth="1" class="edge"\n              [attr.x1]="link.source.x"\n              [attr.y1]="link.source.y"\n              [attr.x2]="link.target.x"\n              [attr.y2]="link.target.y"\n            />\n          </svg:g>\n        </svg:g>\n        <svg:g class="nodes">\n          <svg:g *ngFor="let node of nodes; trackBy:trackNodeBy"\n            [attr.transform]="\'translate(\' + node.x + \',\' + node.y + \')\'"\n            [attr.fill]="colors.getColor(groupResultsBy(node))"\n            [attr.stroke]="colors.getColor(groupResultsBy(node))"\n            (mousedown)="onDragStart(node, $event)"\n            (click)="onClick({name: node.value})"\n            ngx-tooltip\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipPlacement]="\'top\'"\n            [tooltipType]="\'tooltip\'"\n            [tooltipTitle]="tooltipTemplate ? undefined : node.value"\n            [tooltipTemplate]="tooltipTemplate"\n            [tooltipContext]="node">\n            <ng-template *ngIf="nodeTemplate"\n              [ngTemplateOutlet]="nodeTemplate"\n              [ngTemplateOutletContext]="{ $implicit: node }">\n            </ng-template>\n            <svg:circle *ngIf="!nodeTemplate" r="5" />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/force-directed-graph/force-directed-graph.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(a.a)},"./src/force-directed-graph/force-directed-graph.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("./src/force-directed-graph/force-directed-graph.component.ts")),o=n("./src/common/chart-common.module.ts");n.d(e,"a",function(){return r.a});var s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=function(){function t(){}return t=s([Object(i.NgModule)({imports:[o.a],declarations:[r.a],exports:[r.a]})],t)}()},"./src/force-directed-graph/index.ts":function(t,e,n){"use strict";var i=n("./src/force-directed-graph/force-directed-graph.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b});n("./src/force-directed-graph/force-directed-graph.component.ts")},"./src/gauge/gauge-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("./src/common/label.helper.ts")),o=n("./src/common/color.helper.ts"),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.tooltipText=function(t){return'\n      <span class="tooltip-label">'+Object(r.a)(t.data.name)+'</span>\n      <span class="tooltip-val">'+(this.valueFormatting?this.valueFormatting(t.data.value):Object(r.a)(t.data.value))+"</span>\n    "},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"backgroundArc",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"valueArc",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"cornerRadius",void 0),s([Object(i.Input)(),a("design:type",o.a)],t.prototype,"colors",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"isActive",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),s([Object(i.Input)(),a("design:type",Function)],t.prototype,"valueFormatting",void 0),s([Object(i.Input)(),a("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"activate",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"deactivate",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-gauge-arc]",template:'\n    <svg:g ngx-charts-pie-arc\n      class="background-arc"\n      [startAngle]="0"\n      [endAngle]="backgroundArc.endAngle"\n      [innerRadius]="backgroundArc.innerRadius"\n      [outerRadius]="backgroundArc.outerRadius"\n      [cornerRadius]="cornerRadius"\n      [data]="backgroundArc.data"\n      [animate]="false"\n      [pointerEvents]="false">\n    </svg:g>\n    <svg:g ngx-charts-pie-arc\n      [startAngle]="0"\n      [endAngle]="valueArc.endAngle"\n      [innerRadius]="valueArc.innerRadius"\n      [outerRadius]="valueArc.outerRadius"\n      [cornerRadius]="cornerRadius"\n      [fill]="colors.getColor(valueArc.data.name)"\n      [data]="valueArc.data"\n      [animate]="animations"\n      [isActive]="isActive"\n      (select)="select.emit($event)"\n      (activate)="activate.emit($event)"\n      (deactivate)="deactivate.emit($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(valueArc)"\n      [tooltipTemplate]="tooltipTemplate"\n      [tooltipContext]="valueArc.data">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/gauge/gauge-axis.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),s=(n.n(i),n("d3-shape")),r=(n.n(s),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.rotate=""}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.rotationAngle=-90+this.startAngle,this.rotate="rotate("+this.rotationAngle+")",this.ticks=this.getTicks()},t.prototype.getTicks=function(){for(var t=this.angleSpan/this.bigSegments,e=t/this.smallSegments,n={big:[],small:[]},i=this.radius+10,r=i+20+10,o=0;o<=this.bigSegments;o++){var s=o*t,a=s*Math.PI/180,c=this.getTextAnchor(s),u=!1;if(0===o&&360===this.angleSpan&&(u=!0),!u){var l=Number.parseFloat(this.valueScale.invert(s).toString()).toLocaleString();this.tickFormatting&&(l=this.tickFormatting(l)),n.big.push({line:this.getTickPath(i,20,a),textAnchor:c,text:l,textTransform:"\n            translate("+r*Math.cos(a)+", "+r*Math.sin(a)+") rotate("+-this.rotationAngle+")\n          "})}if(o!==this.bigSegments)for(var p=1;p<=this.smallSegments;p++){var h=(s+p*e)*Math.PI/180;n.small.push({line:this.getTickPath(i,10,h)})}}return n},t.prototype.getTextAnchor=function(t){var e="middle";return 45<(t=(this.startAngle+t)%360)&&t<=135?e="start":225<t&&t<=315&&(e="end"),e},t.prototype.getTickPath=function(t,e,n){var i=t*Math.sin(n),r=(t+e)*Math.sin(n),o=[{x:t*Math.cos(n),y:i},{x:(t+e)*Math.cos(n),y:r}];return Object(s.line)().x(function(t){return t.x}).y(function(t){return t.y})(o)},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"bigSegments",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"smallSegments",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"min",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"max",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"angleSpan",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"startAngle",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"radius",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"valueScale",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"tickFormatting",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-gauge-axis]",template:'\n    <svg:g [attr.transform]="rotate">\n        <svg:g *ngFor="let tick of ticks.big"\n            class="gauge-tick gauge-tick-large">\n            <svg:path [attr.d]="tick.line" />\n        </svg:g>\n        <svg:g *ngFor="let tick of ticks.big"\n            class="gauge-tick gauge-tick-large">\n            <svg:text\n                [style.textAnchor]="tick.textAnchor"\n                [attr.transform]="tick.textTransform"\n                alignment-baseline="central">\n                {{tick.text}}\n            </svg:text>\n        </svg:g>\n        <svg:g *ngFor="let tick of ticks.small"\n            class="gauge-tick gauge-tick-small">\n            <svg:path [attr.d]="tick.line" />\n        </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/gauge/gauge.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/gauge/gauge.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/gauge/gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(i){function t(){var t=null!==i&&i.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.min=0,t.max=100,t.bigSegments=10,t.smallSegments=5,t.showAxis=!0,t.startAngle=-120,t.angleSpan=240,t.activeEntries=[],t.tooltipDisabled=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.resizeScale=1,t.rotation="",t.textTransform="scale(1, 1)",t.cornerRadius=10,t}return u(t,i),t.prototype.ngAfterViewInit=function(){var t=this;i.prototype.ngAfterViewInit.call(this),setTimeout(function(){return t.scaleText()})},t.prototype.update=function(){var t=this;i.prototype.update.call(this),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions();var e=this.margin[3]+this.dims.width/2,n=this.margin[0]+this.dims.height/2;this.transform="translate("+e+", "+n+")",this.rotation="rotate("+this.startAngle+")",setTimeout(function(){return t.scaleText()},50)},t.prototype.getArcs=function(){var t=[],e=.7*this.outerRadius,n=Math.min(e/this.results.length,10),i=.7*n;this.textRadius=this.outerRadius-this.results.length*n,this.cornerRadius=Math.floor(i/2);for(var r=0,o=0,s=this.results;o<s.length;o++){var a=s[o],c=this.outerRadius-r*n,u=c-i,l={backgroundArc:{endAngle:this.angleSpan*Math.PI/180,innerRadius:u,outerRadius:c,data:{value:this.max,name:a.name}},valueArc:{endAngle:Math.min(this.valueScale(a.value),this.angleSpan)*Math.PI/180,innerRadius:u,outerRadius:c,data:{value:a.value,name:a.name}}};t.push(l),r++}return t},t.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getValueDomain=function(){var t=this.results.map(function(t){return t.value}),e=Math.min.apply(Math,t),n=Math.max.apply(Math,t);return void 0!==this.min?this.min=Math.min(this.min,e):this.min=e,void 0!==this.max?this.max=Math.max(this.max,n):this.max=n,[this.min,this.max]},t.prototype.getValueScale=function(){return Object(o.scaleLinear)().range([0,this.angleSpan]).nice().domain(this.valueDomain)},t.prototype.getDisplayValue=function(){var t=this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(t):t.toLocaleString()},t.prototype.scaleText=function(t){var e=this;void 0===t&&(t=!0);var n=this.textEl.nativeElement.getBoundingClientRect().width,i=this.resizeScale;if(0===n)this.resizeScale=1;else{var r=this.textRadius;this.resizeScale=Math.floor(r/(n/this.resizeScale)*100)/100}this.resizeScale!==i&&(this.textTransform="scale("+this.resizeScale+", "+this.resizeScale+")",this.cd.markForCheck(),t&&setTimeout(function(){return e.scaleText(!1)},50))},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.getLegendOptions=function(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle}},t.prototype.setColors=function(){this.colors=new c.a(this.scheme,"ordinal",this.domain,this.customColors)},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name&&e.series===t.series})},t.prototype.trackBy=function(t,e){return e.valueArc.data.name},l([Object(r.Input)(),p("design:type",Object)],t.prototype,"legend",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"legendTitle",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"min",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"max",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"textValue",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"units",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"bigSegments",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"smallSegments",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"results",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"showAxis",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"startAngle",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"angleSpan",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"activeEntries",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"axisTickFormatting",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Function)],t.prototype,"valueFormatting",void 0),l([Object(r.Input)(),p("design:type",Array)],t.prototype,"margin",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"activate",void 0),l([Object(r.Output)(),p("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),l([Object(r.ViewChild)("textEl"),p("design:type",r.ElementRef)],t.prototype,"textEl",void 0),t=l([Object(r.Component)({selector:"ngx-charts-gauge",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g [attr.transform]="transform" class="gauge chart">\n        <svg:g *ngFor="let arc of arcs; trackBy:trackBy" [attr.transform]="rotation">\n          <svg:g ngx-charts-gauge-arc\n            [backgroundArc]="arc.backgroundArc"\n            [valueArc]="arc.valueArc"\n            [cornerRadius]="cornerRadius"\n            [colors]="colors"\n            [isActive]="isActive(arc.valueArc.data)"\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipTemplate]="tooltipTemplate"\n            [valueFormatting]="valueFormatting"\n            [animations]="animations"\n            (select)="onClick($event)"\n            (activate)="onActivate($event)"\n            (deactivate)="onDeactivate($event)">\n          </svg:g>\n        </svg:g>\n\n        <svg:g ngx-charts-gauge-axis\n          *ngIf="showAxis"\n          [bigSegments]="bigSegments"\n          [smallSegments]="smallSegments"\n          [min]="min"\n          [max]="max"\n          [radius]="outerRadius"\n          [angleSpan]="angleSpan"\n          [valueScale]="valueScale"\n          [startAngle]="startAngle"\n          [tickFormatting]="axisTickFormatting">\n        </svg:g>\n\n        <svg:text #textEl\n            [style.textAnchor]="\'middle\'"\n            [attr.transform]="textTransform"\n            alignment-baseline="central">\n          <tspan x="0" dy="0">{{displayValue}}</tspan>\n          <tspan x="0" dy="1.2em">{{units}}</tspan>\n        </svg:text>\n\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/gauge.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(s.a)},"./src/gauge/gauge.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return h});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/gauge/linear-gauge.component.ts"),s=n("./src/gauge/gauge.component.ts"),a=n("./src/gauge/gauge-arc.component.ts"),c=n("./src/gauge/gauge-axis.component.ts"),u=n("./src/pie-chart/pie-chart.module.ts"),l=n("./src/bar-chart/bar-chart.module.ts");n.d(e,"c",function(){return s.a}),n.d(e,"a",function(){return a.a}),n.d(e,"b",function(){return c.a}),n.d(e,"e",function(){return o.a});var p=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},h=function(){function t(){}return t=p([Object(i.NgModule)({imports:[r.a,u.d,l.a],declarations:[o.a,s.a,a.a,c.a],exports:[o.a,s.a,a.a,c.a]})],t)}()},"./src/gauge/index.ts":function(t,e,n){"use strict";var i=n("./src/gauge/gauge.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e});n("./src/gauge/gauge.component.ts")},"./src/gauge/linear-gauge.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/gauge/linear-gauge.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/gauge/linear-gauge.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("d3-scale")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(i){function t(){var t=null!==i&&i.apply(this,arguments)||this;return t.min=0,t.max=100,t.value=0,t.margin=[10,20,10,20],t.valueResizeScale=1,t.unitsResizeScale=1,t.valueTextTransform="",t.valueTranslate="",t.unitsTextTransform="",t.unitsTranslate="",t}return u(t,i),t.prototype.ngAfterViewInit=function(){var t=this;i.prototype.ngAfterViewInit.call(this),setTimeout(function(){t.scaleText("value"),t.scaleText("units")})},t.prototype.update=function(){var t=this;i.prototype.update.call(this),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();var e=this.margin[3]+this.dims.width/2,n=this.margin[0]+this.dims.height/2;this.transform="translate("+e+", "+n+")",this.transformLine="translate("+(this.margin[3]+this.valueScale(this.previousValue))+", "+n+")",this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",setTimeout(function(){return t.scaleText("value")},50),setTimeout(function(){return t.scaleText("units")},50)},t.prototype.getValueDomain=function(){return[this.min,this.max]},t.prototype.getValueScale=function(){return Object(o.scaleLinear)().range([0,this.dims.width]).domain(this.valueDomain)},t.prototype.getDisplayValue=function(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()},t.prototype.scaleText=function(t,e){var n,i,r=this;void 0===e&&(e=!0),"value"===t?(n=this.valueTextEl,i=this.valueResizeScale):(n=this.unitsTextEl,i=this.unitsResizeScale);var o=n.nativeElement.getBoundingClientRect(),s=o.width,a=o.height;if(0!==s&&0!==a){var c=i,u=this.dims.width,l=Math.max(this.dims.height/2-15,0),p=Math.floor(u/(s/i)*100)/100,h=Math.floor(l/(a/i)*100)/100;(i=Math.min(h,p))!==c&&("value"===t?(this.valueResizeScale=i,this.valueTextTransform="scale("+i+", "+i+")"):(this.unitsResizeScale=i,this.unitsTextTransform="scale("+i+", "+i+")"),this.cd.markForCheck(),e&&setTimeout(function(){r.scaleText(t,!1)},50))}},t.prototype.onClick=function(){this.select.emit({name:"Value",value:this.value})},t.prototype.setColors=function(){this.colors=new c.a(this.scheme,"ordinal",[this.value],this.customColors)},l([Object(r.Input)(),p("design:type",Number)],t.prototype,"min",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"max",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"value",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"units",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"previousValue",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"valueFormatting",void 0),l([Object(r.ViewChild)("valueTextEl"),p("design:type",r.ElementRef)],t.prototype,"valueTextEl",void 0),l([Object(r.ViewChild)("unitsTextEl"),p("design:type",r.ElementRef)],t.prototype,"unitsTextEl",void 0),t=l([Object(r.Component)({selector:"ngx-charts-linear-gauge",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false"\n      [animations]="animations"\n      (click)="onClick()">\n      <svg:g class="linear-gauge chart">\n        <svg:g ngx-charts-bar\n          class="background-bar"\n          [width]="dims.width"\n          [height]="3"\n          [x]="margin[3]"\n          [y]="dims.height / 2 + margin[0] - 2"\n          [data]="{}"\n          [orientation]="\'horizontal\'"\n          [roundEdges]="true"\n          [animations]="animations">\n        </svg:g>\n        <svg:g ngx-charts-bar\n          [width]="valueScale(value)"\n          [height]="3"\n          [x]="margin[3]"\n          [y]="dims.height / 2 + margin[0] - 2"\n          [fill]="colors.getColor(units)"\n          [data]="{}"\n          [orientation]="\'horizontal\'"\n          [roundEdges]="true"\n          [animations]="animations">\n        </svg:g>\n\n        <svg:line\n          *ngIf="hasPreviousValue"\n          [attr.transform]="transformLine"\n          x1="0"\n          y1="5"\n          x2="0"\n          y2="15"\n          [attr.stroke]="colors.getColor(units)"\n        />\n\n        <svg:line\n          *ngIf="hasPreviousValue"\n          [attr.transform]="transformLine"\n          x1="0"\n          y1="-5"\n          x2="0"\n          y2="-15"\n          [attr.stroke]="colors.getColor(units)"\n        />\n\n        <svg:g [attr.transform]="transform">\n          <svg:g [attr.transform]="valueTranslate">\n            <svg:text #valueTextEl\n              class="value"\n              [style.textAnchor]="\'middle\'"\n              [attr.transform]="valueTextTransform"\n              alignment-baseline="after-edge">\n              {{displayValue}}\n            </svg:text>\n          </svg:g>\n\n          <svg:g [attr.transform]="unitsTranslate">\n            <svg:text #unitsTextEl\n              class="units"\n              [style.textAnchor]="\'middle\'"\n              [attr.transform]="unitsTextTransform"\n              alignment-baseline="before-edge">\n              {{units}}\n            </svg:text>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/gauge/linear-gauge.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(s.a)},"./src/heat-map/heat-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),o=(n.n(i),n("./src/common/label.helper.ts")),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(){this.tooltipDisabled=!1,this.animations=!0,this.select=new i.EventEmitter}return t.prototype.ngOnInit=function(){this.tooltipText||(this.tooltipText=this.getTooltipText)},t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.cells=this.getCells()},t.prototype.getCells=function(){var i=this,r=[];return this.data.map(function(n){n.series.map(function(t){var e=t.value;r.push({row:n,cell:t,x:i.xScale(n.name),y:i.yScale(t.name),width:i.xScale.bandwidth(),height:i.yScale.bandwidth(),fill:i.colors.getColor(e),data:e,label:Object(o.a)(t.name),series:n.name})})}),r},t.prototype.getTooltipText=function(t){var e=t.label,n=t.data;return'\n      <span class="tooltip-label">'+t.series+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+"</span>\n    "},t.prototype.trackBy=function(t,e){return e.tooltipText},t.prototype.onClick=function(t,e,n){this.select.emit({name:e,value:t,series:n})},r([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"xScale",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"yScale",void 0),r([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"gradient",void 0),r([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),r([Object(i.Input)(),s("design:type",Object)],t.prototype,"tooltipText",void 0),r([Object(i.Input)(),s("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),r([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-heat-map-cell-series]",template:'\n    <svg:g\n      ngx-charts-heat-map-cell\n      *ngFor="let c of cells; trackBy:trackBy"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [fill]="c.fill"\n      [data]="c.data"\n      (select)="onClick($event, c.label, c.series)"\n      [gradient]="gradient"\n      [animations]="animations"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(c)"\n      [tooltipTemplate]="tooltipTemplate"\n      [tooltipContext]="{series: c.series, name: c.label, value: c.data}">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/heat-map/heat-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("d3-selection")),o=(n.n(r),n("./src/utils/id.ts")),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.gradient=!1,this.animations=!0,this.select=new i.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.transform="translate("+this.x+" , "+this.y+")",this.startOpacity=.3,this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops(),this.animations&&this.loadAnimation()},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]},t.prototype.loadAnimation=function(){Object(r.select)(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()},t.prototype.animateToCurrentForm=function(){Object(r.select)(this.element).select(".cell").transition().duration(750).attr("opacity",1)},t.prototype.onClick=function(){this.select.emit(this.data)},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"fill",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"x",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"y",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"width",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"height",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"label",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"gradient",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-heat-map-cell]",template:'\n    <svg:g [attr.transform]="transform" class="cell">\n      <defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:rect\n        [attr.fill]="gradient ? gradientUrl : fill"\n        rx="3"\n        [attr.width]="width"\n        [attr.height]="height"\n        class="cell"\n        style="cursor: pointer"\n        (click)="onClick()"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[i.ElementRef])],t)}()},"./src/heat-map/heat-map.component.ts":function(t,e,i){"use strict";i.d(e,"a",function(){return h});var r,o=i("@angular/core"),s=(i.n(o),i("d3-scale")),n=(i.n(s),i("./src/common/base-chart.component.ts")),a=i("./src/common/view-dimensions.helper.ts"),c=i("./src/common/color.helper.ts"),u=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.legendTitle="Legend",t.innerPadding=8,t.tooltipDisabled=!1,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.scaleType="linear",t}return u(t,n),t.prototype.update=function(){if(n.prototype.update.call(this),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=this.getScaleType(this.valueDomain),this.dims=Object(a.a)({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.scaleType}),"linear"===this.scaleType){var t=Math.min.apply(Math,[0].concat(this.valueDomain)),e=Math.max.apply(Math,this.valueDomain);this.valueDomain=[t,e]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.rects=this.getRects()},t.prototype.getXDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++){var i=n[e];t.includes(i.name)||t.push(i.name)}return t},t.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getValueDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.value)||t.push(o.value)}return t},t.prototype.getDimension=function(t,e,n,i){return void 0===e&&(e=0),"string"==typeof t&&(t=t.replace("[","").replace("]","").replace("px","").replace("'","")).includes(",")&&(t=t.split(",")),Array.isArray(t)&&"number"==typeof e?this.getDimension(t[e],null,n,i):"string"==typeof t&&t.includes("%")?+t.replace("%","")/100:n/(i/+t+1)},t.prototype.getXScale=function(){var t=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return Object(s.scaleBand)().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(t)},t.prototype.getYScale=function(){var t=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return Object(s.scaleBand)().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(t)},t.prototype.getRects=function(){var n=this,i=[];return this.xDomain.map(function(e){n.yDomain.map(function(t){i.push({x:n.xScale(e),y:n.yScale(t),rx:3,width:n.xScale.bandwidth(),height:n.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),i},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.getScaleType=function(t){for(var e=!0,n=0,i=t;n<i.length;n++){"number"!=typeof i[n]&&(e=!1)}return e?"linear":"ordinal"},t.prototype.setColors=function(){this.colors=new c.a(this.scheme,this.scaleType,this.valueDomain)},t.prototype.getLegendOptions=function(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:"ordinal"===this.scaleType?this.colors:this.colors.scale,title:"ordinal"===this.scaleType?this.legendTitle:void 0}},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},l([Object(o.Input)(),p("design:type",Object)],t.prototype,"legend",void 0),l([Object(o.Input)(),p("design:type",String)],t.prototype,"legendTitle",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"xAxis",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"yAxis",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"showXAxisLabel",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"showYAxisLabel",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"xAxisLabel",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"yAxisLabel",void 0),l([Object(o.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"innerPadding",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),l([Object(o.Input)(),p("design:type",Array)],t.prototype,"xAxisTicks",void 0),l([Object(o.Input)(),p("design:type",Array)],t.prototype,"yAxisTicks",void 0),l([Object(o.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(o.Input)(),p("design:type",Object)],t.prototype,"tooltipText",void 0),l([Object(o.ContentChild)("tooltipTemplate"),p("design:type",o.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=l([Object(o.Component)({selector:"ngx-charts-heat-map",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [animations]="animations"\n      [legendOptions]="legendOptions"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="transform" class="heat-map chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:rect *ngFor="let rect of rects"\n          [attr.x]="rect.x"\n          [attr.y]="rect.y"\n          [attr.rx]="rect.rx"\n          [attr.width]="rect.width"\n          [attr.height]="rect.height"\n          [attr.fill]="rect.fill"\n        />\n        <svg:g ngx-charts-heat-map-cell-series\n          [xScale]="xScale"\n          [yScale]="yScale"\n          [colors]="colors"\n          [data]="results"\n          [gradient]="gradient"\n          [animations]="animations"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [tooltipText]="tooltipText"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[i("./src/common/base-chart.component.scss")],encapsulation:o.ViewEncapsulation.None})],t)}(n.a)},"./src/heat-map/heat-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/heat-map/heat-map-cell.component.ts"),s=n("./src/heat-map/heat-map-cell-series.component.ts"),a=n("./src/heat-map/heat-map.component.ts");n.d(e,"b",function(){return o.a}),n.d(e,"a",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/heat-map/index.ts":function(t,e,n){"use strict";var i=n("./src/heat-map/heat-map.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/heat-map/heat-map.component.ts"),n("./src/heat-map/heat-map-cell.component.ts"),n("./src/heat-map/heat-map-cell-series.component.ts")},"./src/index.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("./src/ngx-charts.module.ts");n.d(e,"NgxChartsModule",function(){return i.a});var r=n("./src/common/index.ts");n.d(e,"ChartCommonModule",function(){return r.e}),n.d(e,"ColorHelper",function(){return r.i}),n.d(e,"ChartComponent",function(){return r.f}),n.d(e,"AreaComponent",function(){return r.c}),n.d(e,"BaseChartComponent",function(){return r.d}),n.d(e,"CircleComponent",function(){return r.g}),n.d(e,"CircleSeriesComponent",function(){return r.h}),n.d(e,"gridSize",function(){return r.E}),n.d(e,"gridLayout",function(){return r.D}),n.d(e,"GridPanelComponent",function(){return r.k}),n.d(e,"GridPanelSeriesComponent",function(){return r.l}),n.d(e,"SvgLinearGradientComponent",function(){return r.r}),n.d(e,"SvgRadialGradientComponent",function(){return r.s}),n.d(e,"TooltipArea",function(){return r.u}),n.d(e,"tickFormat",function(){return r.F}),n.d(e,"trimLabel",function(){return r.G}),n.d(e,"calculateViewDimensions",function(){return r.z}),n.d(e,"formatLabel",function(){return r.C}),n.d(e,"LegendComponent",function(){return r.m}),n.d(e,"ScaleLegendComponent",function(){return r.o}),n.d(e,"LegendEntryComponent",function(){return r.n}),n.d(e,"AdvancedLegendComponent",function(){return r.a}),n.d(e,"TooltipModule",function(){return r.x}),n.d(e,"TooltipService",function(){return r.y}),n.d(e,"TooltipContentComponent",function(){return r.v}),n.d(e,"TooltipDirective",function(){return r.w}),n.d(e,"StyleTypes",function(){return r.q}),n.d(e,"AlignmentTypes",function(){return r.b}),n.d(e,"ShowTypes",function(){return r.p}),n.d(e,"CountUpDirective",function(){return r.j}),n.d(e,"count",function(){return r.A}),n.d(e,"decimalChecker",function(){return r.B}),n.d(e,"Timeline",function(){return r.t});var o=n("./src/area-chart/index.ts");n.d(e,"AreaChartComponent",function(){return o.a}),n.d(e,"AreaChartNormalizedComponent",function(){return o.c}),n.d(e,"AreaChartStackedComponent",function(){return o.d}),n.d(e,"AreaSeriesComponent",function(){return o.e}),n.d(e,"AreaChartModule",function(){return o.b});var s=n("./src/bar-chart/index.ts");n.d(e,"BarLabelComponent",function(){return s.g}),n.d(e,"BarComponent",function(){return s.b}),n.d(e,"BarHorizontalComponent",function(){return s.d}),n.d(e,"BarHorizontal2DComponent",function(){return s.c}),n.d(e,"BarHorizontalNormalizedComponent",function(){return s.e}),n.d(e,"BarHorizontalStackedComponent",function(){return s.f}),n.d(e,"BarVerticalComponent",function(){return s.i}),n.d(e,"BarVertical2DComponent",function(){return s.h}),n.d(e,"BarVerticalNormalizedComponent",function(){return s.j}),n.d(e,"BarVerticalStackedComponent",function(){return s.k}),n.d(e,"SeriesHorizontal",function(){return s.m}),n.d(e,"SeriesVerticalComponent",function(){return s.n}),n.d(e,"BarChartModule",function(){return s.a}),n.d(e,"D0Types",function(){return s.l});var a=n("./src/bubble-chart/index.ts");n.d(e,"BubbleChartComponent",function(){return a.a}),n.d(e,"BubbleSeriesComponent",function(){return a.c}),n.d(e,"BubbleChartModule",function(){return a.b});var c=n("./src/force-directed-graph/index.ts");n.d(e,"ForceDirectedGraphComponent",function(){return c.a}),n.d(e,"ForceDirectedGraphModule",function(){return c.b});var u=n("./src/heat-map/index.ts");n.d(e,"HeatMapCellComponent",function(){return u.b}),n.d(e,"HeatCellSeriesComponent",function(){return u.a}),n.d(e,"HeatMapComponent",function(){return u.c}),n.d(e,"HeatMapModule",function(){return u.d});var l=n("./src/line-chart/index.ts");n.d(e,"LineComponent",function(){return l.c}),n.d(e,"LineChartComponent",function(){return l.a}),n.d(e,"LineSeriesComponent",function(){return l.d}),n.d(e,"LineChartModule",function(){return l.b});var p=n("./src/polar-chart/index.ts");n.d(e,"PolarChartComponent",function(){return p.a}),n.d(e,"PolarSeriesComponent",function(){return p.c}),n.d(e,"PolarChartModule",function(){return p.b});var h=n("./src/number-card/index.ts");n.d(e,"CardComponent",function(){return h.a}),n.d(e,"CardSeriesComponent",function(){return h.b}),n.d(e,"NumberCardComponent",function(){return h.c}),n.d(e,"NumberCardModule",function(){return h.d});var d=n("./src/pie-chart/index.ts");n.d(e,"AdvancedPieChartComponent",function(){return d.a}),n.d(e,"PieLabelComponent",function(){return d.g}),n.d(e,"PieArcComponent",function(){return d.b}),n.d(e,"PieChartComponent",function(){return d.c}),n.d(e,"PieGridComponent",function(){return d.e}),n.d(e,"PieGridSeriesComponent",function(){return d.f}),n.d(e,"PieSeriesComponent",function(){return d.h}),n.d(e,"PieChartModule",function(){return d.d});var f=n("./src/tree-map/index.ts");n.d(e,"TreeMapCellComponent",function(){return f.a}),n.d(e,"TreeMapCellSeriesComponent",function(){return f.b}),n.d(e,"TreeMapComponent",function(){return f.c}),n.d(e,"TreeMapModule",function(){return f.d});var g=n("./src/gauge/index.ts");n.d(e,"GaugeComponent",function(){return g.c}),n.d(e,"GaugeArcComponent",function(){return g.a}),n.d(e,"GaugeAxisComponent",function(){return g.b}),n.d(e,"LinearGaugeComponent",function(){return g.e}),n.d(e,"GaugeModule",function(){return g.d})},"./src/line-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/line-chart/line-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/line-chart/line-chart.component.ts"),n("./src/line-chart/line.component.ts"),n("./src/line-chart/line-series.component.ts")},"./src/line-chart/line-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("d3-shape")),c=(n.n(a),n("./src/common/view-dimensions.helper.ts")),u=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/id.ts"),h=n("./src/common/domain.helper.ts"),d=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},g=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legendTitle="Legend",t.showGridLines=!0,t.curve=a.curveLinear,t.activeEntries=[],t.roundDomains=!1,t.tooltipDisabled=!1,t.showRefLines=!1,t.showRefLabels=!0,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.timelineHeight=50,t.timelinePadding=10,t}return d(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(c.a)({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}),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"+Object(p.a)().toString(),this.clipPath="url(#"+this.clipPathId+")"},t.prototype.updateTimeline=function(){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]+")")},t.prototype.getXDomain=function(){var t=Object(h.a)(this.results);this.scaleType=this.getScaleType(t);var e,n,i=[];return"linear"===this.scaleType&&(t=t.map(function(t){return Number(t)})),"time"!==this.scaleType&&"linear"!==this.scaleType||(e=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,t),n=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,t)),"time"===this.scaleType?(i=[new Date(e),new Date(n)],this.xSet=t.slice().sort(function(t,e){var n=t.getTime(),i=e.getTime();return i<n?1:n<i?-1:0})):"linear"===this.scaleType?(i=[e,n],this.xSet=t.slice().sort(function(t,e){return t-e})):(i=t,this.xSet=t),i},t.prototype.getYDomain=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.indexOf(o.value)<0&&t.push(o.value),void 0!==o.min&&(this.hasRange=!0,t.indexOf(o.min)<0&&t.push(o.min)),void 0!==o.max&&(this.hasRange=!0,t.indexOf(o.max)<0&&t.push(o.max))}var s=t.slice();return this.autoScale||s.push(0),[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,s),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,s)]},t.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getXScale=function(t,e){var n;return"time"===this.scaleType?n=Object(s.scaleTime)().range([0,e]).domain(t):"linear"===this.scaleType?(n=Object(s.scaleLinear)().range([0,e]).domain(t),this.roundDomains&&(n=n.nice())):"ordinal"===this.scaleType&&(n=Object(s.scalePoint)().range([0,e]).padding(.1).domain(t)),n},t.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([e,0]).domain(t);return this.roundDomains?n.nice():n},t.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];this.isDate(o)||(e=!1),"number"!=typeof o&&(n=!1)}return e?"time":n?"linear":"ordinal"},t.prototype.isDate=function(t){return t instanceof Date},t.prototype.updateDomain=function(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},t.prototype.updateHoveredVertical=function(t){this.hoveredVertical=t.value,this.deactivateAll()},t.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.name},t.prototype.setColors=function(){var t;t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.colors=new u.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){var t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0};return"ordinal"===t.scaleType?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){this.deactivateAll(),-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e],this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},f([Object(r.Input)(),g("design:type",Object)],t.prototype,"legend",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"legendTitle",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"xAxis",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"yAxis",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"showXAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"showYAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"xAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"yAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"autoScale",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"timeline",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"gradient",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showGridLines",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"curve",void 0),f([Object(r.Input)(),g("design:type",Array)],t.prototype,"activeEntries",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"schemeType",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),f([Object(r.Input)(),g("design:type",Array)],t.prototype,"xAxisTicks",void 0),f([Object(r.Input)(),g("design:type",Array)],t.prototype,"yAxisTicks",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"roundDomains",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showRefLines",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"referenceLines",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showRefLabels",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"xScaleMin",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"xScaleMax",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"yScaleMin",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"yScaleMax",void 0),f([Object(r.Output)(),g("design:type",r.EventEmitter)],t.prototype,"activate",void 0),f([Object(r.Output)(),g("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),f([Object(r.ContentChild)("tooltipTemplate"),g("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),f([Object(r.ContentChild)("seriesTooltipTemplate"),g("design:type",r.TemplateRef)],t.prototype,"seriesTooltipTemplate",void 0),f([Object(r.HostListener)("mouseleave"),g("design:type",Function),g("design:paramtypes",[]),g("design:returntype",void 0)],t.prototype,"hideCircles",null),t=f([Object(r.Component)({selector:"ngx-charts-line-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:defs>\n        <svg:clipPath [attr.id]="clipPathId">\n          <svg:rect\n            [attr.width]="dims.width + 10"\n            [attr.height]="dims.height + 10"\n            [attr.transform]="\'translate(-5, -5)\'"/>\n        </svg:clipPath>\n      </svg:defs>\n      <svg:g [attr.transform]="transform" class="line-chart chart">\n        <svg:g ngx-charts-x-axis\n          *ngIf="xAxis"\n          [xScale]="xScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showXAxisLabel"\n          [labelText]="xAxisLabel"\n          [tickFormatting]="xAxisTickFormatting"\n          [ticks]="xAxisTicks"\n          (dimensionsChanged)="updateXAxisHeight($event)">\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          *ngIf="yAxis"\n          [yScale]="yScale"\n          [dims]="dims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          [ticks]="yAxisTicks"\n          [referenceLines]="referenceLines"\n          [showRefLines]="showRefLines"\n          [showRefLabels]="showRefLabels"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g [attr.clip-path]="clipPath">\n          <svg:g *ngFor="let series of results; trackBy:trackBy" [@animationState]="\'active\'">\n            <svg:g ngx-charts-line-series\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [curve]="curve"\n              [rangeFillOpacity]="rangeFillOpacity"\n              [hasRange]="hasRange"\n              [animations]="animations"\n            />\n          </svg:g>\n\n          <svg:g *ngIf="!tooltipDisabled" (mouseleave)="hideCircles()">\n            <svg:g ngx-charts-tooltip-area\n              [dims]="dims"\n              [xSet]="xSet"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [results]="results"\n              [colors]="colors"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="seriesTooltipTemplate"\n              (hover)="updateHoveredVertical($event)"\n            />\n\n            <svg:g *ngFor="let series of results">\n              <svg:g ngx-charts-circle-series\n                [xScale]="xScale"\n                [yScale]="yScale"\n                [colors]="colors"\n                [data]="series"\n                [scaleType]="scaleType"\n                [visibleValue]="hoveredVertical"\n                [activeEntries]="activeEntries"\n                [tooltipDisabled]="tooltipDisabled"\n                [tooltipTemplate]="tooltipTemplate"\n                (select)="onClick($event, series)"\n                (activate)="onActivate($event)"\n                (deactivate)="onDeactivate($event)"\n              />\n            </svg:g>\n          </svg:g>\n        </svg:g>\n      </svg:g>\n      <svg:g ngx-charts-timeline\n        *ngIf="timeline && scaleType != \'ordinal\'"\n        [attr.transform]="timelineTransform"\n        [results]="results"\n        [view]="[timelineWidth, height]"\n        [height]="timelineHeight"\n        [scheme]="scheme"\n        [customColors]="customColors"\n        [scaleType]="scaleType"\n        [legend]="legend"\n        (onDomainChange)="updateDomain($event)">\n        <svg:g *ngFor="let series of results; trackBy:trackBy">\n          <svg:g ngx-charts-line-series\n            [xScale]="timelineXScale"\n            [yScale]="timelineYScale"\n            [colors]="colors"\n            [data]="series"\n            [scaleType]="scaleType"\n            [curve]="curve"\n            [hasRange]="hasRange"\n            [animations]="animations"\n          />\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}(l.a)},"./src/line-chart/line-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/line-chart/line.component.ts"),s=n("./src/line-chart/line-chart.component.ts"),a=n("./src/line-chart/line-series.component.ts");n.d(e,"c",function(){return o.a}),n.d(e,"a",function(){return s.a}),n.d(e,"d",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/line-chart/line-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("d3-shape")),o=(n.n(r),n("./src/utils/id.ts")),s=n("./src/utils/sort.ts"),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.animations=!0}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.updateGradients();var t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";var n=this.getAreaGenerator();if(this.areaPath=n(t)||"",this.hasRange){var i=this.getRangeGenerator();this.outerPath=i(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;var r=this.data.series.map(function(t){return t.value}),o=Math.max.apply(Math,r);o===Math.min.apply(Math,r)&&(this.stroke=this.colors.getColor(o))}else this.stroke=this.colors.getColor(this.data.name)},t.prototype.getLineGenerator=function(){var n=this;return Object(r.line)().x(function(t){var e=t.name;return"time"===n.scaleType?n.xScale(e):"linear"===n.scaleType?n.xScale(Number(e)):n.xScale(e)}).y(function(t){return n.yScale(t.value)}).curve(this.curve)},t.prototype.getRangeGenerator=function(){var n=this;return Object(r.area)().x(function(t){var e=t.name;return"time"===n.scaleType?n.xScale(e):"linear"===n.scaleType?n.xScale(Number(e)):n.xScale(e)}).y0(function(t){return n.yScale(t.min?t.min:t.value)}).y1(function(t){return n.yScale(t.max?t.max:t.value)}).curve(this.curve)},t.prototype.getAreaGenerator=function(){var n=this;return Object(r.area)().x(function(t){var e=t.name;return n.xScale(e)}).y0(function(){return n.yScale.range()[0]}).y1(function(t){return n.yScale(t.value)}).curve(this.curve)},t.prototype.sortData=function(t){return t="linear"===this.scaleType?Object(s.c)(t,"name"):"time"===this.scaleType?Object(s.b)(t,"name"):Object(s.a)(t,"name","asc",this.xScale.domain())},t.prototype.updateGradients=function(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")";var t=this.data.series.map(function(t){return t.value}),e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(e,n),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.isInactive=function(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(t){return e.name===t.name})},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"curve",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),c("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"hasRange",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-line-series]",template:'\n    <svg:g>\n      <defs>\n        <svg:g ngx-charts-svg-linear-gradient *ngIf="hasGradient"\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:g ngx-charts-area\n        class="line-highlight"\n        [data]="data"\n        [path]="areaPath"\n        [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n        [opacity]="0.25"\n        [startOpacity]="0"\n        [gradient]="true"\n        [stops]="areaGradientStops"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n      />\n      <svg:g ngx-charts-line\n        class="line-series"\n        [data]="data"\n        [path]="path"\n        [stroke]="stroke"\n        [animations]="animations"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n      />\n     <svg:g ngx-charts-area\n        *ngIf="hasRange"\n        class="line-series-range"\n        [data]="data"\n        [path]="outerPath"\n        [fill]="hasGradient ? gradientUrl : colors.getColor(data.name)"\n        [class.active]="isActive(data)"\n        [class.inactive]="isInactive(data)"\n        [opacity]="rangeFillOpacity"\n        [animations]="animations"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/line-chart/line.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("@angular/animations")),o=(n.n(r),n("d3-selection")),s=(n.n(o),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(t){this.element=t,this.fill="none",this.animations=!0,this.select=new i.EventEmitter,this.initialized=!1}return t.prototype.ngOnChanges=function(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)},t.prototype.updatePathEl=function(){var t=Object(o.select)(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"path",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"stroke",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",String)],t.prototype,"fill",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Output)(),a("design:type",Object)],t.prototype,"select",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-line]",template:'\n    <svg:path\n      [@animationState]="\'active\'"\n      class="line"\n      [attr.d]="initialPath"\n      [attr.fill]="fill"\n      [attr.stroke]="stroke"\n      stroke-width="1.5px"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush,animations:[Object(r.trigger)("animationState",[Object(r.transition)(":enter",[Object(r.style)({strokeDasharray:2e3,strokeDashoffset:2e3}),Object(r.animate)(1e3,Object(r.style)({strokeDashoffset:0}))])])]}),a("design:paramtypes",[i.ElementRef])],t)}()},"./src/ngx-charts.module.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return m});n("./src/polyfills.ts");var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/area-chart/area-chart.module.ts"),s=n("./src/bar-chart/bar-chart.module.ts"),a=n("./src/bubble-chart/bubble-chart.module.ts"),c=n("./src/force-directed-graph/force-directed-graph.module.ts"),u=n("./src/heat-map/heat-map.module.ts"),l=n("./src/line-chart/line-chart.module.ts"),p=n("./src/polar-chart/polar-chart.module.ts"),h=n("./src/number-card/number-card.module.ts"),d=n("./src/pie-chart/pie-chart.module.ts"),f=n("./src/tree-map/tree-map.module.ts"),g=n("./src/gauge/gauge.module.ts"),v=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},m=function(){function t(){}return t=v([Object(i.NgModule)({exports:[r.a,o.b,s.a,a.b,c.b,u.d,l.b,p.b,h.d,d.d,f.d,g.d]})],t)}()},"./src/number-card/card-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),u=(n.n(i),n("./src/utils/color-utils.ts")),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){if(2<this.data.length){var e=this.valueFormatting||function(t){return t.value.toLocaleString()},t=this.data.map(function(t){return t&&t.data&&void 0!==t.data.value&&null!==t.data.value?e({data:t.data,label:t?t.data.name:"",value:t&&t.data?t.data.value:""}).length:0}).sort(function(t,e){return e-t}),n=Math.ceil(this.data.length/2);this.medianSize=t[n]}var i=this.getCards();this.cards=i.filter(function(t){return null!==t.data.value}),this.emptySlots=i.filter(function(t){return null===t.data.value})},t.prototype.getCards=function(){var s=this,a="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],c="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map(function(t,e){var n=t.data.name;n=n&&"Date"===n.constructor.name?n.toLocaleDateString():n?n.toLocaleString():n,t.data.name=n;var i=t.data.value,r=n?s.colors.getColor(n):s.emptyColor,o=s.cardColor||r||"#000";return{x:t.x,y:t.y,width:t.width-c,height:t.height-a,color:o,bandColor:s.bandColor||r,textColor:s.textColor||Object(u.a)(o),label:n,data:t.data,tooltipText:n+": "+i}})},t.prototype.trackBy=function(t,e){return e.label},t.prototype.onClick=function(t){this.select.emit(t)},r([Object(i.Input)(),o("design:type",Array)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Array)],t.prototype,"slots",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"dims",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"innerPadding",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"cardColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"bandColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"emptyColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"textColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"labelFormatting",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"select",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-card-series]",template:'\n    <svg:rect\n      *ngFor="let c of emptySlots; trackBy:trackBy"\n      class="card-empty"\n      [attr.x]="c.x"\n      [attr.y]="c.y"\n      [style.fill]="emptyColor"\n      [attr.width]="c.width"\n      [attr.height]="c.height"\n      rx="3"\n      ry="3"\n    />\n    <svg:g ngx-charts-card *ngFor="let c of cards; trackBy:trackBy"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [color]="c.color"\n      [bandColor]="c.bandColor"\n      [textColor]="c.textColor"\n      [data]="c.data"\n      [medianSize]="medianSize"\n      [valueFormatting]="valueFormatting"\n      [labelFormatting]="labelFormatting"\n      [animations]="animations"\n      (select)="onClick($event)"\n    />\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/number-card/card.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/number-card/card.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/number-card/card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),s=(n.n(i),n("./src/common/trim-label.helper.ts")),a=n("./src/common/shape.helper.ts"),c=n("./src/common/count/index.ts"),r=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(t,e,n){this.cd=e,this.zone=n,this.animations=!0,this.select=new i.EventEmitter,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.update=function(){var o=this;this.zone.run(function(){var t=o.data&&void 0!==o.data.value,e=o.valueFormatting||function(t){return t.value.toLocaleString()},n=o.labelFormatting||function(t){return Object(s.a)(t.label,55)};o.transform="translate("+o.x+" , "+o.y+")",o.textWidth=Math.max(0,o.width)-o.textPadding[1]-o.textPadding[3],o.cardWidth=Math.max(0,o.width),o.cardHeight=Math.max(0,o.height),o.label=o.data?o.data.name:"";var i={label:o.label,data:o.data,value:o.data.value};o.formattedLabel=n(i),o.transformBand="translate(0 , "+(o.cardHeight-o.bandHeight)+")";var r=t?e(i):"";o.value=o.paddedValue(r),o.setPadding(),o.bandPath=Object(a.a)(0,0,o.cardWidth,o.bandHeight,3,[!1,!1,!0,!0]),setTimeout(function(){o.scaleText(),o.value=r,t&&!o.initialized&&setTimeout(function(){return o.startCount()},20)},8)})},t.prototype.paddedValue=function(t){return this.medianSize&&this.medianSize>t.length&&(t+=" ".repeat(this.medianSize-t.length)),t},t.prototype.startCount=function(){var i=this;if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);var r=this.data.value,t=Object(c.c)(r),o=this.valueFormatting||function(t){return t.value.toLocaleString()};this.animationReq=Object(c.b)(0,r,t,1,function(t){var e=t.value,n=t.finished;i.zone.run(function(){e=n?r:e,i.value=o({label:i.label,data:i.data,value:e}),n||(i.value=i.paddedValue(i.value)),i.cd.markForCheck()})}),this.initialized=!0}},t.prototype.scaleText=function(){var a=this;this.zone.run(function(){var t=a.textEl.nativeElement.getBoundingClientRect(),e=t.width,n=t.height;if(0!==e&&0!==n){var i=a.textPadding[1]=a.textPadding[3]=a.cardWidth/8,r=a.cardWidth-2*i,o=a.cardHeight/3,s=Math.min(r/e,o/n);a.textFontSize=Math.floor(a.textFontSize*s),a.labelFontSize=Math.min(a.textFontSize,15),a.setPadding(),a.cd.markForCheck()}})},t.prototype.setPadding=function(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;var t=this.cardHeight/2;this.textPadding[0]=t-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=t-this.labelFontSize},t.prototype.onClick=function(){this.select.emit({name:this.data.name,value:this.data.value})},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"color",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"bandColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"textColor",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"x",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"y",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"width",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"height",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"label",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Number)],t.prototype,"medianSize",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"labelFormatting",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"select",void 0),r([Object(i.ViewChild)("textEl"),o("design:type",i.ElementRef)],t.prototype,"textEl",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-card]",template:'\n    <svg:g\n      [attr.transform]="transform"\n      class="cell"\n      (click)="onClick()">\n      <svg:rect\n        class="card"\n        [style.fill]="color"\n        [attr.width]="cardWidth"\n        [attr.height]="cardHeight"\n        rx="3"\n        ry="3"\n      />\n      <svg:path\n        *ngIf="bandColor && bandColor !== color"\n        class="card-band"\n        [attr.fill]="bandColor"\n        [attr.transform]="transformBand"\n        stroke="none"\n        [attr.d]="bandPath"\n      />\n      <title>{{label}}</title>\n      <svg:foreignObject\n        class="trimmed-label"\n        x="5"\n        [attr.x]="textPadding[3]"\n        [attr.y]="cardHeight - textPadding[2]"\n        [attr.width]="textWidth"\n        [attr.height]="labelFontSize + textPadding[2]"\n        alignment-baseline="hanging">\n        <xhtml:p\n          [style.color]="textColor"\n          [style.fontSize.px]="labelFontSize"\n          [style.lineHeight.px]="labelFontSize"\n          [innerHTML]="formattedLabel">\n        </xhtml:p>\n      </svg:foreignObject>\n      <svg:text #textEl\n        class="value-text"\n        [attr.x]="textPadding[3]"\n        [attr.y]="textPadding[0]"\n        [style.fill]="textColor"\n        text-anchor="start"\n        alignment-baseline="hanging"\n        [style.font-size.pt]="textFontSize">\n        {{value}}\n      </svg:text>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[i.ElementRef,i.ChangeDetectorRef,i.NgZone])],t)}()},"./src/number-card/index.ts":function(t,e,n){"use strict";var i=n("./src/number-card/number-card.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/number-card/number-card.component.ts"),n("./src/number-card/card.component.ts"),n("./src/number-card/card-series.component.ts")},"./src/number-card/number-card.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("./src/common/base-chart.component.ts")),s=n("./src/common/view-dimensions.helper.ts"),a=n("./src/common/color.helper.ts"),c=n("./src/common/grid-layout.helper.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(i){function t(){var t=null!==i&&i.apply(this,arguments)||this;return t.emptyColor="rgba(0, 0, 0, 0)",t.innerPadding=15,t.margin=[10,10,10,10],t}return u(t,i),Object.defineProperty(t.prototype,"clickable",{get:function(){return!!this.select.observers.length},enumerable:!0,configurable:!0}),t.prototype.update=function(){i.prototype.update.call(this),this.dims=Object(s.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";for(var t=Object(c.b)(this.dims,this.results.length,150),e=t[0]*t[1],n=this.results.slice();n.length<e;)n.push({value:null});this.data=Object(c.a)(this.dims,n,150,this.designatedTotal)},t.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},l([Object(r.Input)(),p("design:type",String)],t.prototype,"cardColor",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"bandColor",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"emptyColor",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"innerPadding",void 0),l([Object(r.Input)(),p("design:type",String)],t.prototype,"textColor",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"valueFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"labelFormatting",void 0),l([Object(r.Input)(),p("design:type",Number)],t.prototype,"designatedTotal",void 0),t=l([Object(r.Component)({selector:"ngx-charts-number-card",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false"\n      [animations]="animations">\n      <svg:g [attr.transform]="transform" class="number-card chart" [class.clickable]="clickable">\n        <svg:g ngx-charts-card-series\n          [colors]="colors"\n          [cardColor]="cardColor"\n          [bandColor]="bandColor"\n          [textColor]="textColor"\n          [emptyColor]="emptyColor"\n          [data]="data"\n          [dims]="dims"\n          [innerPadding]="innerPadding"\n          [valueFormatting]="valueFormatting"\n          [labelFormatting]="labelFormatting"\n          [animations]="animations"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/number-card/card.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(o.a)},"./src/number-card/number-card.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/number-card/card.component.ts"),s=n("./src/number-card/card-series.component.ts"),a=n("./src/number-card/number-card.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/pie-chart/advanced-pie-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/advanced-pie-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/advanced-pie-chart.component.ts":function(t,e,i){"use strict";i.d(e,"a",function(){return p});var r,o=i("@angular/core"),s=(i.n(o),i("./src/common/view-dimensions.helper.ts")),a=i("./src/common/color.helper.ts"),n=i("./src/common/base-chart.component.ts"),c=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.activeEntries=[],t.tooltipDisabled=!1,t.label="Total",t.activate=new o.EventEmitter,t.deactivate=new o.EventEmitter,t.margin=[20,20,20,20],t.valueFormatting=function(t){return t},t.nameFormatting=function(t){return t},t.percentageFormatting=function(t){return t},t}return c(t,n),t.prototype.update=function(){n.prototype.update.call(this),this.dims=Object(s.a)({width:4*this.width/12,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.setColors();var 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+")"},t.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){this.colors=new a.a(this.scheme,"ordinal",this.domain,this.customColors)},t.prototype.onActivate=function(t){-1<this.activeEntries.indexOf(t)||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},u([Object(o.Input)(),l("design:type",Boolean)],t.prototype,"gradient",void 0),u([Object(o.Input)(),l("design:type",Array)],t.prototype,"activeEntries",void 0),u([Object(o.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([Object(o.Input)(),l("design:type",Object)],t.prototype,"tooltipText",void 0),u([Object(o.Input)(),l("design:type",String)],t.prototype,"label",void 0),u([Object(o.Output)(),l("design:type",o.EventEmitter)],t.prototype,"activate",void 0),u([Object(o.Output)(),l("design:type",o.EventEmitter)],t.prototype,"deactivate",void 0),u([Object(o.ContentChild)("tooltipTemplate"),l("design:type",o.TemplateRef)],t.prototype,"tooltipTemplate",void 0),u([Object(o.Input)(),l("design:type",Function)],t.prototype,"valueFormatting",void 0),u([Object(o.Input)(),l("design:type",Function)],t.prototype,"nameFormatting",void 0),u([Object(o.Input)(),l("design:type",Function)],t.prototype,"percentageFormatting",void 0),t=u([Object(o.Component)({selector:"ngx-charts-advanced-pie-chart",template:'\n    <div\n      [style.width.px]="width"\n      [style.height.px]="height">\n      <div class="advanced-pie chart"\n        [style.width.px]="dims.width"\n        [style.height.px]="dims.height">\n        <ngx-charts-chart\n          [view]="[width, height]"\n          [showLegend]="false"\n          [animations]="animations">\n          <svg:g\n            [attr.transform]="transform"\n            class="pie chart">\n            <svg:g ngx-charts-pie-series\n              [colors]="colors"\n              [series]="results"\n              [innerRadius]="innerRadius"\n              [activeEntries]="activeEntries"\n              [outerRadius]="outerRadius"\n              [gradient]="gradient"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="tooltipTemplate"\n              [tooltipText]="tooltipText"\n              (select)="onClick($event)"\n              [animations]="animations">\n            </svg:g>\n          </svg:g>\n        </ngx-charts-chart>\n      </div>\n      <div\n        class="advanced-pie-legend-wrapper"\n        [style.width.px]="width - dims.width"\n        [style.height.px]="height">\n        <ngx-charts-advanced-legend\n          [data]="results"\n          [colors]="colors"\n          [width]="width - dims.width - margin[1]"\n          [label]="label"\n          [animations]="animations"\n          [valueFormatting]="valueFormatting"\n          [labelFormatting]="nameFormatting"\n          [percentageFormatting]="percentageFormatting"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)">\n        </ngx-charts-advanced-legend>\n      </div>\n    </div>\n  ',styles:[i("./src/common/base-chart.component.scss"),i("./src/pie-chart/advanced-pie-chart.component.scss")],encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush})],t)}(n.a)},"./src/pie-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/pie-chart/pie-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d}),n.d(e,"e",function(){return i.e}),n.d(e,"f",function(){return i.f}),n.d(e,"g",function(){return i.g}),n.d(e,"h",function(){return i.h});n("./src/pie-chart/pie-chart.component.ts"),n("./src/pie-chart/pie-arc.component.ts"),n("./src/pie-chart/pie-grid.component.ts"),n("./src/pie-chart/pie-series.component.ts"),n("./src/pie-chart/pie-label.component.ts")},"./src/pie-chart/pie-arc.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("d3-interpolate")),o=(n.n(r),n("d3-selection")),s=(n.n(o),n("d3-shape")),a=(n.n(s),n("./src/utils/id.ts")),c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(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 i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this.calculateArc();this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)(),this.startOpacity=.5,this.radialGradientId="linearGrad"+Object(a.a)().toString(),this.gradientFill="url(#"+this.radialGradientId+")",this.animate&&(this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0))},t.prototype.calculateArc=function(){var t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),Object(s.arc)().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)},t.prototype.loadAnimation=function(){var t=Object(o.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),i=this.calculateArc();t.transition().attrTween("d",function(t){this._current=this._current||t;var e=Object.assign({},t);e.endAngle=e.startAngle;var n=Object(r.interpolate)(e,e);return this._current=n(0),function(t){return i(n(t))}}).transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var e=Object(r.interpolate)(this._current,t);return this._current=e(0),function(t){return i(e(t))}})},t.prototype.updateAnimation=function(){var t=Object(o.select)(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),n=this.calculateArc();t.transition().duration(750).attrTween("d",function(t){this._current=this._current||t;var e=Object(r.interpolate)(this._current,t);return this._current=e(0),function(t){return n(e(t))}})},t.prototype.onClick=function(){this.select.emit(this.data)},c([Object(i.Input)(),u("design:type",Object)],t.prototype,"fill",void 0),c([Object(i.Input)(),u("design:type",Number)],t.prototype,"startAngle",void 0),c([Object(i.Input)(),u("design:type",Number)],t.prototype,"endAngle",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"innerRadius",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"outerRadius",void 0),c([Object(i.Input)(),u("design:type",Number)],t.prototype,"cornerRadius",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"value",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"max",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"explodeSlices",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"animate",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"pointerEvents",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"isActive",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"select",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"activate",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"deactivate",void 0),t=c([Object(i.Component)({selector:"g[ngx-charts-pie-arc]",template:'\n    <svg:g class="arc-group">\n      <svg:defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-radial-gradient\n          [color]="fill"\n          orientation="vertical"\n          [name]="radialGradientId"\n          [startOpacity]="startOpacity"\n        />\n      </svg:defs>\n      <svg:path\n        [attr.d]="path"\n        class="arc"\n        [class.active]="isActive"\n        [attr.fill]="gradient ? gradientFill : fill"\n        (click)="onClick()"\n        (mouseenter)="activate.emit(data)"\n        (mouseleave)="deactivate.emit(data)"\n        [style.pointer-events]="pointerEvents ? \'auto\' : \'none\'"\n      />\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[i.ElementRef])],t)}()},"./src/pie-chart/pie-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/pie-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/pie-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i,r=n("@angular/core"),o=(n.n(r),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),c=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(i){function t(){var t=null!==i&&i.apply(this,arguments)||this;return t.labels=!1,t.legend=!1,t.legendTitle="Legend",t.explodeSlices=!1,t.doughnut=!1,t.arcWidth=.25,t.activeEntries=[],t.tooltipDisabled=!1,t.trimLabels=!0,t.maxLabelLength=10,t.select=new r.EventEmitter,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[20,20,20,20],t}return c(t,i),t.prototype.update=function(){var n=this;i.prototype.update.call(this),this.labels&&(this.margin=[30,80,30,80]),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend});var t=this.margin[3]+this.dims.width/2,e=this.margin[0]+this.dims.height/2;this.translation="translate("+t+", "+e+")",this.outerRadius=Math.min(this.dims.width,this.dims.height),this.labels?this.outerRadius/=3:this.outerRadius/=2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort(function(t,e){return n.domain.indexOf(t.name)-n.domain.indexOf(e.name)}),this.setColors(),this.legendOptions=this.getLegendOptions()},t.prototype.getDomain=function(){var n=[];return this.results.map(function(t){var e=t.name;e="Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString(),-1===n.indexOf(e)&&n.push(e)}),n},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){this.colors=new s.a(this.scheme,"ordinal",this.domain,this.customColors)},t.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle}},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},u([Object(r.Input)(),l("design:type",Object)],t.prototype,"labels",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"legend",void 0),u([Object(r.Input)(),l("design:type",String)],t.prototype,"legendTitle",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"explodeSlices",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"doughnut",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"arcWidth",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"gradient",void 0),u([Object(r.Input)(),l("design:type",Array)],t.prototype,"activeEntries",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"labelFormatting",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"trimLabels",void 0),u([Object(r.Input)(),l("design:type",Number)],t.prototype,"maxLabelLength",void 0),u([Object(r.Input)(),l("design:type",Object)],t.prototype,"tooltipText",void 0),u([Object(r.Output)(),l("design:type",Object)],t.prototype,"select",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],t.prototype,"activate",void 0),u([Object(r.Output)(),l("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),u([Object(r.ContentChild)("tooltipTemplate"),l("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=u([Object(r.Component)({selector:"ngx-charts-pie-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      (legendLabelClick)="onClick($event)">\n      <svg:g [attr.transform]="translation" class="pie-chart chart">\n        <svg:g ngx-charts-pie-series\n          [colors]="colors"\n          [series]="data"\n          [showLabels]="labels"\n          [labelFormatting]="labelFormatting"\n          [trimLabels]="trimLabels"\n          [maxLabelLength]="maxLabelLength"\n          [activeEntries]="activeEntries"\n          [innerRadius]="innerRadius"\n          [outerRadius]="outerRadius"\n          [explodeSlices]="explodeSlices"\n          [gradient]="gradient"\n          [animations]="animations"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [tooltipText]="tooltipText"\n          (select)="onClick($event)"\n          (activate)="onActivate($event)"\n          (deactivate)="onDeactivate($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(a.a)},"./src/pie-chart/pie-chart.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return d});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/pie-chart/advanced-pie-chart.component.ts"),s=n("./src/pie-chart/pie-label.component.ts"),a=n("./src/pie-chart/pie-arc.component.ts"),c=n("./src/pie-chart/pie-chart.component.ts"),u=n("./src/pie-chart/pie-grid.component.ts"),l=n("./src/pie-chart/pie-grid-series.component.ts"),p=n("./src/pie-chart/pie-series.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"g",function(){return s.a}),n.d(e,"b",function(){return a.a}),n.d(e,"c",function(){return c.a}),n.d(e,"e",function(){return u.a}),n.d(e,"f",function(){return l.a}),n.d(e,"h",function(){return p.a});var h=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},d=function(){function t(){}return t=h([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a,c.a,u.a,l.a,p.a],exports:[o.a,s.a,a.a,c.a,u.a,l.a,p.a]})],t)}()},"./src/pie-chart/pie-grid-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("@angular/core"),r=(n.n(i),n("d3-shape")),o=(n.n(r),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=function(){function t(t){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new i.EventEmitter,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){this.layout=Object(r.pie)().value(function(t){return t.data.value}).sort(null),this.arcs=this.getArcs()},t.prototype.getArcs=function(){var o=this;return this.layout(this.data).map(function(t,e){var n=t.data.data.name,i=t.data.data.other;0===e&&(t.startAngle=0);var r=o.colors(n);return{data:t.data.data,class:"arc arc"+e,fill:r,startAngle:i?0:t.startAngle,endAngle:t.endAngle,animate:o.animations&&!i,pointerEvents:!i}})},t.prototype.onClick=function(t){this.select.emit({name:this.data[0].data.name,value:this.data[0].data.value})},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.label=function(t){return t.data.name},t.prototype.color=function(t){return this.colors(this.label(t))},o([Object(i.Input)(),s("design:type",Object)],t.prototype,"colors",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"data",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"innerRadius",void 0),o([Object(i.Input)(),s("design:type",Object)],t.prototype,"outerRadius",void 0),o([Object(i.Input)(),s("design:type",Boolean)],t.prototype,"animations",void 0),o([Object(i.Output)(),s("design:type",Object)],t.prototype,"select",void 0),t=o([Object(i.Component)({selector:"g[ngx-charts-pie-grid-series]",template:'\n    <svg:g class="pie-grid-arcs">\n      <svg:g ngx-charts-pie-arc *ngFor="let arc of arcs; trackBy:trackBy"\n        [attr.class]="arc.class"\n        [startAngle]="arc.startAngle"\n        [endAngle]="arc.endAngle"\n        [innerRadius]="innerRadius"\n        [outerRadius]="outerRadius"\n        [fill]="color(arc)"\n        [value]="arc.data.value"\n        [data]="arc.data"\n        [gradient]="false"\n        [pointerEvents]="arc.pointerEvents"\n        [animate]="arc.animate"\n        (select)="onClick($event)">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),s("design:paramtypes",[i.ElementRef])],t)}()},"./src/pie-chart/pie-grid.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/pie-chart/pie-grid.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/pie-chart/pie-grid.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i,r=n("@angular/core"),u=(n.n(r),n("d3-array")),l=(n.n(u),n("d3-format")),o=(n.n(l),n("./src/common/view-dimensions.helper.ts")),s=n("./src/common/color.helper.ts"),a=n("./src/common/base-chart.component.ts"),p=n("./src/common/trim-label.helper.ts"),c=n("./src/common/grid-layout.helper.ts"),h=n("./src/common/label.helper.ts"),d=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},g=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tooltipDisabled=!1,t.label="Total",t.minWidth=150,t.margin=[20,20,20,20],t}return d(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(o.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.data=Object(c.a)(this.dims,this.results,this.minWidth,this.designatedTotal),this.transform="translate("+this.margin[3]+" , "+this.margin[0]+")",this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.defaultTooltipText=function(t){var e=t.data;return'\n      <span class="tooltip-label">'+Object(p.a)(Object(h.a)(e.name))+'</span>\n      <span class="tooltip-val">'+e.value.toLocaleString()+"</span>\n    "},t.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getSeries=function(){var a=this,c=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(function(t){var e=t.data.name,n=Object(h.a)(e),i=t.data.value,r=Object(u.min)([t.width-10,t.height-20])/2-5,o=.9*r,s=0;return{transform:"translate("+(t.x+(t.width-10)/2)+", "+(t.y+(t.height-20)/2)+")",colors:function(){return 1===(s+=1)?"rgba(100,100,100,0.3)":a.colorScale.getColor(n)},innerRadius:o,outerRadius:r,name:e,label:Object(p.a)(n),total:i,value:i,percent:Object(l.format)(".1%")(t.data.percent),data:[t,{data:{other:!0,value:c-i,name:t.data.name}}]}})},t.prototype.getTotal=function(){return this.results.map(function(t){return t.value}).reduce(function(t,e){return t+e},0)},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){this.colorScale=new s.a(this.scheme,"ordinal",this.domain,this.customColors)},f([Object(r.Input)(),g("design:type",Number)],t.prototype,"designatedTotal",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),f([Object(r.Input)(),g("design:type",Function)],t.prototype,"tooltipText",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"label",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"minWidth",void 0),f([Object(r.ContentChild)("tooltipTemplate"),g("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=f([Object(r.Component)({selector:"ngx-charts-pie-grid",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false"\n      [animations]="animations">\n      <svg:g [attr.transform]="transform" class="pie-grid chart">\n        <svg:g\n          *ngFor="let series of series"\n          class="pie-grid-item"\n          [attr.transform]="series.transform">\n          <svg:g ngx-charts-pie-grid-series\n            [colors]="series.colors"\n            [data]="series.data"\n            [innerRadius]="series.innerRadius"\n            [outerRadius]="series.outerRadius"\n            [animations]="animations"\n            (select)="onClick($event)"\n            ngx-tooltip\n            [tooltipDisabled]="tooltipDisabled"\n            [tooltipPlacement]="\'top\'"\n            [tooltipType]="\'tooltip\'"\n            [tooltipTitle]="tooltipTemplate ? undefined : tooltipText({data: series})"\n            [tooltipTemplate]="tooltipTemplate"\n            [tooltipContext]="series.data[0].data"\n          />\n          <svg:text *ngIf="animations"\n            class="label percent-label"\n            dy="-0.5em"\n            x="0"\n            y="5"\n            ngx-charts-count-up\n            [countTo]="series.percent"\n            [countSuffix]="\'%\'"\n            text-anchor="middle">\n          </svg:text>\n          <svg:text *ngIf="!animations"\n            class="label percent-label"\n            dy="-0.5em"\n            x="0"\n            y="5"\n            text-anchor="middle">\n            {{series.percent.toLocaleString()}}\n          </svg:text>\n          <svg:text\n            class="label"\n            dy="0.5em"\n            x="0"\n            y="5"\n            text-anchor="middle">\n            {{series.label}}\n          </svg:text>\n          <svg:text *ngIf="animations"\n            class="label"\n            dy="1.23em"\n            x="0"\n            [attr.y]="series.outerRadius"\n            text-anchor="middle"\n            ngx-charts-count-up\n            [countTo]="series.total"\n            [countPrefix]="label + \': \'">\n          </svg:text>\n          <svg:text *ngIf="!animations"\n            class="label"\n            dy="1.23em"\n            x="0"\n            [attr.y]="series.outerRadius"\n            text-anchor="middle">\n            {{label}}: {{series.total.toLocaleString()}}\n          </svg:text>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-grid.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(a.a)},"./src/pie-chart/pie-label.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("@angular/core"),r=(n.n(i),n("d3-shape")),o=(n.n(r),n("./src/common/trim-label.helper.ts")),s=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function t(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=o.a}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);var e=Object(r.arc)().innerRadius(t).outerRadius(t).centroid(this.data),n=this.data.pos[1]/e[1];0!==this.data.pos[1]&&0!==e[1]||(n=1);var i=[n*e[0],n*e[1]];this.line="M"+e+"L"+i+"L"+this.data.pos},Object.defineProperty(t.prototype,"textX",{get:function(){return this.data.pos[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textY",{get:function(){return this.data.pos[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleTransform",{get:function(){return this.isIE?null:"translate3d("+this.textX+"px,"+this.textY+"px, 0)"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attrTransform",{get:function(){return this.isIE?"translate("+this.textX+","+this.textY+")":null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textTransition",{get:function(){return this.isIE||!this.animations?null:"transform 0.75s"},enumerable:!0,configurable:!0}),t.prototype.textAnchor=function(){return this.midAngle(this.data)<Math.PI?"start":"end"},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},s([Object(i.Input)(),a("design:type",Object)],t.prototype,"data",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"radius",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"label",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"color",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"max",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"value",void 0),s([Object(i.Input)(),a("design:type",Object)],t.prototype,"explodeSlices",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"animations",void 0),s([Object(i.Input)(),a("design:type",Boolean)],t.prototype,"labelTrim",void 0),s([Object(i.Input)(),a("design:type",Number)],t.prototype,"labelTrimSize",void 0),t=s([Object(i.Component)({selector:"g[ngx-charts-pie-label]",template:'\n    <title>{{label}}</title>\n    <svg:g\n      [attr.transform]="attrTransform"\n      [style.transform]="styleTransform"\n      [style.transition]="textTransition">\n      <svg:text\n        class="pie-label"\n        [class.animation]="animations"\n        dy=".35em"\n        [style.textAnchor]="textAnchor()"\n        [style.shapeRendering]="\'crispEdges\'">\n        {{labelTrim ? trimLabel(label, labelTrimSize) : label}}\n      </svg:text>\n    </svg:g>\n    <svg:path\n      [attr.d]="line"\n      [attr.stroke]="color"\n      fill="none"\n      class="pie-label-line line"\n      [class.animation]="animations">\n    </svg:path>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),a("design:paramtypes",[])],t)}()},"./src/pie-chart/pie-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("d3-array")),o=(n.n(r),n("d3-shape")),s=(n.n(o),n("./src/common/label.helper.ts")),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new i.EventEmitter,this.activate=new i.EventEmitter,this.deactivate=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var t=Object(o.pie)().value(function(t){return t.value}).sort(null)(this.series);this.max=Object(r.max)(t,function(t){return t.value}),this.data=this.calculateLabelPositions(t),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.midAngle=function(t){return t.startAngle+(t.endAngle-t.startAngle)/2},t.prototype.outerArc=function(){return Object(o.arc)().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)},t.prototype.calculateLabelPositions=function(t){var e=this,n=t;n.forEach(function(t){t.pos=e.outerArc().centroid(t),t.pos[0]=1.5*e.outerRadius*(e.midAngle(t)<Math.PI?1:-1)});for(var i=0;i<n.length-1;i++)for(var r=n[i],o=i+1;o<n.length;o++){var s=n[o];if(0<s.pos[0]*r.pos[0]){var a=10-Math.abs(s.pos[1]-r.pos[1]);0<a&&(s.pos[1]+=Math.sign(s.pos[0])*a)}}return n},t.prototype.labelVisible=function(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30},t.prototype.labelText=function(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)},t.prototype.label=function(t){return Object(s.a)(t.data.name)},t.prototype.defaultTooltipText=function(t){return'\n      <span class="tooltip-label">'+this.label(t)+'</span>\n      <span class="tooltip-val">'+Object(s.a)(t.data.value)+"</span>\n    "},t.prototype.color=function(t){return this.colors.getColor(this.label(t))},t.prototype.trackBy=function(t,e){return e.data.name},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name&&e.series===t.series})},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"series",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"dims",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"innerRadius",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"outerRadius",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"explodeSlices",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"showLabels",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"labelFormatting",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"trimLabels",void 0),a([Object(i.Input)(),c("design:type",Number)],t.prototype,"maxLabelLength",void 0),a([Object(i.Input)(),c("design:type",Function)],t.prototype,"tooltipText",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),c("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"select",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"activate",void 0),a([Object(i.Output)(),c("design:type",Object)],t.prototype,"deactivate",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-pie-series]",template:'\n    <svg:g *ngFor="let arc of data; trackBy:trackBy">\n      <svg:g ngx-charts-pie-label\n        *ngIf="labelVisible(arc)"\n        [data]="arc"\n        [radius]="outerRadius"\n        [color]="color(arc)"\n        [label]="labelText(arc)"\n        [labelTrim]="trimLabels"\n        [labelTrimSize]="maxLabelLength"\n        [max]="max"\n        [value]="arc.value"\n        [explodeSlices]="explodeSlices"\n        [animations]="animations">\n      </svg:g>\n      <svg:g\n        ngx-charts-pie-arc\n        [startAngle]="arc.startAngle"\n        [endAngle]="arc.endAngle"\n        [innerRadius]="innerRadius"\n        [outerRadius]="outerRadius"\n        [fill]="color(arc)"\n        [value]="arc.data.value"\n        [gradient]="gradient"\n        [data]="arc.data"\n        [max]="max"\n        [explodeSlices]="explodeSlices"\n        [isActive]="isActive(arc.data)"\n        [animate]="animations"\n        (select)="onClick($event)"\n        (activate)="activate.emit($event)"\n        (deactivate)="deactivate.emit($event)"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        [tooltipType]="\'tooltip\'"\n        [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(arc)"\n        [tooltipTemplate]="tooltipTemplate"\n        [tooltipContext]="arc.data">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/polar-chart/index.ts":function(t,e,n){"use strict";var i=n("./src/polar-chart/polar-chart.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c});n("./src/polar-chart/polar-chart.component.ts"),n("./src/polar-chart/polar-series.component.ts")},"./src/polar-chart/polar-chart.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/polar-chart/polar-chart.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/polar-chart/polar-chart.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i,r=n("@angular/core"),o=(n.n(r),n("@angular/animations")),s=(n.n(o),n("d3-scale")),a=(n.n(s),n("d3-shape")),c=(n.n(a),n("./src/common/view-dimensions.helper.ts")),u=n("./src/common/color.helper.ts"),l=n("./src/common/base-chart.component.ts"),p=n("./src/utils/types.ts"),h=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},f=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},g=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},v=2*Math.PI,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legendTitle="Legend",t.showGridLines=!0,t.curve=a.curveCardinalClosed,t.activeEntries=[],t.rangeFillOpacity=.15,t.roundDomains=!1,t.tooltipDisabled=!1,t.showSeriesOnHover=!0,t.gradient=!1,t.yAxisMinScale=0,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t}return h(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()},t.prototype.setDims=function(){this.dims=Object(c.a)({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});var t=~~(this.dims.width/2),e=~~(this.dims.height/2),n=this.outerRadius=Math.min(e/1.5,t/1.5),i=Math.max(0,e-n);this.yAxisDims=d({},this.dims,{width:t}),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.transformYAxis="translate(0, "+i+")",this.labelOffset=this.dims.height+40,this.transformPlot="translate("+t+", "+e+")"},t.prototype.setScales=function(){var t=this.getXValues();this.scaleType=this.getScaleType(t),this.xDomain=this.filteredDomain||this.getXDomain(t),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,v),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)},t.prototype.setTicks=function(){var o,s=this;o=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):function(t){return Object(p.a)(t)?t.toLocaleDateString():t.toLocaleString()};var a=this.outerRadius;this.thetaTicks=this.xDomain.map(function(t){var e=s.xScale(t),n=1.1*a*(e>Math.PI?-1:1),i=o(t),r=[a*Math.sin(e),-a*Math.cos(e)];return{innerRadius:0,outerRadius:a,startAngle:e,endAngle:e,value:a,label:i,startPos:r,pos:[n,1.1*r[1]]}});for(var t=0;t<this.thetaTicks.length-1;t++)for(var e=this.thetaTicks[t],n=t+1;n<this.thetaTicks.length;n++){var i=this.thetaTicks[n];if(0<i.pos[0]*e.pos[0]){var r=10-Math.abs(i.pos[1]-e.pos[1]);0<r&&(i.pos[1]+=Math.sign(i.pos[0])*r)}}this.radiusTicks=this.yAxisScale.ticks(~~(this.dims.height/50)).map(function(t){return s.yScale(t)})},t.prototype.getXValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.includes(o.name)||t.push(o.name)}return t},t.prototype.getXDomain=function(t){return void 0===t&&(t=this.getXValues()),"time"===this.scaleType?[Math.min.apply(Math,t),Math.max.apply(Math,t)]:"linear"===this.scaleType?(t=t.map(function(t){return Number(t)}),[Math.min.apply(Math,t),Math.max.apply(Math,t)]):t},t.prototype.getYValues=function(){for(var t=[],e=0,n=this.results;e<n.length;e++)for(var i=0,r=n[e].series;i<r.length;i++){var o=r[i];t.indexOf(o.value)<0&&t.push(o.value),void 0!==o.min&&t.indexOf(o.min)<0&&t.push(o.min),void 0!==o.max&&t.indexOf(o.max)<0&&t.push(o.max)}return t},t.prototype.getYDomain=function(t){void 0===t&&(t=this.getYValues());var e=Math.min.apply(Math,t),n=Math.max.apply(Math,[this.yAxisMinScale].concat(t));return e=Math.max(0,e),this.autoScale||(e=Math.min(0,e)),[e,n]},t.prototype.getSeriesDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.getXScale=function(t,e){switch(this.scaleType){case"time":return Object(s.scaleTime)().range([0,e]).domain(t);case"linear":var n=Object(s.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n;default:return Object(s.scalePoint)().range([0,e-v/t.length]).padding(0).domain(t)}},t.prototype.getYScale=function(t,e){var n=Object(s.scaleLinear)().range([0,e]).domain(t);return this.roundDomains?n.nice():n},t.prototype.getScaleType=function(t){for(var e=!0,n=!0,i=0,r=t;i<r.length;i++){var o=r[i];Object(p.a)(o)||(e=!1),Object(p.b)(o)||(n=!1)}return e?"time":n?"linear":"ordinal"},t.prototype.onClick=function(t,e){e&&(t.series=e.name),this.select.emit(t)},t.prototype.setColors=function(){var t="ordinal"===this.schemeType?this.seriesDomain:this.yDomain.reverse();this.colors=new u.a(this.scheme,this.schemeType,t,this.customColors)},t.prototype.getLegendOptions=function(){return"ordinal"===this.schemeType?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0}},t.prototype.updateYAxisWidth=function(t){var e=t.width;this.yAxisWidth=e,this.update()},t.prototype.updateXAxisHeight=function(t){var e=t.height;this.xAxisHeight=e,this.update()},t.prototype.onActivate=function(e){-1<this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value})||(this.activeEntries=this.showSeriesOnHover?[e].concat(this.activeEntries):this.activeEntries,this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},t.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var t=0,e=this.activeEntries;t<e.length;t++){var n=e[t];this.deactivate.emit({value:n,entries:[]})}this.activeEntries=[]},t.prototype.trackBy=function(t,e){return e.name},f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"legend",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"legendTitle",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"xAxis",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"yAxis",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showXAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showYAxisLabel",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"xAxisLabel",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"yAxisLabel",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"autoScale",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showGridLines",void 0),f([Object(r.Input)(),g("design:type",Object)],t.prototype,"curve",void 0),f([Object(r.Input)(),g("design:type",Array)],t.prototype,"activeEntries",void 0),f([Object(r.Input)(),g("design:type",String)],t.prototype,"schemeType",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),f([Object(r.Input)(),g("design:type",Function)],t.prototype,"xAxisTickFormatting",void 0),f([Object(r.Input)(),g("design:type",Function)],t.prototype,"yAxisTickFormatting",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"roundDomains",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"showSeriesOnHover",void 0),f([Object(r.Input)(),g("design:type",Boolean)],t.prototype,"gradient",void 0),f([Object(r.Input)(),g("design:type",Number)],t.prototype,"yAxisMinScale",void 0),f([Object(r.Output)(),g("design:type",r.EventEmitter)],t.prototype,"activate",void 0),f([Object(r.Output)(),g("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),f([Object(r.ContentChild)("tooltipTemplate"),g("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=f([Object(r.Component)({selector:"ngx-charts-polar-chart",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      [activeEntries]="activeEntries"\n      [animations]="animations"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)">\n      <svg:g class="polar-chart chart" [attr.transform]="transform">\n        <svg:g [attr.transform]="transformPlot">\n          <svg:circle\n            class="polar-chart-background"\n            cx="0" cy="0"\n            [attr.r]="this.outerRadius" />\n          <svg:g *ngIf="showGridLines">\n            <svg:circle\n              *ngFor="let r of radiusTicks"\n              class="gridline-path radial-gridline-path"\n              cx="0" cy="0"\n              [attr.r]="r" />\n          </svg:g>\n          <svg:g *ngIf="xAxis">\n            <svg:g ngx-charts-pie-label\n              *ngFor="let tick of thetaTicks"\n              [data]="tick"\n              [radius]="outerRadius"\n              [label]="tick.label"\n              [max]="outerRadius"\n              [value]="showGridLines ? 1 : outerRadius"\n              [explodeSlices]="true"\n              [animations]="animations">\n            </svg:g>\n          </svg:g>\n        </svg:g>\n        <svg:g ngx-charts-y-axis\n          [attr.transform]="transformYAxis"\n          *ngIf="yAxis"\n          [yScale]="yAxisScale"\n          [dims]="yAxisDims"\n          [showGridLines]="showGridLines"\n          [showLabel]="showYAxisLabel"\n          [labelText]="yAxisLabel"\n          [tickFormatting]="yAxisTickFormatting"\n          (dimensionsChanged)="updateYAxisWidth($event)">\n        </svg:g>\n        <svg:g ngx-charts-axis-label\n          *ngIf="xAxis && showXAxisLabel"\n          [label]="xAxisLabel"\n          [offset]="labelOffset"\n          [orient]="\'bottom\'"\n          [height]="dims.height"\n          [width]="dims.width">\n        </svg:g>\n        <svg:g [attr.transform]="transformPlot">\n          <svg:g *ngFor="let series of results; trackBy:trackBy" [@animationState]="\'active\'">\n            <svg:g ngx-charts-polar-series\n              [gradient]="gradient"\n              [xScale]="xScale"\n              [yScale]="yScale"\n              [colors]="colors"\n              [data]="series"\n              [activeEntries]="activeEntries"\n              [scaleType]="scaleType"\n              [curve]="curve"\n              [rangeFillOpacity]="rangeFillOpacity"\n              [animations]="animations"\n              [tooltipDisabled]="tooltipDisabled"\n              [tooltipTemplate]="tooltipTemplate"\n            />\n          </svg:g>\n        </svg:g>\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/common/base-chart.component.scss"),n("./src/pie-chart/pie-chart.component.scss"),n("./src/polar-chart/polar-chart.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(o.trigger)("animationState",[Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)(500,Object(o.style)({opacity:0}))])])]})],t)}(l.a)},"./src/polar-chart/polar-chart.module.ts":function(t,e,n){"use strict";n.d(e,"b",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/polar-chart/polar-chart.component.ts"),s=n("./src/polar-chart/polar-series.component.ts"),a=n("./src/pie-chart/index.ts"),c=n("./src/line-chart/index.ts");n.d(e,"a",function(){return o.a}),n.d(e,"c",function(){return s.a});var u=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},l=function(){function t(){}return t=u([Object(i.NgModule)({imports:[r.a,a.d,c.b],declarations:[o.a,s.a],exports:[o.a,s.a]})],t)}()},"./src/polar-chart/polar-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("d3-shape")),o=(n.n(r),n("./src/utils/id.ts")),s=n("./src/utils/sort.ts"),a=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(){function t(){this.tooltipDisabled=!1,this.gradient=!1,this.animations=!0,this.circleRadius=3}return t.prototype.ngOnChanges=function(t){this.update()},t.prototype.update=function(){var o=this;this.updateGradients();var t=this.getLineGenerator(),e=this.sortData(this.data.series),s=this.data.name,a="linear"===this.colors.scaleType,n=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(a?n:s),this.path=t(e)||"",this.circles=e.map(function(t){var e=o.getAngle(t),n=o.getRadius(t),i=t.value,r=o.colors.getColor(a?Math.abs(i):s);return{data:{series:s,value:i,name:t.name},cx:n*Math.sin(e),cy:-n*Math.cos(e),value:i,color:r,label:t.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||function(t){return o.defaultTooltipText(t)}},t.prototype.getAngle=function(t){var e=t.name;return"time"===this.scaleType?this.xScale(e):"linear"===this.scaleType?this.xScale(Number(e)):this.xScale(e)},t.prototype.getRadius=function(t){return this.yScale(t.value)},t.prototype.getLineGenerator=function(){var e=this;return Object(r.radialLine)().angle(function(t){return e.getAngle(t)}).radius(function(t){return e.getRadius(t)}).curve(this.curve)},t.prototype.sortData=function(t){return"linear"===this.scaleType?Object(s.c)(t,"name"):"time"===this.scaleType?Object(s.b)(t,"name"):Object(s.a)(t,"name","asc",this.xScale.domain())},t.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.isInactive=function(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(t){return e.name===t.name})},t.prototype.defaultTooltipText=function(t){var e=t.label,n=t.value;return'\n      <span class="tooltip-label">'+this.data.name+" • "+e+'</span>\n      <span class="tooltip-val">'+n.toLocaleString()+"</span>\n    "},t.prototype.updateGradients=function(){if(this.hasGradient=this.gradient||"linear"===this.colors.scaleType,this.hasGradient)if(this.gradientId="grad"+Object(o.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")","linear"===this.colors.scaleType){var t=this.data.series.map(function(t){return t.value}),e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);this.gradientStops=this.colors.getLinearGradientStops(e,n)}else this.gradientStops=void 0},a([Object(i.Input)(),c("design:type",Object)],t.prototype,"name",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"data",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"xScale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"yScale",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"colors",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"scaleType",void 0),a([Object(i.Input)(),c("design:type",Object)],t.prototype,"curve",void 0),a([Object(i.Input)(),c("design:type",Array)],t.prototype,"activeEntries",void 0),a([Object(i.Input)(),c("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),a([Object(i.Input)(),c("design:type",Function)],t.prototype,"tooltipText",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"gradient",void 0),a([Object(i.Input)(),c("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),a([Object(i.Input)(),c("design:type",Boolean)],t.prototype,"animations",void 0),t=a([Object(i.Component)({selector:"g[ngx-charts-polar-series]",template:'\n    <svg:g class="polar-charts-series">\n      <defs>\n        <svg:g ngx-charts-svg-radial-gradient *ngIf="hasGradient"\n          orientation="vertical"\n          [color]="seriesColor"\n          [name]="gradientId"\n          [startOpacity]="0.25"\n          [endOpacity]="1"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:g ngx-charts-line\n        class="polar-series-path"\n        [path]="path"\n        [stroke]="hasGradient ? gradientUrl : seriesColor"\n        [class.active]="active"\n        [class.inactive]="inactive"\n        [attr.fill-opacity]="rangeFillOpacity"\n        [fill]="hasGradient ? gradientUrl : seriesColor"\n        [animations]="animations"\n      />\n      <svg:g ngx-charts-circle\n        *ngFor="let circle of circles"\n        class="circle"\n        [cx]="circle.cx"\n        [cy]="circle.cy"\n        [r]="circleRadius"\n        [fill]="circle.color"\n        [style.opacity]="inactive ? 0.2 : 1"\n        ngx-tooltip\n        [tooltipDisabled]="tooltipDisabled"\n        [tooltipPlacement]="\'top\'"\n        tooltipType="tooltip"\n        [tooltipTitle]="tooltipTemplate ? undefined : tooltipText(circle)"\n        [tooltipTemplate]="tooltipTemplate"\n        [tooltipContext]="circle.data">\n      </svg:g>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/polyfills.ts":function(t,e,n){"use strict";"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)},"./src/tree-map/index.ts":function(t,e,n){"use strict";var i=n("./src/tree-map/tree-map.module.ts");n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b}),n.d(e,"c",function(){return i.c}),n.d(e,"d",function(){return i.d});n("./src/tree-map/tree-map.component.ts"),n("./src/tree-map/tree-map-cell.component.ts"),n("./src/tree-map/tree-map-cell-series.component.ts")},"./src/tree-map/tree-map-cell-series.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(){this.gradient=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new i.EventEmitter}return t.prototype.ngOnChanges=function(t){this.cells=this.getCells()},t.prototype.getCells=function(){var i=this;return this.data.children.filter(function(t){return 1===t.depth}).map(function(t,e){var n=t.id;return{data:{name:n,value:t.value},x:t.x0,y:t.y0,width:t.x1-t.x0,height:t.y1-t.y0,fill:i.colors.getColor(n),label:n,value:t.value,valueType:t.valueType}})},t.prototype.getTooltipText=function(t){return'\n      <span class="tooltip-label">'+t.label+'</span>\n      <span class="tooltip-val">'+t.value.toLocaleString()+"</span>\n    "},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.trackBy=function(t,e){return e.label},r([Object(i.Input)(),o("design:type",Object)],t.prototype,"data",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"dims",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"colors",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"valueFormatting",void 0),r([Object(i.Input)(),o("design:type",Object)],t.prototype,"labelFormatting",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"gradient",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),r([Object(i.Input)(),o("design:type",i.TemplateRef)],t.prototype,"tooltipTemplate",void 0),r([Object(i.Input)(),o("design:type",Boolean)],t.prototype,"animations",void 0),r([Object(i.Output)(),o("design:type",Object)],t.prototype,"select",void 0),t=r([Object(i.Component)({selector:"g[ngx-charts-tree-map-cell-series]",template:'\n    <svg:g ngx-charts-tree-map-cell *ngFor="let c of cells; trackBy:trackBy"\n      [data]="c"\n      [x]="c.x"\n      [y]="c.y"\n      [width]="c.width"\n      [height]="c.height"\n      [fill]="c.fill"\n      [label]="c.label"\n      [value]="c.value"\n      [valueType]="c.valueType"\n      [valueFormatting]="valueFormatting"\n      [labelFormatting]="labelFormatting"\n      [gradient]="gradient"\n      [animations]="animations"\n      (select)="onClick($event)"\n      ngx-tooltip\n      [tooltipDisabled]="tooltipDisabled"\n      [tooltipPlacement]="\'top\'"\n      [tooltipType]="\'tooltip\'"\n      [tooltipTitle]="tooltipTemplate ? undefined : getTooltipText(c)"\n      [tooltipTemplate]="tooltipTemplate"\n      [tooltipContext]="c.data">\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush})],t)}()},"./src/tree-map/tree-map-cell.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("@angular/core"),r=(n.n(i),n("d3-selection")),o=(n.n(r),n("./src/utils/color-utils.ts")),s=n("./src/common/trim-label.helper.ts"),a=n("./src/utils/id.ts"),c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function t(t){this.gradient=!1,this.animations=!0,this.select=new i.EventEmitter,this.initialized=!1,this.element=t.nativeElement}return t.prototype.ngOnChanges=function(){this.update(),this.valueFormatting=this.valueFormatting||function(t){return t.value.toLocaleString()};var t=this.labelFormatting||function(t){return Object(s.a)(t.label,55)},e={data:this.data,label:this.label,value:this.value};this.formattedValue=this.valueFormatting(e),this.formattedLabel=t(e),this.gradientId="grad"+Object(a.a)().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops()},t.prototype.update=function(){this.initialized?this.animateToCurrentForm():(this.animations&&this.loadAnimation(),this.initialized=!0)},t.prototype.loadAnimation=function(){Object(r.select)(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()},t.prototype.getTextColor=function(){return Object(o.a)(this.fill)},t.prototype.animateToCurrentForm=function(){var t=Object(r.select)(this.element).select(".cell");this.animations?t.transition().duration(750).attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height):t.attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)},t.prototype.onClick=function(){this.select.emit({name:this.label,value:this.value})},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]},c([Object(i.Input)(),u("design:type",Object)],t.prototype,"data",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"fill",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"x",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"y",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"width",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"height",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"label",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"value",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"valueType",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"valueFormatting",void 0),c([Object(i.Input)(),u("design:type",Object)],t.prototype,"labelFormatting",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"gradient",void 0),c([Object(i.Input)(),u("design:type",Boolean)],t.prototype,"animations",void 0),c([Object(i.Output)(),u("design:type",Object)],t.prototype,"select",void 0),t=c([Object(i.Component)({selector:"g[ngx-charts-tree-map-cell]",template:'\n    <svg:g>\n      <defs *ngIf="gradient">\n        <svg:g ngx-charts-svg-linear-gradient\n          orientation="vertical"\n          [name]="gradientId"\n          [stops]="gradientStops"\n        />\n      </defs>\n      <svg:rect\n        [attr.fill]="gradient ? gradientUrl : fill"\n        [attr.width]="width"\n        [attr.height]="height"\n        [attr.x]="x"\n        [attr.y]="y"\n        [style.cursor]="\'pointer\'"\n        class="cell"\n        (click)="onClick()"\n      />\n      <svg:foreignObject\n        *ngIf="width >= 70 && height >= 35"\n        [attr.x]="x"\n        [attr.y]="y"\n        [attr.width]="width"\n        [attr.height]="height"\n        class="label"\n        [style.pointer-events]="\'none\'">\n        <xhtml:p\n          [style.color]="getTextColor()"\n          [style.height]="height + \'px\'"\n          [style.width]="width + \'px\'">\n          <xhtml:span class="treemap-label" [innerHTML]="formattedLabel">\n          </xhtml:span>\n          <xhtml:br />\n          <xhtml:span *ngIf="animations"\n            class="treemap-val" \n            ngx-charts-count-up \n            [countTo]="value"\n            [valueFormatting]="valueFormatting">\n          </xhtml:span>\n          <xhtml:span *ngIf="!animations"\n            class="treemap-val">\n            {{formattedValue}}\n          </xhtml:span>\n        </xhtml:p>\n      </svg:foreignObject>\n    </svg:g>\n  ',changeDetection:i.ChangeDetectionStrategy.OnPush}),u("design:paramtypes",[i.ElementRef])],t)}()},"./src/tree-map/tree-map.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js!./node_modules/sass-loader/lib/loader.js??ref--3-4!./src/tree-map/tree-map.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/tree-map/tree-map.component.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i,r=n("@angular/core"),o=(n.n(r),n("d3-hierarchy")),s=(n.n(o),n("./src/common/base-chart.component.ts")),a=n("./src/common/view-dimensions.helper.ts"),c=n("./src/common/color.helper.ts"),u=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},p=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tooltipDisabled=!1,t.gradient=!1,t.select=new r.EventEmitter,t.margin=[10,10,10,10],t}return u(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.dims=Object(a.a)({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=Object(o.treemap)().size([this.dims.width,this.dims.height]);var t=Object(o.stratify)().id(function(t){var e=t.name;return e="Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString()}).parentId(function(t){return t.isRoot?null:"root"})([{name:"root",value:0,isRoot:!0}].concat(this.results)).sum(function(t){return t.value});this.data=this.treemap(t),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getDomain=function(){return this.results.map(function(t){return t.name})},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.setColors=function(){this.colors=new c.a(this.scheme,"ordinal",this.domain,this.customColors)},l([Object(r.Input)(),p("design:type",Object)],t.prototype,"results",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"valueFormatting",void 0),l([Object(r.Input)(),p("design:type",Object)],t.prototype,"labelFormatting",void 0),l([Object(r.Input)(),p("design:type",Boolean)],t.prototype,"gradient",void 0),l([Object(r.Output)(),p("design:type",Object)],t.prototype,"select",void 0),l([Object(r.ContentChild)("tooltipTemplate"),p("design:type",r.TemplateRef)],t.prototype,"tooltipTemplate",void 0),t=l([Object(r.Component)({selector:"ngx-charts-tree-map",template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="false"\n      [animations]="animations">\n      <svg:g [attr.transform]="transform" class="tree-map chart">\n        <svg:g ngx-charts-tree-map-cell-series\n          [colors]="colors"\n          [data]="data"\n          [dims]="dims"\n          [tooltipDisabled]="tooltipDisabled"\n          [tooltipTemplate]="tooltipTemplate"\n          [valueFormatting]="valueFormatting"\n          [labelFormatting]="labelFormatting"\n          [gradient]="gradient"\n          [animations]="animations"\n          (select)="onClick($event)"\n        />\n      </svg:g>\n    </ngx-charts-chart>\n  ',styles:[n("./src/tree-map/tree-map.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],t)}(s.a)},"./src/tree-map/tree-map.module.ts":function(t,e,n){"use strict";n.d(e,"d",function(){return u});var i=n("@angular/core"),r=(n.n(i),n("./src/common/chart-common.module.ts")),o=n("./src/tree-map/tree-map-cell.component.ts"),s=n("./src/tree-map/tree-map-cell-series.component.ts"),a=n("./src/tree-map/tree-map.component.ts");n.d(e,"a",function(){return o.a}),n.d(e,"b",function(){return s.a}),n.d(e,"c",function(){return a.a});var c=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},u=function(){function t(){}return t=c([Object(i.NgModule)({imports:[r.a],declarations:[o.a,s.a,a.a],exports:[o.a,s.a,a.a]})],t)}()},"./src/utils/color-sets.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}]},"./src/utils/color-utils.ts":function(t,e,n){"use strict";e.a=function(t){var e=h.rgb(t),n=e.r,i=e.g,r=e.b;if(0===e.opacity)return e.toString();return o=e,s=128<=(299*n+587*i+114*r)/1e3?-.8:.8,a=o.r,c=o.g,u=o.b,l=s<0?0:255,p=s<0?-1*s:s,a=Math.round((l-a)*p)+a,c=Math.round((l-c)*p)+c,u=Math.round((l-u)*p)+u,"rgb("+a+", "+c+", "+u+")";var o,s,a,c,u,l,p};var h=n("d3-color");n.n(h)},"./src/utils/id.ts":function(t,e,n){"use strict";e.a=function t(){var e=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);e="a"+e;if(!i[e])return i[e]=!0,e;return t()};var i={}},"./src/utils/index.ts":function(t,e,n){"use strict";var i=n("./src/utils/id.ts");n.d(e,"b",function(){return i.a});n("./src/utils/color-sets.ts"),n("./src/utils/sort.ts"),n("./src/utils/throttle.ts"),n("./src/utils/color-utils.ts");var r=n("./src/utils/visibility-observer.ts");n.d(e,"a",function(){return r.a});n("./src/utils/types.ts")},"./src/utils/sort.ts":function(t,e,n){"use strict";e.c=function(t,n,i){void 0===i&&(i="asc");return t.sort(function(t,e){return"asc"===i?t[n]-e[n]:e[n]-t[n]})},e.a=function(t,s,a,c){void 0===a&&(a="asc");return t.sort(function(t,e){var n=t[s],i=e[s],r=c.indexOf(n),o=c.indexOf(i);return"asc"===a?r-o:o-r})},e.b=function(t,r,o){void 0===o&&(o="asc");return t.sort(function(t,e){var n=t[r].getTime(),i=e[r].getTime();return"asc"===o?i<n?1:n<i?-1:0:i<n?-1:n<i?1:0})}},"./src/utils/throttle.ts":function(t,e,n){"use strict";e.a=function(i,r){return function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:function(n,i,r){var o,s,a;r=r||{};var c=null,u=0;function l(){u=!1===r.leading?0:+new Date,c=null,a=n.apply(o,s)}return function(){var t=+new Date;u||!1!==r.leading||(u=t);var e=i-(t-u);return o=this,s=arguments,e<=0?(clearTimeout(c),c=null,u=t,a=n.apply(o,s)):c||!1===r.trailing||(c=setTimeout(l,e)),a}}(n.value,i,r)}),this[e]}}}}},"./src/utils/types.ts":function(t,e,n){"use strict";e.a=function(t){return"[object Date]"===toString.call(t)},e.b=function(t){return"number"==typeof t}},"./src/utils/visibility-observer.ts":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("@angular/core"),r=(n.n(i),this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function t(t,e){this.element=t,this.zone=e,this.visible=new i.EventEmitter,this.isVisible=!1,this.runCheck()}return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})},t.prototype.runCheck=function(){var i=this,r=function(){if(i.element){var t=i.element.nativeElement,e=t.offsetHeight,n=t.offsetWidth;e&&n?(clearTimeout(i.timeout),i.onVisibilityChange()):(clearTimeout(i.timeout),i.zone.runOutsideAngular(function(){i.timeout=setTimeout(function(){return r()},100)}))}};this.zone.runOutsideAngular(function(){i.timeout=setTimeout(function(){return r()})})},r([Object(i.Output)(),o("design:type",i.EventEmitter)],t.prototype,"visible",void 0),t}()},"@angular/animations":function(t,e){t.exports=n},"@angular/common":function(t,e){t.exports=i},"@angular/core":function(t,e){t.exports=r},"@angular/platform-browser":function(t,e){t.exports=o},"d3-array":function(t,e){t.exports=s},"d3-brush":function(t,e){t.exports=a},"d3-color":function(t,e){t.exports=c},"d3-force":function(t,e){t.exports=u},"d3-format":function(t,e){t.exports=l},"d3-hierarchy":function(t,e){t.exports=p},"d3-interpolate":function(t,e){t.exports=h},"d3-scale":function(t,e){t.exports=d},"d3-selection":function(t,e){t.exports=f},"d3-shape":function(t,e){t.exports=g},"d3-time-format":function(t,e){t.exports=v},rxjs:function(t,e){t.exports=m},"rxjs/operators":function(t,e){t.exports=y}})},t.exports=i(n("@angular/animations"),n("@angular/common"),n("@angular/core"),n("@angular/platform-browser"),n("d3-array"),n("d3-brush"),n("d3-color"),n("d3-force"),n("d3-format"),n("d3-hierarchy"),n("d3-interpolate"),n("d3-scale"),n("d3-selection"),n("d3-shape"),n("d3-time-format"),n("rxjs"),n("./node_modules/rxjs/_esm5/operators/index.js"))},"./node_modules/base64-js/index.js":function(t,e,n){"use strict";e.byteLength=function(t){var e=d(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){for(var e,n=d(t),i=n[0],r=n[1],o=new h((u=i,l=r,3*(u+l)/4-l)),s=0,a=0<r?i-4:i,c=0;c<a;c+=4)e=p[t.charCodeAt(c)]<<18|p[t.charCodeAt(c+1)]<<12|p[t.charCodeAt(c+2)]<<6|p[t.charCodeAt(c+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;var u,l;2===r&&(e=p[t.charCodeAt(c)]<<2|p[t.charCodeAt(c+1)]>>4,o[s++]=255&e);1===r&&(e=p[t.charCodeAt(c)]<<10|p[t.charCodeAt(c+1)]<<4|p[t.charCodeAt(c+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,r=[],o=0,s=n-i;o<s;o+=16383)r.push(c(t,o,s<o+16383?s:o+16383));1===i?(e=t[n-1],r.push(a[e>>2]+a[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],r.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return r.join("")};for(var a=[],p=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,o=i.length;r<o;++r)a[r]=i[r],p[i.charCodeAt(r)]=r;function d(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,r,o=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[(r=i)>>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return o.join("")}p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},"./node_modules/buffer/index.js":function(t,B,e){"use strict";(function(t){var i=e("./node_modules/base64-js/index.js"),o=e("./node_modules/ieee754/index.js"),s=e("./node_modules/isarray/index.js");function n(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=p.prototype:(null===t&&(t=new p(e)),t.length=e),t}function p(t,e,n){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return r(this,t,e,n)}function r(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);p.TYPED_ARRAY_SUPPORT?(t=e).__proto__=p.prototype:t=l(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!p.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|d(e,n),r=(t=a(t,i)).write(e,n);r!==i&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(p.isBuffer(e)){var n=0|h(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):l(t,e);if("Buffer"===e.type&&s(e.data))return l(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e){if(c(e),t=a(t,e<0?0:0|h(e)),!p.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e){var n=e.length<0?0:0|h(e.length);t=a(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function h(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t,e){if(p.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return P(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(t).length;default:if(i)return P(t).length;e=(""+e).toLowerCase(),i=!0}}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=p.from(e,i)),p.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,r);if("number"==typeof e)return e&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,r){var o,s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a/=s=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var l=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(a<n+c&&(n=a-c),o=n;0<=o;o--){for(var p=!0,h=0;h<c;h++)if(u(t,o+h)!==u(e,h)){p=!1;break}if(p)return o}return-1}function m(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?r<(i=Number(i))&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<i&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function y(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function b(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,s,a,c,u=t[r],l=null,p=239<u?4:223<u?3:191<u?2:1;if(r+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[r+1]))&&127<(c=(31&u)<<6|63&o)&&(l=c);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&2047<(c=(15&u)<<12|(63&o)<<6|63&s)&&(c<55296||57343<c)&&(l=c);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)&&c<1114112&&(l=c)}null===l?(l=65533,p=1):65535<l&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=p}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=O));return n}(i)}B.Buffer=p,B.SlowBuffer=function(t){+t!=t&&(t=0);return p.alloc(+t)},B.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),B.kMaxLength=n(),p.poolSize=8192,p._augment=function(t){return t.__proto__=p.prototype,t},p.from=function(t,e,n){return r(null,t,e,n)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(t,e,n){return i=null,o=e,s=n,c(r=t),r<=0?a(i,r):void 0!==o?"string"==typeof s?a(i,r).fill(o,s):a(i,r).fill(o):a(i,r);var i,r,o,s},p.allocUnsafe=function(t){return u(null,t)},p.allocUnsafeSlow=function(t){return u(null,t)},p.isBuffer=function(t){return!(null==t||!t._isBuffer)},p.compare=function(t,e){if(!p.isBuffer(t)||!p.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var n;if(void 0===e)for(n=e=0;n<t.length;++n)e+=t[n].length;var i=p.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!p.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},p.byteLength=d,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)f(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)f(this,e,e+3),f(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)f(this,e,e+7),f(this,e+1,e+6),f(this,e+2,e+5),f(this,e+3,e+4);return this},p.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?x(this,0,t):function(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return w(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return _(this,e,n);case"base64":return b(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}.apply(this,arguments)},p.prototype.equals=function(t){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t="",e=B.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},p.prototype.compare=function(t,e,n,i,r){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(r<=i&&n<=e)return 0;if(r<=i)return-1;if(n<=e)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(i,r),u=t.slice(e,n),l=0;l<a;++l)if(c[l]!==u[l]){o=c[l],s=u[l];break}return o<s?-1:s<o?1:0},p.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},p.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},p.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},p.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||r<n)&&(n=r),0<t.length&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o,s,a,c,u,l,p,h,d,f=!1;;)switch(i){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return h=e,d=n,F(P(t,(p=this).length-h),p,h,d);case"ascii":return y(this,t,e,n);case"latin1":case"binary":return y(this,t,e,n);case"base64":return c=this,u=e,l=n,F(M(t),c,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=n,F(function(t,e){for(var n,i,r,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,(o=this).length-s),o,s,a);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function j(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function _(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function w(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||i<n)&&(n=i);for(var r="",o=e;o<n;++o)r+=R(t[o]);return r}function S(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function E(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(n<t+e)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,n,i,r,o){if(!p.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r<e||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function I(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r<o;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function A(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r<o;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function C(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,i,r){return r||C(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function D(t,e,n,i,r){return r||C(t,0,n,8),o.write(t,e,n,i,52,8),n+8}p.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),e<t&&(e=t),p.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=p.prototype;else{var r=e-t;n=new p(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+t]}return n},p.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},p.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t+--e],r=1;0<e&&(r*=256);)i+=this[t+--e]*r;return i},p.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},p.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},p.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return(r*=128)<=i&&(i-=Math.pow(2,8*e)),i},p.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||E(t,e,this.length);for(var i=e,r=1,o=this[t+--i];0<i&&(r*=256);)o+=this[t+--i]*r;return(r*=128)<=o&&(o-=Math.pow(2,8*e)),o},p.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},p.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},p.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),o.read(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),o.read(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),o.read(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),o.read(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},p.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||T(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;0<=--r&&(o*=256);)this[e+r]=t/o&255;return e+n},p.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,255,0),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},p.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):A(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):A(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},p.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);T(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;0<=--o&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},p.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},p.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):A(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):A(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},p.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},p.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},p.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},p.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),0<i&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;0<=r;--r)t[r+e]=this[r+n];else if(o<1e3||!p.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},p.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!p.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=p.isBuffer(t)?t:P(new p(t,i).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function R(t){return t<16?"0"+t.toString(16):t.toString(16)}function P(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],s=0;s<i;++s){if(55295<(n=t.charCodeAt(s))&&n<57344){if(!r){if(56319<n){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===i){-1<(e-=3)&&o.push(239,191,189);continue}r=n;continue}if(n<56320){-1<(e-=3)&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&-1<(e-=3)&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function M(t){return i.toByteArray(function(t){var e;if((t=(e=t,e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(B,e("./node_modules/webpack/buildin/global.js"))},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/graph/graph.component.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(void 0)).push([t.i,".graph {\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none; }\n  .graph .edge {\n    stroke: #666;\n    fill: none; }\n    .graph .edge .edge-label {\n      stroke: none;\n      font-size: 12px;\n      fill: #ffffff; }\n  .graph .panning-rect {\n    fill: rgba(0, 0, 0, 0);\n    cursor: move; }\n  .graph .node-group .node:focus {\n    outline: none; }\n",""])},"./node_modules/css-loader/lib/css-base.js":function(t,e,n){(function(a){t.exports=function(n){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e){var r=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new a(JSON.stringify(s)).toString("base64")+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var s;return[n].join("\n")}(t,n);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},s.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&n[o[0]]||(e&&!o[2]?o[2]=e:e&&(o[2]="("+o[2]+") and ("+e+")"),s.push(o))}},s}}).call(e,n("./node_modules/buffer/index.js").Buffer)},"./node_modules/dagre/index.js":function(t,e,n){t.exports={graphlib:n("./node_modules/dagre/lib/graphlib.js"),layout:n("./node_modules/dagre/lib/layout.js"),debug:n("./node_modules/dagre/lib/debug.js"),util:{time:n("./node_modules/dagre/lib/util.js").time,notime:n("./node_modules/dagre/lib/util.js").notime},version:n("./node_modules/dagre/lib/version.js")}},"./node_modules/dagre/lib/acyclic.js":function(t,e,n){"use strict";var a=n("./node_modules/dagre/lib/lodash.js"),c=n("./node_modules/dagre/lib/greedy-fas.js");t.exports={run:function(n){var t="greedy"===n.graph().acyclicer?c(n,(e=n,function(t){return e.edge(t).weight})):(i=n,r=[],o={},s={},a.forEach(i.nodes(),function e(t){a.has(s,t)||(s[t]=!0,o[t]=!0,a.forEach(i.outEdges(t),function(t){a.has(o,t.w)?r.push(t):e(t.w)}),delete o[t])}),r);var i,r,o,s;var e;a.forEach(t,function(t){var e=n.edge(t);n.removeEdge(t),e.forwardName=t.name,e.reversed=!0,n.setEdge(t.w,t.v,e,a.uniqueId("rev"))})},undo:function(i){a.forEach(i.edges(),function(t){var e=i.edge(t);if(e.reversed){i.removeEdge(t);var n=e.forwardName;delete e.reversed,delete e.forwardName,i.setEdge(t.w,t.v,e,n)}})}}},"./node_modules/dagre/lib/add-border-segments.js":function(t,e,n){var a=n("./node_modules/dagre/lib/lodash.js"),u=n("./node_modules/dagre/lib/util.js");function c(t,e,n,i,r,o){var s={width:0,height:0,rank:o,borderType:e},a=r[e][o-1],c=u.addDummyNode(t,"border",s,n);r[e][o]=c,t.setParent(c,i),a&&t.setEdge(a,c,{weight:1})}t.exports=function(s){a.forEach(s.children(),function t(e){var n=s.children(e),i=s.node(e);n.length&&a.forEach(n,t);if(a.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var r=i.minRank,o=i.maxRank+1;r<o;++r)c(s,"borderLeft","_bl",e,i,r),c(s,"borderRight","_br",e,i,r)}})}},"./node_modules/dagre/lib/coordinate-system.js":function(t,e,n){"use strict";var r=n("./node_modules/dagre/lib/lodash.js");function o(e){r.forEach(e.nodes(),function(t){i(e.node(t))}),r.forEach(e.edges(),function(t){i(e.edge(t))})}function i(t){var e=t.width;t.width=t.height,t.height=e}function s(t){t.y=-t.y}function a(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||(n=t,r.forEach(n.nodes(),function(t){s(n.node(t))}),r.forEach(n.edges(),function(t){var e=n.edge(t);r.forEach(e.points,s),r.has(e,"y")&&s(e)}));var n;"lr"!==e&&"rl"!==e||(i=t,r.forEach(i.nodes(),function(t){a(i.node(t))}),r.forEach(i.edges(),function(t){var e=i.edge(t);r.forEach(e.points,a),r.has(e,"x")&&a(e)}),o(t));var i}}},"./node_modules/dagre/lib/data/list.js":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}(t.exports=n).prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return i(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&i(t),t._next=e._next,e._next._prev=t,(e._next=t)._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},"./node_modules/dagre/lib/debug.js":function(t,e,n){var r=n("./node_modules/dagre/lib/lodash.js"),o=n("./node_modules/dagre/lib/util.js"),s=n("./node_modules/dagre/lib/graphlib.js").Graph;t.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),i=new s({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){i.setNode(t,{label:t}),i.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(t){i.setEdge(t.v,t.w,{},t.name)}),r.forEach(t,function(t,e){var n="layer"+e;i.setNode(n,{rank:"same"}),r.reduce(t,function(t,e){return i.setEdge(t,e,{style:"invis"}),e})}),i}}},"./node_modules/dagre/lib/graphlib.js":function(t,e,n){var i;try{i=n("./node_modules/graphlib/index.js")}catch(t){}i||(i=window.graphlib),t.exports=i},"./node_modules/dagre/lib/greedy-fas.js":function(t,e,n){var c=n("./node_modules/dagre/lib/lodash.js"),u=n("./node_modules/dagre/lib/graphlib.js").Graph,l=n("./node_modules/dagre/lib/data/list.js");t.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(t,r){var o=new u,s=0,a=0;c.forEach(t.nodes(),function(t){o.setNode(t,{v:t,in:0,out:0})}),c.forEach(t.edges(),function(t){var e=o.edge(t.v,t.w)||0,n=r(t),i=e+n;o.setEdge(t.v,t.w,i),a=Math.max(a,o.node(t.v).out+=n),s=Math.max(s,o.node(t.w).in+=n)});var e=c.range(a+s+3).map(function(){return new l}),n=s+1;return c.forEach(o.nodes(),function(t){h(e,n,o.node(t))}),{graph:o,buckets:e,zeroIdx:n}}(e,t||r),i=function(t,e,n){var i,r=[],o=e[e.length-1],s=e[0];for(;t.nodeCount();){for(;i=s.dequeue();)p(t,e,n,i);for(;i=o.dequeue();)p(t,e,n,i);if(t.nodeCount())for(var a=e.length-2;0<a;--a)if(i=e[a].dequeue()){r=r.concat(p(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return c.flatten(c.map(i,function(t){return e.outEdges(t.v,t.w)}),!0)};var r=c.constant(1);function p(r,o,s,t,i){var a=i?[]:void 0;return c.forEach(r.inEdges(t.v),function(t){var e=r.edge(t),n=r.node(t.v);i&&a.push({v:t.v,w:t.w}),n.out-=e,h(o,s,n)}),c.forEach(r.outEdges(t.v),function(t){var e=r.edge(t),n=t.w,i=r.node(n);i.in-=e,h(o,s,i)}),r.removeNode(t.v),a}function h(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"./node_modules/dagre/lib/layout.js":function(t,e,n){"use strict";var u=n("./node_modules/dagre/lib/lodash.js"),r=n("./node_modules/dagre/lib/acyclic.js"),o=n("./node_modules/dagre/lib/normalize.js"),s=n("./node_modules/dagre/lib/rank/index.js"),a=n("./node_modules/dagre/lib/util.js").normalizeRanks,c=n("./node_modules/dagre/lib/parent-dummy-chains.js"),l=n("./node_modules/dagre/lib/util.js").removeEmptyRanks,p=n("./node_modules/dagre/lib/nesting-graph.js"),h=n("./node_modules/dagre/lib/add-border-segments.js"),d=n("./node_modules/dagre/lib/coordinate-system.js"),f=n("./node_modules/dagre/lib/order/index.js"),g=n("./node_modules/dagre/lib/position/index.js"),v=n("./node_modules/dagre/lib/util.js"),m=n("./node_modules/dagre/lib/graphlib.js").Graph;t.exports=function(e,t){var i=t&&t.debugTiming?v.time:v.notime;i("layout",function(){var n=i("  buildLayoutGraph",function(){return n=e,i=new m({multigraph:!0,compound:!0}),t=T(n.graph()),i.setGraph(u.merge({},b,E(t,y),u.pick(t,x))),u.forEach(n.nodes(),function(t){var e=T(n.node(t));i.setNode(t,u.defaults(E(e,O),j)),i.setParent(t,n.parent(t))}),u.forEach(n.edges(),function(t){var e=T(n.edge(t));i.setEdge(t,u.merge({},w,E(e,_),u.pick(e,S)))}),i;var n,i,t});i("  runLayout",function(){var e,t;e=n,(t=i)("    makeSpaceForEdgeLabels",function(){var n,i;(i=(n=e).graph()).ranksep/=2,u.forEach(n.edges(),function(t){var e=n.edge(t);e.minlen*=2,"c"!==e.labelpos.toLowerCase()&&("TB"===i.rankdir||"BT"===i.rankdir?e.width+=e.labeloffset:e.height+=e.labeloffset)})}),t("    removeSelfEdges",function(){var n;n=e,u.forEach(n.edges(),function(t){if(t.v===t.w){var e=n.node(t.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:t,label:n.edge(t)}),n.removeEdge(t)}})}),t("    acyclic",function(){r.run(e)}),t("    nestingGraph.run",function(){p.run(e)}),t("    rank",function(){s(v.asNonCompoundGraph(e))}),t("    injectEdgeLabelProxies",function(){var o;o=e,u.forEach(o.edges(),function(t){var e=o.edge(t);if(e.width&&e.height){var n=o.node(t.v),i=o.node(t.w),r={rank:(i.rank-n.rank)/2+n.rank,e:t};v.addDummyNode(o,"edge-proxy",r,"_ep")}})}),t("    removeEmptyRanks",function(){l(e)}),t("    nestingGraph.cleanup",function(){p.cleanup(e)}),t("    normalizeRanks",function(){a(e)}),t("    assignRankMinMax",function(){var n,i;n=e,i=0,u.forEach(n.nodes(),function(t){var e=n.node(t);e.borderTop&&(e.minRank=n.node(e.borderTop).rank,e.maxRank=n.node(e.borderBottom).rank,i=u.max(i,e.maxRank))}),n.graph().maxRank=i}),t("    removeEdgeLabelProxies",function(){var n;n=e,u.forEach(n.nodes(),function(t){var e=n.node(t);"edge-proxy"===e.dummy&&(n.edge(e.e).labelRank=e.rank,n.removeNode(t))})}),t("    normalize.run",function(){o.run(e)}),t("    parentDummyChains",function(){c(e)}),t("    addBorderSegments",function(){h(e)}),t("    order",function(){f(e)}),t("    insertSelfEdges",function(){var r,t;r=e,t=v.buildLayerMatrix(r),u.forEach(t,function(t){var i=0;u.forEach(t,function(t,e){var n=r.node(t);n.order=e+i,u.forEach(n.selfEdges,function(t){v.addDummyNode(r,"selfedge",{width:t.label.width,height:t.label.height,rank:n.rank,order:e+ ++i,e:t.e,label:t.label},"_se")}),delete n.selfEdges})})}),t("    adjustCoordinateSystem",function(){d.adjust(e)}),t("    position",function(){g(e)}),t("    positionSelfEdges",function(){var a;a=e,u.forEach(a.nodes(),function(t){var e=a.node(t);if("selfedge"===e.dummy){var n=a.node(e.e.v),i=n.x+n.width/2,r=n.y,o=e.x-i,s=n.height/2;a.setEdge(e.e,e.label),a.removeNode(t),e.label.points=[{x:i+2*o/3,y:r-s},{x:i+5*o/6,y:r-s},{x:i+o,y:r},{x:i+5*o/6,y:r+s},{x:i+2*o/3,y:r+s}],e.label.x=e.x,e.label.y=e.y}})}),t("    removeBorderNodes",function(){var s;s=e,u.forEach(s.nodes(),function(t){if(s.children(t).length){var e=s.node(t),n=s.node(e.borderTop),i=s.node(e.borderBottom),r=s.node(u.last(e.borderLeft)),o=s.node(u.last(e.borderRight));e.width=Math.abs(o.x-r.x),e.height=Math.abs(i.y-n.y),e.x=r.x+e.width/2,e.y=n.y+e.height/2}}),u.forEach(s.nodes(),function(t){"border"===s.node(t).dummy&&s.removeNode(t)})}),t("    normalize.undo",function(){o.undo(e)}),t("    fixupEdgeLabelCoords",function(){var n;n=e,u.forEach(n.edges(),function(t){var e=n.edge(t);if(u.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}})}),t("    undoCoordinateSystem",function(){d.undo(e)}),t("    translateGraph",function(){!function(n){var o=Number.POSITIVE_INFINITY,s=0,a=Number.POSITIVE_INFINITY,c=0,t=n.graph(),e=t.marginx||0,i=t.marginy||0;function r(t){var e=t.x,n=t.y,i=t.width,r=t.height;o=Math.min(o,e-i/2),s=Math.max(s,e+i/2),a=Math.min(a,n-r/2),c=Math.max(c,n+r/2)}u.forEach(n.nodes(),function(t){r(n.node(t))}),u.forEach(n.edges(),function(t){var e=n.edge(t);u.has(e,"x")&&r(e)}),o-=e,a-=i,u.forEach(n.nodes(),function(t){var e=n.node(t);e.x-=o,e.y-=a}),u.forEach(n.edges(),function(t){var e=n.edge(t);u.forEach(e.points,function(t){t.x-=o,t.y-=a}),u.has(e,"x")&&(e.x-=o),u.has(e,"y")&&(e.y-=a)}),t.width=s-o+e,t.height=c-a+i}(e)}),t("    assignNodeIntersects",function(){var s;s=e,u.forEach(s.edges(),function(t){var e,n,i=s.edge(t),r=s.node(t.v),o=s.node(t.w);i.points?(e=i.points[0],n=i.points[i.points.length-1]):(i.points=[],e=o,n=r),i.points.unshift(v.intersectRect(r,e)),i.points.push(v.intersectRect(o,n))})}),t("    reversePoints",function(){var n;n=e,u.forEach(n.edges(),function(t){var e=n.edge(t);e.reversed&&e.points.reverse()})}),t("    acyclic.undo",function(){r.undo(e)})}),i("  updateInputGraph",function(){var i,r;i=e,r=n,u.forEach(i.nodes(),function(t){var e=i.node(t),n=r.node(t);e&&(e.x=n.x,e.y=n.y,r.children(t).length&&(e.width=n.width,e.height=n.height))}),u.forEach(i.edges(),function(t){var e=i.edge(t),n=r.edge(t);e.points=n.points,u.has(n,"x")&&(e.x=n.x,e.y=n.y)}),i.graph().width=r.graph().width,i.graph().height=r.graph().height})})};var y=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},x=["acyclicer","ranker","rankdir","align"],O=["width","height"],j={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],w={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function E(t,e){return u.mapValues(u.pick(t,e),Number)}function T(t){var n={};return u.forEach(t,function(t,e){n[e.toLowerCase()]=t}),n}},"./node_modules/dagre/lib/lodash.js":function(t,e,n){var i;try{i=n("./node_modules/dagre/node_modules/lodash/lodash.js")}catch(t){}i||(i=window._),t.exports=i},"./node_modules/dagre/lib/nesting-graph.js":function(t,e,n){var v=n("./node_modules/dagre/lib/lodash.js"),m=n("./node_modules/dagre/lib/util.js");t.exports={run:function(e){var n=m.addDummyNode(e,"root",{},"_root"),i=(s=e,a={},v.forEach(s.children(),function(t){!function e(t,n){var i=s.children(t);i&&i.length&&v.forEach(i,function(t){e(t,n+1)}),a[t]=n}(t,1)}),a),r=v.max(v.values(i))-1,o=2*r+1;var s,a;e.graph().nestingRoot=n,v.forEach(e.edges(),function(t){e.edge(t).minlen*=o});var c=(u=e,v.reduce(u.edges(),function(t,e){return t+u.edge(e).weight},0)+1);var u;v.forEach(e.children(),function(t){!function s(a,c,u,l,p,h,d){var t=a.children(d);if(!t.length)return void(d!==c&&a.setEdge(c,d,{weight:0,minlen:u}));var f=m.addBorderNode(a,"_bt"),g=m.addBorderNode(a,"_bb"),e=a.node(d);a.setParent(f,d);e.borderTop=f;a.setParent(g,d);e.borderBottom=g;v.forEach(t,function(t){s(a,c,u,l,p,h,t);var e=a.node(t),n=e.borderTop?e.borderTop:t,i=e.borderBottom?e.borderBottom:t,r=e.borderTop?l:2*l,o=n!==i?1:p-h[d]+1;a.setEdge(f,n,{weight:r,minlen:o,nestingEdge:!0}),a.setEdge(i,g,{weight:r,minlen:o,nestingEdge:!0})});a.parent(d)||a.setEdge(c,f,{weight:0,minlen:p+h[d]})}(e,n,o,c,r,i,t)}),e.graph().nodeRankFactor=o},cleanup:function(n){var t=n.graph();n.removeNode(t.nestingRoot),delete t.nestingRoot,v.forEach(n.edges(),function(t){var e=n.edge(t);e.nestingEdge&&n.removeEdge(t)})}}},"./node_modules/dagre/lib/normalize.js":function(t,e,n){"use strict";var i=n("./node_modules/dagre/lib/lodash.js"),h=n("./node_modules/dagre/lib/util.js");t.exports={run:function(e){e.graph().dummyChains=[],i.forEach(e.edges(),function(t){!function(t,e){var n,i,r,o=e.v,s=t.node(o).rank,a=e.w,c=t.node(a).rank,u=e.name,l=t.edge(e),p=l.labelRank;if(c===s+1)return;for(t.removeEdge(e),r=0,++s;s<c;++r,++s)l.points=[],i={width:0,height:0,edgeLabel:l,edgeObj:e,rank:s},n=h.addDummyNode(t,"edge",i,"_d"),s===p&&(i.width=l.width,i.height=l.height,i.dummy="edge-label",i.labelpos=l.labelpos),t.setEdge(o,n,{weight:l.weight},u),0===r&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,a,{weight:l.weight},u)}(e,t)})},undo:function(r){i.forEach(r.graph().dummyChains,function(t){var e,n=r.node(t),i=n.edgeLabel;for(r.setEdge(n.edgeObj,i);n.dummy;)e=r.successors(t)[0],r.removeNode(t),i.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height),t=e,n=r.node(t)})}}},"./node_modules/dagre/lib/order/add-subgraph-constraints.js":function(t,e,n){var i=n("./node_modules/dagre/lib/lodash.js");t.exports=function(r,o,t){var s,a={};i.forEach(t,function(t){for(var e,n,i=r.parent(t);i;){if((e=r.parent(i))?(n=a[e],a[e]=i):(n=s,s=i),n&&n!==i)return void o.setEdge(n,i);i=e}})}},"./node_modules/dagre/lib/order/barycenter.js":function(t,e,n){var i=n("./node_modules/dagre/lib/lodash.js");t.exports=function(r,t){return i.map(t,function(t){var e=r.inEdges(t);if(e.length){var n=i.reduce(e,function(t,e){var n=r.edge(e),i=r.node(e.v);return{sum:t.sum+n.weight*i.order,weight:t.weight+n.weight}},{sum:0,weight:0});return{v:t,barycenter:n.sum/n.weight,weight:n.weight}}return{v:t}})}},"./node_modules/dagre/lib/order/build-layer-graph.js":function(t,e,n){var c=n("./node_modules/dagre/lib/lodash.js"),r=n("./node_modules/dagre/lib/graphlib.js").Graph;t.exports=function(o,n,i){var s=function(t){var e;for(;t.hasNode(e=c.uniqueId("_root")););return e}(o),a=new r({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(t){return o.node(t)});return c.forEach(o.nodes(),function(r){var t=o.node(r),e=o.parent(r);(t.rank===n||t.minRank<=n&&n<=t.maxRank)&&(a.setNode(r),a.setParent(r,e||s),c.forEach(o[i](r),function(t){var e=t.v===r?t.w:t.v,n=a.edge(e,r),i=c.isUndefined(n)?0:n.weight;a.setEdge(e,r,{weight:o.edge(t).weight+i})}),c.has(t,"minRank")&&a.setNode(r,{borderLeft:t.borderLeft[n],borderRight:t.borderRight[n]}))}),a}},"./node_modules/dagre/lib/order/cross-count.js":function(t,e,n){"use strict";var u=n("./node_modules/dagre/lib/lodash.js");function r(e,t,n){for(var i=u.zipObject(n,u.map(n,function(t,e){return e})),r=u.flatten(u.map(t,function(t){return u.chain(e.outEdges(t)).map(function(t){return{pos:i[t.w],weight:e.edge(t).weight}}).sortBy("pos").value()}),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var a=u.map(new Array(s),function(){return 0}),c=0;return u.forEach(r.forEach(function(t){var e=t.pos+o;a[e]+=t.weight;for(var n=0;0<e;)e%2&&(n+=a[e+1]),a[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,i=1;i<e.length;++i)n+=r(t,e[i-1],e[i]);return n}},"./node_modules/dagre/lib/order/index.js":function(t,e,n){"use strict";var l=n("./node_modules/dagre/lib/lodash.js"),p=n("./node_modules/dagre/lib/order/init-order.js"),h=n("./node_modules/dagre/lib/order/cross-count.js"),o=n("./node_modules/dagre/lib/order/sort-subgraph.js"),i=n("./node_modules/dagre/lib/order/build-layer-graph.js"),s=n("./node_modules/dagre/lib/order/add-subgraph-constraints.js"),a=n("./node_modules/dagre/lib/graphlib.js").Graph,d=n("./node_modules/dagre/lib/util.js");function f(e,t,n){return l.map(t,function(t){return i(e,t,n)})}function g(t,i){var r=new a;l.forEach(t,function(n){var t=n.graph().root,e=o(n,t,r,i);l.forEach(e.vs,function(t,e){n.node(t).order=e}),s(n,r,e.vs)})}function v(n,t){l.forEach(t,function(t){l.forEach(t,function(t,e){n.node(t).order=e})})}t.exports=function(t){var e=d.maxRank(t),n=f(t,l.range(1,e+1),"inEdges"),i=f(t,l.range(e-1,-1,-1),"outEdges"),r=p(t);v(t,r);for(var o,s=Number.POSITIVE_INFINITY,a=0,c=0;c<4;++a,++c){g(a%2?n:i,2<=a%4),r=d.buildLayerMatrix(t);var u=h(t,r);u<s&&(c=0,o=l.cloneDeep(r),s=u)}v(t,o)}},"./node_modules/dagre/lib/order/init-order.js":function(t,e,n){"use strict";var s=n("./node_modules/dagre/lib/lodash.js");t.exports=function(i){var r={},t=s.filter(i.nodes(),function(t){return!i.children(t).length}),e=s.max(s.map(t,function(t){return i.node(t).rank})),o=s.map(s.range(e+1),function(){return[]});var n=s.sortBy(t,function(t){return i.node(t).rank});return s.forEach(n,function t(e){if(!s.has(r,e)){r[e]=!0;var n=i.node(e);o[n.rank].push(e),s.forEach(i.successors(e),t)}}),o}},"./node_modules/dagre/lib/order/resolve-conflicts.js":function(t,e,n){"use strict";var s=n("./node_modules/dagre/lib/lodash.js");t.exports=function(t,e){var i={};return s.forEach(t,function(t,e){var n=i[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};s.isUndefined(t.barycenter)||(n.barycenter=t.barycenter,n.weight=t.weight)}),s.forEach(e.edges(),function(t){var e=i[t.v],n=i[t.w];s.isUndefined(e)||s.isUndefined(n)||(n.indegree++,e.out.push(i[t.w]))}),function(n){var t=[];function e(o){return function(t){var e,n,i,r;t.merged||(s.isUndefined(t.barycenter)||s.isUndefined(o.barycenter)||t.barycenter>=o.barycenter)&&(n=t,r=i=0,(e=o).weight&&(i+=e.barycenter*e.weight,r+=e.weight),n.weight&&(i+=n.barycenter*n.weight,r+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=i/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0)}}function i(e){return function(t){t.in.push(e),0==--t.indegree&&n.push(t)}}for(;n.length;){var r=n.pop();t.push(r),s.forEach(r.in.reverse(),e(r)),s.forEach(r.out,i(r))}return s.chain(t).filter(function(t){return!t.merged}).map(function(t){return s.pick(t,["vs","i","barycenter","weight"])}).value()}(s.filter(i,function(t){return!t.indegree}))}},"./node_modules/dagre/lib/order/sort-subgraph.js":function(t,e,n){var m=n("./node_modules/dagre/lib/lodash.js"),y=n("./node_modules/dagre/lib/order/barycenter.js"),b=n("./node_modules/dagre/lib/order/resolve-conflicts.js"),x=n("./node_modules/dagre/lib/order/sort.js");t.exports=function r(o,t,s,a){var e=o.children(t),n=o.node(t),i=n?n.borderLeft:void 0,c=n?n.borderRight:void 0,u={};i&&(e=m.filter(e,function(t){return t!==i&&t!==c}));var l=y(o,e);m.forEach(l,function(t){if(o.children(t.v).length){var e=r(o,t.v,s,a);u[t.v]=e,m.has(e,"barycenter")&&(n=t,i=e,m.isUndefined(n.barycenter)?(n.barycenter=i.barycenter,n.weight=i.weight):(n.barycenter=(n.barycenter*n.weight+i.barycenter*i.weight)/(n.weight+i.weight),n.weight+=i.weight))}var n,i});var p=b(l,s);h=p,d=u,m.forEach(h,function(t){t.vs=m.flatten(t.vs.map(function(t){return d[t]?d[t].vs:t}),!0)});var h,d;var f=x(p,a);if(i&&(f.vs=m.flatten([i,f.vs,c],!0),o.predecessors(i).length)){var g=o.node(o.predecessors(i)[0]),v=o.node(o.predecessors(c)[0]);m.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+g.order+v.order)/(f.weight+2),f.weight+=2}return f}},"./node_modules/dagre/lib/order/sort.js":function(t,e,n){var p=n("./node_modules/dagre/lib/lodash.js"),h=n("./node_modules/dagre/lib/util.js");function d(t,e,n){for(var i;e.length&&(i=p.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=h.partition(t,function(t){return p.has(t,"barycenter")}),i=n.lhs,r=p.sortBy(n.rhs,function(t){return-t.i}),o=[],s=0,a=0,c=0;i.sort((u=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:u?e.i-t.i:t.i-e.i})),c=d(o,r,c),p.forEach(i,function(t){c+=t.vs.length,o.push(t.vs),s+=t.barycenter*t.weight,a+=t.weight,c=d(o,r,c)});var u;var l={vs:p.flatten(o,!0)};a&&(l.barycenter=s/a,l.weight=a);return l}},"./node_modules/dagre/lib/parent-dummy-chains.js":function(t,e,n){var s=n("./node_modules/dagre/lib/lodash.js");t.exports=function(u){var l=(i=u,r={},o=0,s.forEach(i.children(),function t(e){var n=o;s.forEach(i.children(e),t),r[e]={low:n,lim:o++}}),r);var i,r,o;s.forEach(u.graph().dummyChains,function(t){for(var e=u.node(t),n=e.edgeObj,i=function(t,e,n,i){var r,o,s=[],a=[],c=Math.min(e[n].low,e[i].low),u=Math.max(e[n].lim,e[i].lim);r=n;for(;r=t.parent(r),s.push(r),r&&(e[r].low>c||u>e[r].lim););o=r,r=i;for(;(r=t.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(u,l,n.v,n.w),r=i.path,o=i.lca,s=0,a=r[s],c=!0;t!==n.w;){if(e=u.node(t),c){for(;(a=r[s])!==o&&u.node(a).maxRank<e.rank;)s++;a===o&&(c=!1)}if(!c){for(;s<r.length-1&&u.node(a=r[s+1]).minRank<=e.rank;)s++;a=r[s]}u.setParent(t,a),t=u.successors(t)[0]}})}},"./node_modules/dagre/lib/position/bk.js":function(t,e,n){"use strict";var b=n("./node_modules/dagre/lib/lodash.js"),x=n("./node_modules/dagre/lib/graphlib.js").Graph,i=n("./node_modules/dagre/lib/util.js");function r(u,t){var l={};return b.reduce(t,function(t,i){var o=0,s=0,a=t.length,c=b.last(i);return b.forEach(i,function(t,e){var n=function(e,t){if(e.node(t).dummy)return b.find(e.predecessors(t),function(t){return e.node(t).dummy})}(u,t),r=n?u.node(n).order:a;(n||t===c)&&(b.forEach(i.slice(s,e+1),function(i){b.forEach(u.predecessors(i),function(t){var e=u.node(t),n=e.order;!(n<o||r<n)||e.dummy&&u.node(i).dummy||p(l,t,i)})}),s=e+1,o=r)}),i}),l}function u(c,t){var s={};function u(e,t,n,i,r){var o;b.forEach(b.range(t,n),function(t){o=e[t],c.node(o).dummy&&b.forEach(c.predecessors(o),function(t){var e=c.node(t);e.dummy&&(e.order<i||e.order>r)&&p(s,t,o)})})}return b.reduce(t,function(i,r){var o,s=-1,a=0;return b.forEach(r,function(t,e){if("border"===c.node(t).dummy){var n=c.predecessors(t);n.length&&(o=c.node(n[0]).order,u(r,a,e,s,o),a=e,s=o)}u(r,a,r.length,o,i.length)}),r}),s}function p(t,e,n){if(n<e){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function h(t,e,n){if(n<e){var i=e;e=n,n=i}return b.has(t[e],n)}function l(t,e,a,c){var u={},l={},p={};return b.forEach(e,function(t){b.forEach(t,function(t,e){u[t]=t,l[t]=t,p[t]=e})}),b.forEach(e,function(t){var s=-1;b.forEach(t,function(t){var e=c(t);if(e.length)for(var n=((e=b.sortBy(e,function(t){return p[t]})).length-1)/2,i=Math.floor(n),r=Math.ceil(n);i<=r;++i){var o=e[i];l[t]===t&&s<p[o]&&!h(a,t,o)&&(l[o]=t,l[t]=u[t]=u[o],s=p[o])}})}),{root:u,align:l}}function d(i,t,e,n,r){var o,s,a,c,u,l,p,h,d,f,g={},v=(o=i,s=t,a=e,c=r,u=new x,l=o.graph(),h=l.nodesep,d=l.edgesep,f=c,p=function(t,e,n){var i,r=t.node(e),o=t.node(n),s=0;if(s+=r.width/2,b.has(r,"labelpos"))switch(r.labelpos.toLowerCase()){case"l":i=-r.width/2;break;case"r":i=r.width/2}if(i&&(s+=f?i:-i),i=0,s+=(r.dummy?d:h)/2,s+=(o.dummy?d:h)/2,s+=o.width/2,b.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":i=o.width/2;break;case"r":i=-o.width/2}return i&&(s+=f?i:-i),i=0,s},b.forEach(s,function(t){var r;b.forEach(t,function(t){var e=a[t];if(u.setNode(e),r){var n=a[r],i=u.edge(n,e);u.setEdge(n,e,Math.max(p(o,t,r),i||0))}r=t})}),u),m=r?"borderLeft":"borderRight";function y(t,e){for(var n=v.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return y(function(t){g[t]=v.inEdges(t).reduce(function(t,e){return Math.max(t,g[e.v]+v.edge(e))},0)},b.bind(v.predecessors,v)),y(function(t){var e=v.outEdges(t).reduce(function(t,e){return Math.min(t,g[e.w]-v.edge(e))},Number.POSITIVE_INFINITY),n=i.node(t);e!==Number.POSITIVE_INFINITY&&n.borderType!==m&&(g[t]=Math.max(g[t],e))},b.bind(v.successors,v)),b.forEach(n,function(t){g[t]=g[e[t]]}),g}function f(s,t){return b.minBy(b.values(t),function(t){var r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return b.forIn(t,function(t,e){var n,i=(n=e,s.node(n).width/2);r=Math.max(t+i,r),o=Math.min(t-i,o)}),r-o})}function g(s,a){var t=b.values(a),c=b.min(t),u=b.max(t);b.forEach(["u","d"],function(o){b.forEach(["l","r"],function(t){var e,n=o+t,i=s[n];if(i!==a){var r=b.values(i);(e="l"===t?c-b.min(r):u-b.max(r))&&(s[n]=b.mapValues(i,function(t){return t+e}))}})})}function v(i,r){return b.mapValues(i.ul,function(t,e){if(r)return i[r.toLowerCase()][e];var n=b.sortBy(b.map(i,e));return(n[1]+n[2])/2})}t.exports={positionX:function(o){var s,t=i.buildLayerMatrix(o),a=b.merge(r(o,t),u(o,t)),c={};b.forEach(["u","d"],function(r){s="u"===r?t:b.values(t).reverse(),b.forEach(["l","r"],function(t){"r"===t&&(s=b.map(s,function(t){return b.values(t).reverse()}));var e=b.bind("u"===r?o.predecessors:o.successors,o),n=l(o,s,a,e),i=d(o,s,n.root,n.align,"r"===t);"r"===t&&(i=b.mapValues(i,function(t){return-t})),c[r+t]=i})});var e=f(o,c);return g(c,e),v(c,o.graph().align)},findType1Conflicts:r,findType2Conflicts:u,addConflict:p,hasConflict:h,verticalAlignment:l,horizontalCompaction:d,alignCoordinates:g,findSmallestWidthAlignment:f,balance:v}},"./node_modules/dagre/lib/position/index.js":function(t,e,n){"use strict";var s=n("./node_modules/dagre/lib/lodash.js"),a=n("./node_modules/dagre/lib/util.js"),c=n("./node_modules/dagre/lib/position/bk.js").positionX;t.exports=function(n){i=n=a.asNonCompoundGraph(n),t=a.buildLayerMatrix(i),r=i.graph().ranksep,o=0,s.forEach(t,function(t){var e=s.max(s.map(t,function(t){return i.node(t).height}));s.forEach(t,function(t){i.node(t).y=o+e/2}),o+=e+r}),s.forEach(c(n),function(t,e){n.node(e).x=t});var i,t,r,o}},"./node_modules/dagre/lib/rank/feasible-tree.js":function(t,e,n){"use strict";var a=n("./node_modules/dagre/lib/lodash.js"),s=n("./node_modules/dagre/lib/graphlib.js").Graph,c=n("./node_modules/dagre/lib/rank/util.js").slack;function u(o,s){return a.forEach(o.nodes(),function i(r){a.forEach(s.nodeEdges(r),function(t){var e=t.v,n=r===e?t.w:e;o.hasNode(n)||c(s,t)||(o.setNode(n,{}),o.setEdge(r,n,{}),i(n))})}),o.nodeCount()}function l(e,n){return a.minBy(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return c(n,t)})}function p(t,e,n){a.forEach(t.nodes(),function(t){e.node(t).rank+=n})}t.exports=function(t){var e,n,i=new s({directed:!1}),r=t.nodes()[0],o=t.nodeCount();i.setNode(r,{});for(;u(i,t)<o;)e=l(i,t),n=i.hasNode(e.v)?c(t,e):-c(t,e),p(i,t,n);return i}},"./node_modules/dagre/lib/rank/index.js":function(t,e,n){"use strict";var i=n("./node_modules/dagre/lib/rank/util.js").longestPath,r=n("./node_modules/dagre/lib/rank/feasible-tree.js"),o=n("./node_modules/dagre/lib/rank/network-simplex.js");t.exports=function(t){switch(t.graph().ranker){case"network-simplex":a(t);break;case"tight-tree":i(e=t),r(e);break;case"longest-path":s(t);break;default:a(t)}var e};var s=i;function a(t){o(t)}},"./node_modules/dagre/lib/rank/network-simplex.js":function(t,e,n){"use strict";var f=n("./node_modules/dagre/lib/lodash.js"),i=n("./node_modules/dagre/lib/rank/feasible-tree.js"),l=n("./node_modules/dagre/lib/rank/util.js").slack,r=n("./node_modules/dagre/lib/rank/util.js").longestPath,p=n("./node_modules/dagre/lib/graphlib.js").alg.preorder,a=n("./node_modules/dagre/lib/graphlib.js").alg.postorder,o=n("./node_modules/dagre/lib/util.js").simplify;function s(t){t=o(t),r(t);var e,n=i(t);for(d(n),h(n,t);e=u(n);)v(n,t,e,g(n,t,e))}function h(o,s){var t=a(o,o.nodes());t=t.slice(0,t.length-1),f.forEach(t,function(t){var e,n,i,r;n=s,i=t,r=(e=o).node(i).parent,e.edge(i,r).cutvalue=c(e,n,i)})}function c(c,u,l){var p=c.node(l).parent,h=!0,t=u.edge(l,p),d=0;return t||(h=!1,t=u.edge(p,l)),d=t.weight,f.forEach(u.nodeEdges(l),function(t){var e,n,i=t.v===l,r=i?t.w:t.v;if(r!==p){var o=i===h,s=u.edge(t).weight;if(d+=o?s:-s,e=l,n=r,c.hasEdge(e,n)){var a=c.edge(l,r).cutvalue;d+=o?-a:a}}}),d}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),function e(n,i,r,o,t){var s=r,a=n.node(o);i[o]=!0;f.forEach(n.neighbors(o),function(t){f.has(i,t)||(r=e(n,i,r,t,o))});a.low=s;a.lim=r++;t?a.parent=t:delete a.parent;return r}(t,{},1,e)}function u(e){return f.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,n,t){var i=t.v,r=t.w;n.hasEdge(i,r)||(i=t.w,r=t.v);var o=e.node(i),s=e.node(r),a=o,c=!1;o.lim>s.lim&&(a=s,c=!0);var u=f.filter(n.edges(),function(t){return c===m(e,e.node(t.v),a)&&c!==m(e,e.node(t.w),a)});return f.minBy(u,function(t){return l(n,t)})}function v(t,e,n,i){var r,o,s,a,c=n.v,u=n.w;t.removeEdge(c,u),t.setEdge(i.v,i.w,{}),d(t),h(t,e),r=t,o=e,s=f.find(r.nodes(),function(t){return!o.node(t).parent}),a=(a=p(r,s)).slice(1),f.forEach(a,function(t){var e=r.node(t).parent,n=o.edge(t,e),i=!1;n||(n=o.edge(e,t),i=!0),o.node(t).rank=o.node(e).rank+(i?n.minlen:-n.minlen)})}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}(t.exports=s).initLowLimValues=d,s.initCutValues=h,s.calcCutValue=c,s.leaveEdge=u,s.enterEdge=g,s.exchangeEdges=v},"./node_modules/dagre/lib/rank/util.js":function(t,e,n){"use strict";var s=n("./node_modules/dagre/lib/lodash.js");t.exports={longestPath:function(r){var o={};s.forEach(r.sources(),function e(t){var n=r.node(t);if(s.has(o,t))return n.rank;o[t]=!0;var i=s.minBy(s.map(r.outEdges(t),function(t){return e(t.w)-r.edge(t).minlen}));i!==Number.POSITIVE_INFINITY&&null!=i||(i=0);return n.rank=i})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"./node_modules/dagre/lib/util.js":function(t,e,n){"use strict";var a=n("./node_modules/dagre/lib/lodash.js"),o=n("./node_modules/dagre/lib/graphlib.js").Graph;function s(t,e,n,i){for(var r;r=a.uniqueId(i),t.hasNode(r););return n.dummy=e,t.setNode(r,n),r}function c(n){return a.max(a.map(n.nodes(),function(t){var e=n.node(t).rank;if(!a.isUndefined(e))return e}))}t.exports={addDummyNode:s,simplify:function(i){var r=(new o).setGraph(i.graph());return a.forEach(i.nodes(),function(t){r.setNode(t,i.node(t))}),a.forEach(i.edges(),function(t){var e=r.edge(t.v,t.w)||{weight:0,minlen:1},n=i.edge(t);r.setEdge(t.v,t.w,{weight:e.weight+n.weight,minlen:Math.max(e.minlen,n.minlen)})}),r},asNonCompoundGraph:function(e){var n=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return a.forEach(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),a.forEach(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n},successorWeights:function(n){var t=a.map(n.nodes(),function(t){var e={};return a.forEach(n.outEdges(t),function(t){e[t.w]=(e[t.w]||0)+n.edge(t).weight}),e});return a.zipObject(n.nodes(),t)},predecessorWeights:function(n){var t=a.map(n.nodes(),function(t){var e={};return a.forEach(n.inEdges(t),function(t){e[t.v]=(e[t.v]||0)+n.edge(t).weight}),e});return a.zipObject(n.nodes(),t)},intersectRect:function(t,e){var n,i,r=t.x,o=t.y,s=e.x-r,a=e.y-o,c=t.width/2,u=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*c>Math.abs(s)*u?(a<0&&(u=-u),n=u*s/a,i=u):(s<0&&(c=-c),i=(n=c)*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(i){var r=a.map(a.range(c(i)+1),function(){return[]});return a.forEach(i.nodes(),function(t){var e=i.node(t),n=e.rank;a.isUndefined(n)||(r[n][e.order]=t)}),r},normalizeRanks:function(n){var i=a.minBy(a.map(n.nodes(),function(t){return n.node(t).rank}));a.forEach(n.nodes(),function(t){var e=n.node(t);a.has(e,"rank")&&(e.rank-=i)})},removeEmptyRanks:function(n){var i=a.minBy(a.map(n.nodes(),function(t){return n.node(t).rank})),r=[];a.forEach(n.nodes(),function(t){var e=n.node(t).rank-i;r[e]||(r[e]=[]),r[e].push(t)});var o=0,s=n.graph().nodeRankFactor;a.forEach(r,function(t,e){a.isUndefined(t)&&e%s!=0?--o:o&&a.forEach(t,function(t){n.node(t).rank+=o})})},addBorderNode:function(t,e,n,i){var r={width:0,height:0};4<=arguments.length&&(r.rank=n,r.order=i);return s(t,"border",r,e)},maxRank:c,partition:function(t,e){var n={lhs:[],rhs:[]};return a.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=a.now();try{return e()}finally{console.log(t+" time: "+(a.now()-n)+"ms")}},notime:function(t,e){return e()}}},"./node_modules/dagre/lib/version.js":function(t,e){t.exports="0.8.2"},"./node_modules/dagre/node_modules/lodash/lodash.js":function(t,W,Y){(function(N,z){var V;(function(){var es,ns="Expected a function",is="__lodash_hash_undefined__",rs="__lodash_placeholder__",os=9007199254740991,ss=NaN,as=4294967295,cs=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],us="[object Arguments]",ls="[object Array]",ps="[object Boolean]",hs="[object Date]",ds="[object Error]",fs="[object Function]",gs="[object GeneratorFunction]",vs="[object Map]",ms="[object Number]",ys="[object Object]",bs="[object Promise]",xs="[object RegExp]",Os="[object Set]",js="[object String]",_s="[object Symbol]",ws="[object WeakMap]",Ss="[object ArrayBuffer]",Es="[object DataView]",Ts="[object Float32Array]",Is="[object Float64Array]",As="[object Int8Array]",Cs="[object Int16Array]",ks="[object Int32Array]",Ds="[object Uint8Array]",Ls="[object Uint8ClampedArray]",Rs="[object Uint16Array]",Ps="[object Uint32Array]",Ms=/\b__p \+= '';/g,Fs=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ns=/&(?:amp|lt|gt|quot|#39);/g,zs=/[&<>"']/g,Vs=RegExp(Ns.source),Ws=RegExp(zs.source),Ys=/<%-([\s\S]+?)%>/g,Hs=/<%([\s\S]+?)%>/g,$s=/<%=([\s\S]+?)%>/g,Gs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xs=/^\w*$/,Us=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qs=/[\\^$.*+?()[\]{}|]/g,Zs=RegExp(qs.source),Ks=/^\s+|\s+$/g,Js=/^\s+/,Qs=/\s+$/,ta=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ea=/\{\n\/\* \[wrapped with (.+)\] \*/,na=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ra=/\\(\\)?/g,oa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sa=/\w*$/,aa=/^[-+]0x[0-9a-f]+$/i,ca=/^0b[01]+$/i,ua=/^\[object .+?Constructor\]$/,la=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,ha=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,fa=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\ufe0e\\ufe0f",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+t+"]",c="["+s+"]",u="["+e+"]",l="\\d+",p="["+n+"]",h="["+i+"]",d="[^"+t+s+l+n+i+r+"]",f="\\ud83c[\\udffb-\\udfff]",g="[^"+t+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+r+"]",b="(?:"+h+"|"+d+")",x="(?:"+y+"|"+d+")",O="(?:['’](?:d|ll|m|re|s|t|ve))?",j="(?:['’](?:D|LL|M|RE|S|T|VE))?",_="(?:"+u+"|"+f+")"+"?",w="["+o+"]?",S=w+_+("(?:\\u200d(?:"+[g,v,m].join("|")+")"+w+_+")*"),E="(?:"+[p,v,m].join("|")+")"+S,T="(?:"+[g+u+"?",u,v,m,a].join("|")+")",ga=RegExp("['’]","g"),va=RegExp(u,"g"),I=RegExp(f+"(?="+f+")|"+T+S,"g"),ma=RegExp([y+"?"+h+"+"+O+"(?="+[c,y,"$"].join("|")+")",x+"+"+j+"(?="+[c,y+b,"$"].join("|")+")",y+"?"+b+"+"+O,y+"+"+j,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,E].join("|"),"g"),A=RegExp("[\\u200d"+t+e+o+"]"),ya=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ba=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xa=-1,Oa={};Oa[Ts]=Oa[Is]=Oa[As]=Oa[Cs]=Oa[ks]=Oa[Ds]=Oa[Ls]=Oa[Rs]=Oa[Ps]=!0,Oa[us]=Oa[ls]=Oa[Ss]=Oa[ps]=Oa[Es]=Oa[hs]=Oa[ds]=Oa[fs]=Oa[vs]=Oa[ms]=Oa[ys]=Oa[xs]=Oa[Os]=Oa[js]=Oa[ws]=!1;var ja={};ja[us]=ja[ls]=ja[Ss]=ja[Es]=ja[ps]=ja[hs]=ja[Ts]=ja[Is]=ja[As]=ja[Cs]=ja[ks]=ja[vs]=ja[ms]=ja[ys]=ja[xs]=ja[Os]=ja[js]=ja[_s]=ja[Ds]=ja[Ls]=ja[Rs]=ja[Ps]=!0,ja[ds]=ja[fs]=ja[ws]=!1;var C={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_a=parseFloat,wa=parseInt,k="object"==typeof N&&N&&N.Object===Object&&N,D="object"==typeof self&&self&&self.Object===Object&&self,Sa=k||D||Function("return this")(),L="object"==typeof W&&W&&!W.nodeType&&W,R=L&&"object"==typeof z&&z&&!z.nodeType&&z,Ea=R&&R.exports===L,P=Ea&&k.process,M=function(){try{var t=R&&R.require&&R.require("util").types;return t||P&&P.binding&&P.binding("util")}catch(t){}}(),Ta=M&&M.isArrayBuffer,Ia=M&&M.isDate,Aa=M&&M.isMap,Ca=M&&M.isRegExp,ka=M&&M.isSet,Da=M&&M.isTypedArray;function La(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ra(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function Pa(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ma(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Fa(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Ba(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function Na(t,e){return!!(null==t?0:t.length)&&-1<Ua(t,e,0)}function za(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Va(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Wa(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ya(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Ha(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function $a(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var F=Ja("length");function Ga(t,i,e){var r;return e(t,function(t,e,n){if(i(t,e,n))return r=e,!1}),r}function Xa(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Ua(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):Xa(t,Za,n)}function qa(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function Za(t){return t!=t}function Ka(t,e){var n=null==t?0:t.length;return n?tc(t,e)/n:ss}function Ja(e){return function(t){return null==t?es:t[e]}}function B(e){return function(t){return null==e?es:e[t]}}function Qa(t,i,r,o,e){return e(t,function(t,e,n){r=o?(o=!1,t):i(r,t,e,n)}),r}function tc(t,e){for(var n,i=-1,r=t.length;++i<r;){var o=e(t[i]);o!==es&&(n=n===es?o:n+o)}return n}function ec(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function nc(e){return function(t){return e(t)}}function ic(e,t){return Va(t,function(t){return e[t]})}function rc(t,e){return t.has(e)}function oc(t,e){for(var n=-1,i=t.length;++n<i&&-1<Ua(e,t[n],0););return n}function sc(t,e){for(var n=t.length;n--&&-1<Ua(e,t[n],0););return n}var ac=B({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),cc=B({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function uc(t){return"\\"+C[t]}function lc(t){return A.test(t)}function pc(t){var n=-1,i=Array(t.size);return t.forEach(function(t,e){i[++n]=[e,t]}),i}function hc(e,n){return function(t){return e(n(t))}}function dc(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n];s!==e&&s!==rs||(t[n]=rs,o[r++]=n)}return o}function fc(t,e){return"__proto__"==e?es:t[e]}function gc(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function vc(t){return lc(t)?function(t){var e=I.lastIndex=0;for(;I.test(t);)++e;return e}(t):F(t)}function mc(t){return lc(t)?t.match(I)||[]:t.split("")}var yc=B({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bc=function t(e){var n,I=(e=null==e?Sa:bc.defaults(Sa.Object(),e,bc.pick(Sa,ba))).Array,i=e.Date,r=e.Error,v=e.Function,o=e.Math,w=e.Object,m=e.RegExp,l=e.String,A=e.TypeError,s=I.prototype,a=v.prototype,p=w.prototype,c=e["__core-js_shared__"],u=a.toString,S=p.hasOwnProperty,h=0,d=(n=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=p.toString,g=u.call(w),y=Sa._,b=m("^"+u.call(S).replace(qs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=Ea?e.Buffer:es,O=e.Symbol,j=e.Uint8Array,_=x?x.allocUnsafe:es,E=hc(w.getPrototypeOf,w),T=w.create,C=p.propertyIsEnumerable,k=s.splice,D=O?O.isConcatSpreadable:es,L=O?O.iterator:es,R=O?O.toStringTag:es,P=function(){try{var t=zn(w,"defineProperty");return t({},"",{}),t}catch(t){}}(),M=e.clearTimeout!==Sa.clearTimeout&&e.clearTimeout,F=i&&i.now!==Sa.Date.now&&i.now,B=e.setTimeout!==Sa.setTimeout&&e.setTimeout,N=o.ceil,z=o.floor,V=w.getOwnPropertySymbols,W=x?x.isBuffer:es,Y=e.isFinite,H=s.join,$=hc(w.keys,w),G=o.max,X=o.min,U=i.now,q=e.parseInt,Z=o.random,K=s.reverse,J=zn(e,"DataView"),Q=zn(e,"Map"),tt=zn(e,"Promise"),et=zn(e,"Set"),nt=zn(e,"WeakMap"),it=zn(w,"create"),rt=nt&&new nt,ot={},st=di(J),at=di(Q),ct=di(tt),ut=di(et),lt=di(nt),pt=O?O.prototype:es,ht=pt?pt.valueOf:es,dt=pt?pt.toString:es;function ft(t){if(Cr(t)&&!br(t)&&!(t instanceof yt)){if(t instanceof mt)return t;if(S.call(t,"__wrapped__"))return fi(t)}return new mt(t)}var gt=function(){function n(){}return function(t){if(!Ar(t))return{};if(T)return T(t);n.prototype=t;var e=new n;return n.prototype=es,e}}();function vt(){}function mt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=es}function yt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=as,this.__views__=[]}function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ot;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new xt(t);this.size=e.size}function wt(t,e){var n=br(t),i=!n&&yr(t),r=!n&&!i&&_r(t),o=!n&&!i&&!r&&Br(t),s=n||i||r||o,a=s?ec(t.length,l):[],c=a.length;for(var u in t)!e&&!S.call(t,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xn(u,c))||a.push(u);return a}function St(t){var e=t.length;return e?t[je(0,e-1)]:es}function Et(t,e){return ci(rn(t),Pt(e,0,t.length))}function Tt(t){return ci(rn(t))}function It(t,e,n){(n===es||gr(t[e],n))&&(n!==es||e in t)||Lt(t,e,n)}function At(t,e,n){var i=t[e];S.call(t,e)&&gr(i,n)&&(n!==es||e in t)||Lt(t,e,n)}function Ct(t,e){for(var n=t.length;n--;)if(gr(t[n][0],e))return n;return-1}function kt(t,i,r,o){return zt(t,function(t,e,n){i(o,t,r(t),n)}),o}function Dt(t,e){return t&&on(e,so(e),t)}function Lt(t,e,n){"__proto__"==e&&P?P(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rt(t,e){for(var n=-1,i=e.length,r=I(i),o=null==t;++n<i;)r[n]=o?es:eo(t,e[n]);return r}function Pt(t,e,n){return t==t&&(n!==es&&(t=t<=n?t:n),e!==es&&(t=e<=t?t:e)),t}function Mt(n,i,r,t,e,o){var s,a=1&i,c=2&i,u=4&i;if(r&&(s=e?r(n,t,e,o):r(n)),s!==es)return s;if(!Ar(n))return n;var l,p,h,d,f,g,v,m,y,b=br(n);if(b){if(m=(v=n).length,y=new v.constructor(m),m&&"string"==typeof v[0]&&S.call(v,"index")&&(y.index=v.index,y.input=v.input),s=y,!a)return rn(n,s)}else{var x=Yn(n),O=x==fs||x==gs;if(_r(n))return Ke(n,a);if(x==ys||x==us||O&&!e){if(s=c||O?{}:$n(n),!a)return c?(g=h=n,d=(f=s)&&on(g,ao(g),f),on(h,Wn(h),d)):(p=Dt(s,l=n),on(l,Vn(l),p))}else{if(!ja[x])return e?n:{};s=function(t,e,n){var i,r,o,s,a,c=t.constructor;switch(e){case Ss:return Je(t);case ps:case hs:return new c(+t);case Es:return s=t,a=n?Je(s.buffer):s.buffer,new s.constructor(a,s.byteOffset,s.byteLength);case Ts:case Is:case As:case Cs:case ks:case Ds:case Ls:case Rs:case Ps:return Qe(t,n);case vs:return new c;case ms:case js:return new c(t);case xs:return(o=new(r=t).constructor(r.source,sa.exec(r))).lastIndex=r.lastIndex,o;case Os:return new c;case _s:return i=t,ht?w(ht.call(i)):{}}}(n,x,a)}}o||(o=new _t);var j=o.get(n);if(j)return j;if(o.set(n,s),Pr(n))return n.forEach(function(t){s.add(Mt(t,i,r,t,n,o))}),s;if(kr(n))return n.forEach(function(t,e){s.set(e,Mt(t,i,r,e,n,o))}),s;var _=b?es:(u?c?Ln:Dn:c?ao:so)(n);return Pa(_||n,function(t,e){_&&(t=n[e=t]),At(s,e,Mt(t,i,r,e,n,o))}),s}function Ft(t,e,n){var i=n.length;if(null==t)return!i;for(t=w(t);i--;){var r=n[i],o=e[r],s=t[r];if(s===es&&!(r in t)||!o(s))return!1}return!0}function Bt(t,e,n){if("function"!=typeof t)throw new A(ns);return ri(function(){t.apply(es,n)},e)}function Nt(t,e,n,i){var r=-1,o=Na,s=!0,a=t.length,c=[],u=e.length;if(!a)return c;n&&(e=Va(e,nc(n))),i?(o=za,s=!1):200<=e.length&&(o=rc,s=!1,e=new jt(e));t:for(;++r<a;){var l=t[r],p=null==n?l:n(l);if(l=i||0!==l?l:0,s&&p==p){for(var h=u;h--;)if(e[h]===p)continue t;c.push(l)}else o(e,p,i)||c.push(l)}return c}ft.templateSettings={escape:Ys,evaluate:Hs,interpolate:$s,variable:"",imports:{_:ft}},(ft.prototype=vt.prototype).constructor=ft,(mt.prototype=gt(vt.prototype)).constructor=mt,(yt.prototype=gt(vt.prototype)).constructor=yt,bt.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},bt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt.prototype.get=function(t){var e=this.__data__;if(it){var n=e[t];return n===is?es:n}return S.call(e,t)?e[t]:es},bt.prototype.has=function(t){var e=this.__data__;return it?e[t]!==es:S.call(e,t)},bt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=it&&e===es?is:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0||(n==e.length-1?e.pop():k.call(e,n,1),--this.size,0))},xt.prototype.get=function(t){var e=this.__data__,n=Ct(e,t);return n<0?es:e[n][1]},xt.prototype.has=function(t){return-1<Ct(this.__data__,t)},xt.prototype.set=function(t,e){var n=this.__data__,i=Ct(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Ot.prototype.clear=function(){this.size=0,this.__data__={hash:new bt,map:new(Q||xt),string:new bt}},Ot.prototype.delete=function(t){var e=Bn(this,t).delete(t);return this.size-=e?1:0,e},Ot.prototype.get=function(t){return Bn(this,t).get(t)},Ot.prototype.has=function(t){return Bn(this,t).has(t)},Ot.prototype.set=function(t,e){var n=Bn(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},jt.prototype.add=jt.prototype.push=function(t){return this.__data__.set(t,is),this},jt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new xt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var i=n.__data__;if(!Q||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ot(i)}return n.set(t,e),this.size=n.size,this};var zt=cn(Ut),Vt=cn(qt,!0);function Wt(t,i){var r=!0;return zt(t,function(t,e,n){return r=!!i(t,e,n)}),r}function Yt(t,e,n){for(var i=-1,r=t.length;++i<r;){var o=t[i],s=e(o);if(null!=s&&(a===es?s==s&&!Fr(s):n(s,a)))var a=s,c=o}return c}function Ht(t,i){var r=[];return zt(t,function(t,e,n){i(t,e,n)&&r.push(t)}),r}function $t(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=Gn),r||(r=[]);++o<s;){var a=t[o];0<e&&n(a)?1<e?$t(a,e-1,n,i,r):Wa(r,a):i||(r[r.length]=a)}return r}var Gt=un(),Xt=un(!0);function Ut(t,e){return t&&Gt(t,e,so)}function qt(t,e){return t&&Xt(t,e,so)}function Zt(e,t){return Ba(t,function(t){return Er(e[t])})}function Kt(t,e){for(var n=0,i=(e=Xe(e,t)).length;null!=t&&n<i;)t=t[hi(e[n++])];return n&&n==i?t:es}function Jt(t,e,n){var i=e(t);return br(t)?i:Wa(i,n(t))}function Qt(t){return null==t?t===es?"[object Undefined]":"[object Null]":R&&R in w(t)?function(t){var e=S.call(t,R),n=t[R];try{t[R]=es;var i=!0}catch(t){}var r=f.call(t);return i&&(e?t[R]=n:delete t[R]),r}(t):(e=t,f.call(e));var e}function te(t,e){return e<t}function ee(t,e){return null!=t&&S.call(t,e)}function ne(t,e){return null!=t&&e in w(t)}function ie(t,e,n){for(var i=n?za:Na,r=t[0].length,o=t.length,s=o,a=I(o),c=1/0,u=[];s--;){var l=t[s];s&&e&&(l=Va(l,nc(e))),c=X(l.length,c),a[s]=!n&&(e||120<=r&&120<=l.length)?new jt(s&&l):es}l=t[0];var p=-1,h=a[0];t:for(;++p<r&&u.length<c;){var d=l[p],f=e?e(d):d;if(d=n||0!==d?d:0,!(h?rc(h,f):i(u,f,n))){for(s=o;--s;){var g=a[s];if(!(g?rc(g,f):i(t[s],f,n)))continue t}h&&h.push(f),u.push(d)}}return u}function re(t,e,n){var i=null==(t=ni(t,e=Xe(e,t)))?t:t[hi(Si(e))];return null==i?es:La(i,t,n)}function oe(t){return Cr(t)&&Qt(t)==us}function se(t,e,n,i,r){return t===e||(null==t||null==e||!Cr(t)&&!Cr(e)?t!=t&&e!=e:function(t,e,n,i,r,o){var s=br(t),a=br(e),c=s?ls:Yn(t),u=a?ls:Yn(e),l=(c=c==us?ys:c)==ys,p=(u=u==us?ys:u)==ys,h=c==u;if(h&&_r(t)){if(!_r(e))return!1;l=!(s=!0)}if(h&&!l)return o||(o=new _t),s||Br(t)?Cn(t,e,n,i,r,o):function(t,e,n,i,r,o,s){switch(n){case Es:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ss:return!(t.byteLength!=e.byteLength||!o(new j(t),new j(e)));case ps:case hs:case ms:return gr(+t,+e);case ds:return t.name==e.name&&t.message==e.message;case xs:case js:return t==e+"";case vs:var a=pc;case Os:var c=1&i;if(a||(a=gc),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;i|=2,s.set(t,e);var l=Cn(a(t),a(e),i,r,o,s);return s.delete(t),l;case _s:if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,c,n,i,r,o);if(!(1&n)){var d=l&&S.call(t,"__wrapped__"),f=p&&S.call(e,"__wrapped__");if(d||f){var g=d?t.value():t,v=f?e.value():e;return o||(o=new _t),r(g,v,n,i,o)}}return!!h&&(o||(o=new _t),function(t,e,n,i,r,o){var s=1&n,a=Dn(t),c=a.length,u=Dn(e).length;if(c!=u&&!s)return!1;for(var l=c;l--;){var p=a[l];if(!(s?p in e:S.call(e,p)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var d=!0;o.set(t,e),o.set(e,t);for(var f=s;++l<c;){p=a[l];var g=t[p],v=e[p];if(i)var m=s?i(v,g,p,e,t,o):i(g,v,p,t,e,o);if(!(m===es?g===v||r(g,v,n,i,o):m)){d=!1;break}f||(f="constructor"==p)}if(d&&!f){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,i,r,o))}(t,e,n,i,se,r))}function ae(t,e,n,i){var r=n.length,o=r,s=!i;if(null==t)return!o;for(t=w(t);r--;){var a=n[r];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<o;){var c=(a=n[r])[0],u=t[c],l=a[1];if(s&&a[2]){if(u===es&&!(c in t))return!1}else{var p=new _t;if(i)var h=i(u,l,c,t,e,p);if(!(h===es?se(l,u,3,i,p):h))return!1}}return!0}function ce(t){return!(!Ar(t)||(e=t,d&&d in e))&&(Er(t)?b:ua).test(di(t));var e}function ue(t){return"function"==typeof t?t:null==t?Lo:"object"==typeof t?br(t)?ge(t[0],t[1]):fe(t):Wo(t)}function le(t){if(!Jn(t))return $(t);var e=[];for(var n in w(t))S.call(t,n)&&"constructor"!=n&&e.push(n);return e}function pe(t){if(!Ar(t))return function(t){var e=[];if(null!=t)for(var n in w(t))e.push(n);return e}(t);var e=Jn(t),n=[];for(var i in t)("constructor"!=i||!e&&S.call(t,i))&&n.push(i);return n}function he(t,e){return t<e}function de(t,i){var r=-1,o=Or(t)?I(t.length):[];return zt(t,function(t,e,n){o[++r]=i(t,e,n)}),o}function fe(e){var n=Nn(e);return 1==n.length&&n[0][2]?ti(n[0][0],n[0][1]):function(t){return t===e||ae(t,e,n)}}function ge(n,i){return qn(n)&&Qn(i)?ti(hi(n),i):function(t){var e=eo(t,n);return e===es&&e===i?no(t,n):se(i,e,3)}}function ve(i,r,o,s,a){i!==r&&Gt(r,function(t,e){if(Ar(t))a||(a=new _t),function(t,e,n,i,r,o,s){var a=fc(t,n),c=fc(e,n),u=s.get(c);if(u)return It(t,n,u);var l=o?o(a,c,n+"",t,e,s):es,p=l===es;if(p){var h=br(c),d=!h&&_r(c),f=!h&&!d&&Br(c);l=c,h||d||f?l=br(a)?a:jr(a)?rn(a):d?Ke(c,!(p=!1)):f?Qe(c,!(p=!1)):[]:Lr(c)||yr(c)?yr(l=a)?l=Gr(a):(!Ar(a)||i&&Er(a))&&(l=$n(c)):p=!1}p&&(s.set(c,l),r(l,c,i,o,s),s.delete(c)),It(t,n,l)}(i,r,e,o,ve,s,a);else{var n=s?s(fc(i,e),t,e+"",i,r,a):es;n===es&&(n=t),It(i,e,n)}},ao)}function me(t,e){var n=t.length;if(n)return Xn(e+=e<0?n:0,n)?t[e]:es}function ye(t,i,n){var r=-1;return i=Va(i.length?i:[Lo],nc(Fn())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(de(t,function(e,t,n){return{criteria:Va(i,function(t){return t(e)}),index:++r,value:e}}),function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var c=tn(r[i],o[i]);if(c){if(a<=i)return c;var u=n[i];return c*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)})}function be(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=Kt(t,s);n(a,s)&&Te(o,Xe(s,t),a)}return o}function xe(t,e,n,i){var r=i?qa:Ua,o=-1,s=e.length,a=t;for(t===e&&(e=rn(e)),n&&(a=Va(t,nc(n)));++o<s;)for(var c=0,u=e[o],l=n?n(u):u;-1<(c=r(a,l,c,i));)a!==t&&k.call(a,c,1),k.call(t,c,1);return t}function Oe(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Xn(r)?k.call(t,r,1):Ne(t,r)}}return t}function je(t,e){return t+z(Z()*(e-t+1))}function _e(t,e){var n="";if(!t||e<1||os<e)return n;for(;e%2&&(n+=t),(e=z(e/2))&&(t+=t),e;);return n}function we(t,e){return oi(ei(t,e,Lo),t+"")}function Se(t){return St(vo(t))}function Ee(t,e){var n=vo(t);return ci(n,Pt(e,0,n.length))}function Te(t,e,n,i){if(!Ar(t))return t;for(var r=-1,o=(e=Xe(e,t)).length,s=o-1,a=t;null!=a&&++r<o;){var c=hi(e[r]),u=n;if(r!=s){var l=a[c];(u=i?i(l,c,a):es)===es&&(u=Ar(l)?l:Xn(e[r+1])?[]:{})}At(a,c,u),a=a[c]}return t}var Ie=rt?function(t,e){return rt.set(t,e),t}:Lo,Ae=P?function(t,e){return P(t,"toString",{configurable:!0,enumerable:!1,value:Co(e),writable:!0})}:Lo;function Ce(t){return ci(vo(t))}function ke(t,e,n){var i=-1,r=t.length;e<0&&(e=r<-e?0:r+e),(n=r<n?r:n)<0&&(n+=r),r=n<e?0:n-e>>>0,e>>>=0;for(var o=I(r);++i<r;)o[i]=t[i+e];return o}function De(t,i){var r;return zt(t,function(t,e,n){return!(r=i(t,e,n))}),!!r}function Le(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!Fr(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return Re(t,e,Lo,n)}function Re(t,e,n,i){e=n(e);for(var r=0,o=null==t?0:t.length,s=e!=e,a=null===e,c=Fr(e),u=e===es;r<o;){var l=z((r+o)/2),p=n(t[l]),h=p!==es,d=null===p,f=p==p,g=Fr(p);if(s)var v=i||f;else v=u?f&&(i||h):a?f&&h&&(i||!d):c?f&&h&&!d&&(i||!g):!d&&!g&&(i?p<=e:p<e);v?r=l+1:o=l}return X(o,4294967294)}function Pe(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!gr(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function Me(t){return"number"==typeof t?t:Fr(t)?ss:+t}function Fe(t){if("string"==typeof t)return t;if(br(t))return Va(t,Fe)+"";if(Fr(t))return dt?dt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Be(t,e,n){var i=-1,r=Na,o=t.length,s=!0,a=[],c=a;if(n)s=!1,r=za;else if(200<=o){var u=e?null:wn(t);if(u)return gc(u);s=!1,r=rc,c=new jt}else c=e?[]:a;t:for(;++i<o;){var l=t[i],p=e?e(l):l;if(l=n||0!==l?l:0,s&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue t;e&&c.push(p),a.push(l)}else r(c,p,n)||(c!==a&&c.push(p),a.push(l))}return a}function Ne(t,e){return null==(t=ni(t,e=Xe(e,t)))||delete t[hi(Si(e))]}function ze(t,e,n,i){return Te(t,e,n(Kt(t,e)),i)}function Ve(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?ke(t,i?0:o,i?o+1:r):ke(t,i?o+1:0,i?r:o)}function We(t,e){var n=t;return n instanceof yt&&(n=n.value()),Ya(e,function(t,e){return e.func.apply(e.thisArg,Wa([t],e.args))},n)}function Ye(t,e,n){var i=t.length;if(i<2)return i?Be(t[0]):[];for(var r=-1,o=I(i);++r<i;)for(var s=t[r],a=-1;++a<i;)a!=r&&(o[r]=Nt(o[r]||s,t[a],e,n));return Be($t(o,1),e,n)}function He(t,e,n){for(var i=-1,r=t.length,o=e.length,s={};++i<r;){var a=i<o?e[i]:es;n(s,t[i],a)}return s}function $e(t){return jr(t)?t:[]}function Ge(t){return"function"==typeof t?t:Lo}function Xe(t,e){return br(t)?t:qn(t,e)?[t]:pi(Xr(t))}var Ue=we;function qe(t,e,n){var i=t.length;return n=n===es?i:n,!e&&i<=n?t:ke(t,e,n)}var Ze=M||function(t){return Sa.clearTimeout(t)};function Ke(t,e){if(e)return t.slice();var n=t.length,i=_?_(n):new t.constructor(n);return t.copy(i),i}function Je(t){var e=new t.constructor(t.byteLength);return new j(e).set(new j(t)),e}function Qe(t,e){var n=e?Je(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function tn(t,e){if(t!==e){var n=t!==es,i=null===t,r=t==t,o=Fr(t),s=e!==es,a=null===e,c=e==e,u=Fr(e);if(!a&&!u&&!o&&e<t||o&&s&&c&&!a&&!u||i&&s&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&t<e||u&&n&&r&&!i&&!o||a&&n&&r||!s&&r||!c)return-1}return 0}function en(t,e,n,i){for(var r=-1,o=t.length,s=n.length,a=-1,c=e.length,u=G(o-s,0),l=I(c+u),p=!i;++a<c;)l[a]=e[a];for(;++r<s;)(p||r<o)&&(l[n[r]]=t[r]);for(;u--;)l[a++]=t[r++];return l}function nn(t,e,n,i){for(var r=-1,o=t.length,s=-1,a=n.length,c=-1,u=e.length,l=G(o-a,0),p=I(l+u),h=!i;++r<l;)p[r]=t[r];for(var d=r;++c<u;)p[d+c]=e[c];for(;++s<a;)(h||r<o)&&(p[d+n[s]]=t[r++]);return p}function rn(t,e){var n=-1,i=t.length;for(e||(e=I(i));++n<i;)e[n]=t[n];return e}function on(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],c=i?i(n[a],t[a],a,n,t):es;c===es&&(c=t[a]),r?Lt(n,a,c):At(n,a,c)}return n}function sn(r,o){return function(t,e){var n=br(t)?Ra:kt,i=o?o():{};return n(t,r,Fn(e,2),i)}}function an(a){return we(function(t,e){var n=-1,i=e.length,r=1<i?e[i-1]:es,o=2<i?e[2]:es;for(r=3<a.length&&"function"==typeof r?(i--,r):es,o&&Un(e[0],e[1],o)&&(r=i<3?es:r,i=1),t=w(t);++n<i;){var s=e[n];s&&a(t,s,n,r)}return t})}function cn(o,s){return function(t,e){if(null==t)return t;if(!Or(t))return o(t,e);for(var n=t.length,i=s?n:-1,r=w(t);(s?i--:++i<n)&&!1!==e(r[i],i,r););return t}}function un(c){return function(t,e,n){for(var i=-1,r=w(t),o=n(t),s=o.length;s--;){var a=o[c?s:++i];if(!1===e(r[a],a,r))break}return t}}function ln(r){return function(t){var e=lc(t=Xr(t))?mc(t):es,n=e?e[0]:t.charAt(0),i=e?qe(e,1).join(""):t.slice(1);return n[r]()+i}}function pn(e){return function(t){return Ya(To(bo(t).replace(ga,"")),e,"")}}function hn(i){return function(){var t=arguments;switch(t.length){case 0:return new i;case 1:return new i(t[0]);case 2:return new i(t[0],t[1]);case 3:return new i(t[0],t[1],t[2]);case 4:return new i(t[0],t[1],t[2],t[3]);case 5:return new i(t[0],t[1],t[2],t[3],t[4]);case 6:return new i(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new i(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=gt(i.prototype),n=i.apply(e,t);return Ar(n)?n:e}}function dn(s){return function(t,e,n){var i=w(t);if(!Or(t)){var r=Fn(e,3);t=so(t),e=function(t){return r(i[t],t,i)}}var o=s(t,e,n);return-1<o?i[r?t[o]:o]:es}}function fn(c){return kn(function(r){var o=r.length,t=o,e=mt.prototype.thru;for(c&&r.reverse();t--;){var n=r[t];if("function"!=typeof n)throw new A(ns);if(e&&!s&&"wrapper"==Pn(n))var s=new mt([],!0)}for(t=s?t:o;++t<o;){var i=Pn(n=r[t]),a="wrapper"==i?Rn(n):es;s=a&&Zn(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?s[Pn(a[0])].apply(s,a[3]):1==n.length&&Zn(n)?s[i]():s.thru(n)}return function(){var t=arguments,e=t[0];if(s&&1==t.length&&br(e))return s.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}})}function gn(u,l,p,h,d,f,g,v,m,y){var b=128&l,x=1&l,O=2&l,j=24&l,_=512&l,w=O?es:hn(u);return function t(){for(var e=arguments.length,n=I(e),i=e;i--;)n[i]=arguments[i];if(j)var r=Mn(t),o=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(n,r);if(h&&(n=en(n,h,d,j)),f&&(n=nn(n,f,g,j)),e-=o,j&&e<y){var s=dc(n,r);return jn(u,l,gn,t.placeholder,p,n,s,v,m,y-e)}var a=x?p:this,c=O?a[u]:u;return e=n.length,v?n=function(t,e){for(var n=t.length,i=X(e.length,n),r=rn(t);i--;){var o=e[i];t[i]=Xn(o,n)?r[o]:es}return t}(n,v):_&&1<e&&n.reverse(),b&&m<e&&(n.length=m),this&&this!==Sa&&this instanceof t&&(c=w||hn(c)),c.apply(a,n)}}function vn(s,a){return function(t,e){return n=t,i=s,r=a(e),o={},Ut(n,function(t,e,n){i(o,r(t),e,n)}),o;var n,i,r,o}}function mn(i,r){return function(t,e){var n;if(t===es&&e===es)return r;if(t!==es&&(n=t),e!==es){if(n===es)return e;"string"==typeof t||"string"==typeof e?(t=Fe(t),e=Fe(e)):(t=Me(t),e=Me(e)),n=i(t,e)}return n}}function yn(i){return kn(function(t){return t=Va(t,nc(Fn())),we(function(e){var n=this;return i(t,function(t){return La(t,n,e)})})})}function bn(t,e){var n=(e=e===es?" ":Fe(e)).length;if(n<2)return n?_e(e,t):e;var i=_e(e,N(t/vc(e)));return lc(e)?qe(mc(i),0,t).join(""):i.slice(0,t)}function xn(i){return function(t,e,n){return n&&"number"!=typeof n&&Un(t,e,n)&&(e=n=es),t=Wr(t),e===es?(e=t,t=0):e=Wr(e),function(t,e,n,i){for(var r=-1,o=G(N((e-t)/(n||1)),0),s=I(o);o--;)s[i?o:++r]=t,t+=n;return s}(t,e,n=n===es?t<e?1:-1:Wr(n),i)}}function On(n){return function(t,e){return"string"==typeof t&&"string"==typeof e||(t=$r(t),e=$r(e)),n(t,e)}}function jn(t,e,n,i,r,o,s,a,c,u){var l=8&e;e|=l?32:64,4&(e&=~(l?64:32))||(e&=-4);var p=[t,e,r,l?o:es,l?s:es,l?es:o,l?es:s,a,c,u],h=n.apply(es,p);return Zn(t)&&ii(h,p),h.placeholder=i,si(h,t,e)}function _n(t){var i=o[t];return function(t,e){if(t=$r(t),e=null==e?0:X(Yr(e),292)){var n=(Xr(t)+"e").split("e");return+((n=(Xr(i(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return i(t)}}var wn=et&&1/gc(new et([,-0]))[1]==1/0?function(t){return new et(t)}:Bo;function Sn(s){return function(t){var e,n,i,r,o=Yn(t);return o==vs?pc(t):o==Os?(e=t,n=-1,i=Array(e.size),e.forEach(function(t){i[++n]=[t,t]}),i):Va(s(r=t),function(t){return[t,r[t]]})}}function En(t,e,n,i,r,o,s,a){var c=2&e;if(!c&&"function"!=typeof t)throw new A(ns);var u=i?i.length:0;if(u||(e&=-97,i=r=es),s=s===es?s:G(Yr(s),0),a=a===es?a:Yr(a),u-=r?r.length:0,64&e){var l=i,p=r;i=r=es}var h,d,f,g,v,m,y,b,x,O,j,_,w,S=c?es:Rn(t),E=[t,e,n,i,r,l,p,o,s,a];if(S&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,s=128==i&&8==n||128==i&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(o||s){1&i&&(t[2]=e[2],r|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?en(c,a,e[4]):a,t[4]=c?dc(t[3],rs):e[4]}(a=e[5])&&(c=t[5],t[5]=c?nn(c,a,e[6]):a,t[6]=c?dc(t[5],rs):e[6]),(a=e[7])&&(t[7]=a),128&i&&(t[8]=null==t[8]?e[8]:X(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}}(E,S),t=E[0],e=E[1],n=E[2],i=E[3],r=E[4],!(a=E[9]=E[9]===es?c?0:t.length:G(E[9]-u,0))&&24&e&&(e&=-25),e&&1!=e)8==e||16==e?(y=e,b=a,x=hn(m=t),T=function t(){for(var e=arguments.length,n=I(e),i=e,r=Mn(t);i--;)n[i]=arguments[i];var o=e<3&&n[0]!==r&&n[e-1]!==r?[]:dc(n,r);return(e-=o.length)<b?jn(m,y,gn,t.placeholder,es,n,o,es,es,b-e):La(this&&this!==Sa&&this instanceof t?x:m,this,n)}):32!=e&&33!=e||r.length?T=gn.apply(es,E):(d=n,f=i,g=1&e,v=hn(h=t),T=function t(){for(var e=-1,n=arguments.length,i=-1,r=f.length,o=I(r+n),s=this&&this!==Sa&&this instanceof t?v:h;++i<r;)o[i]=f[i];for(;n--;)o[i++]=arguments[++e];return La(s,g?d:this,o)});else var T=(j=n,_=1&e,w=hn(O=t),function t(){return(this&&this!==Sa&&this instanceof t?w:O).apply(_?j:this,arguments)});return si((S?Ie:ii)(T,E),t,e)}function Tn(t,e,n,i){return t===es||gr(t,p[n])&&!S.call(i,n)?e:t}function In(t,e,n,i,r,o){return Ar(t)&&Ar(e)&&(o.set(e,t),ve(t,e,es,In,o),o.delete(e)),t}function An(t){return Lr(t)?es:t}function Cn(t,e,n,i,r,o){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&a<c))return!1;var u=o.get(t);if(u&&o.get(e))return u==e;var l=-1,p=!0,h=2&n?new jt:es;for(o.set(t,e),o.set(e,t);++l<a;){var d=t[l],f=e[l];if(i)var g=s?i(f,d,l,e,t,o):i(d,f,l,t,e,o);if(g!==es){if(g)continue;p=!1;break}if(h){if(!$a(e,function(t,e){if(!rc(h,e)&&(d===t||r(d,t,n,i,o)))return h.push(e)})){p=!1;break}}else if(d!==f&&!r(d,f,n,i,o)){p=!1;break}}return o.delete(t),o.delete(e),p}function kn(t){return oi(ei(t,es,xi),t+"")}function Dn(t){return Jt(t,so,Vn)}function Ln(t){return Jt(t,ao,Wn)}var Rn=rt?function(t){return rt.get(t)}:Bo;function Pn(t){for(var e=t.name+"",n=ot[e],i=S.call(ot,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Mn(t){return(S.call(ft,"placeholder")?ft:t).placeholder}function Fn(){var t=ft.iteratee||Ro;return t=t===Ro?ue:t,arguments.length?t(arguments[0],arguments[1]):t}function Bn(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Nn(t){for(var e=so(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Qn(r)]}return e}function zn(t,e){var n,i,r=(i=e,null==(n=t)?es:n[i]);return ce(r)?r:es}var Vn=V?function(e){return null==e?[]:(e=w(e),Ba(V(e),function(t){return C.call(e,t)}))}:$o,Wn=V?function(t){for(var e=[];t;)Wa(e,Vn(t)),t=E(t);return e}:$o,Yn=Qt;function Hn(t,e,n){for(var i=-1,r=(e=Xe(e,t)).length,o=!1;++i<r;){var s=hi(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Ir(r)&&Xn(s,r)&&(br(t)||yr(t))}function $n(t){return"function"!=typeof t.constructor||Jn(t)?{}:gt(E(t))}function Gn(t){return br(t)||yr(t)||!!(D&&t&&t[D])}function Xn(t,e){var n=typeof t;return!!(e=null==e?os:e)&&("number"==n||"symbol"!=n&&pa.test(t))&&-1<t&&t%1==0&&t<e}function Un(t,e,n){if(!Ar(n))return!1;var i=typeof e;return!!("number"==i?Or(n)&&Xn(e,n.length):"string"==i&&e in n)&&gr(n[e],t)}function qn(t,e){if(br(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Fr(t))||Xs.test(t)||!Gs.test(t)||null!=e&&t in w(e)}function Zn(t){var e=Pn(t),n=ft[e];if("function"!=typeof n||!(e in yt.prototype))return!1;if(t===n)return!0;var i=Rn(n);return!!i&&t===i[0]}(J&&Yn(new J(new ArrayBuffer(1)))!=Es||Q&&Yn(new Q)!=vs||tt&&Yn(tt.resolve())!=bs||et&&Yn(new et)!=Os||nt&&Yn(new nt)!=ws)&&(Yn=function(t){var e=Qt(t),n=e==ys?t.constructor:es,i=n?di(n):"";if(i)switch(i){case st:return Es;case at:return vs;case ct:return bs;case ut:return Os;case lt:return ws}return e});var Kn=c?Er:Go;function Jn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||p)}function Qn(t){return t==t&&!Ar(t)}function ti(e,n){return function(t){return null!=t&&t[e]===n&&(n!==es||e in w(t))}}function ei(o,s,a){return s=G(s===es?o.length-1:s,0),function(){for(var t=arguments,e=-1,n=G(t.length-s,0),i=I(n);++e<n;)i[e]=t[s+e];e=-1;for(var r=I(s+1);++e<s;)r[e]=t[e];return r[s]=a(i),La(o,this,r)}}function ni(t,e){return e.length<2?t:Kt(t,ke(e,0,-1))}var ii=ai(Ie),ri=B||function(t,e){return Sa.setTimeout(t,e)},oi=ai(Ae);function si(t,e,n){var i,r,o,s=e+"";return oi(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(1<n?"& ":"")+e[i],e=e.join(2<n?", ":" "),t.replace(ta,"{\n/* [wrapped with "+e+"] */\n")}(s,(o=s.match(ea),i=o?o[1].split(na):[],r=n,Pa(cs,function(t){var e="_."+t[0];r&t[1]&&!Na(i,e)&&i.push(e)}),i.sort())))}function ai(n){var i=0,r=0;return function(){var t=U(),e=16-(t-r);if(r=t,0<e){if(800<=++i)return arguments[0]}else i=0;return n.apply(es,arguments)}}function ci(t,e){var n=-1,i=t.length,r=i-1;for(e=e===es?i:e;++n<e;){var o=je(n,r),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var ui,li,pi=(li=(ui=ur(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Us,function(t,e,n,i){r.push(n?i.replace(ra,"$1"):e||t)}),r},function(t){return 500===li.size&&li.clear(),t})).cache,ui);function hi(t){if("string"==typeof t||Fr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function di(t){if(null!=t){try{return u.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function fi(t){if(t instanceof yt)return t.clone();var e=new mt(t.__wrapped__,t.__chain__);return e.__actions__=rn(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var gi=we(function(t,e){return jr(t)?Nt(t,$t(e,1,jr,!0)):[]}),vi=we(function(t,e){var n=Si(e);return jr(n)&&(n=es),jr(t)?Nt(t,$t(e,1,jr,!0),Fn(n,2)):[]}),mi=we(function(t,e){var n=Si(e);return jr(n)&&(n=es),jr(t)?Nt(t,$t(e,1,jr,!0),es,n):[]});function yi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Yr(n);return r<0&&(r=G(i+r,0)),Xa(t,Fn(e,3),r)}function bi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return n!==es&&(r=Yr(n),r=n<0?G(i+r,0):X(r,i-1)),Xa(t,Fn(e,3),r,!0)}function xi(t){return null!=t&&t.length?$t(t,1):[]}function Oi(t){return t&&t.length?t[0]:es}var ji=we(function(t){var e=Va(t,$e);return e.length&&e[0]===t[0]?ie(e):[]}),_i=we(function(t){var e=Si(t),n=Va(t,$e);return e===Si(n)?e=es:n.pop(),n.length&&n[0]===t[0]?ie(n,Fn(e,2)):[]}),wi=we(function(t){var e=Si(t),n=Va(t,$e);return(e="function"==typeof e?e:es)&&n.pop(),n.length&&n[0]===t[0]?ie(n,es,e):[]});function Si(t){var e=null==t?0:t.length;return e?t[e-1]:es}var Ei=we(Ti);function Ti(t,e){return t&&t.length&&e&&e.length?xe(t,e):t}var Ii=kn(function(t,e){var n=null==t?0:t.length,i=Rt(t,e);return Oe(t,Va(e,function(t){return Xn(t,n)?+t:t}).sort(tn)),i});function Ai(t){return null==t?t:K.call(t)}var Ci=we(function(t){return Be($t(t,1,jr,!0))}),ki=we(function(t){var e=Si(t);return jr(e)&&(e=es),Be($t(t,1,jr,!0),Fn(e,2))}),Di=we(function(t){var e=Si(t);return e="function"==typeof e?e:es,Be($t(t,1,jr,!0),es,e)});function Li(e){if(!e||!e.length)return[];var n=0;return e=Ba(e,function(t){if(jr(t))return n=G(t.length,n),!0}),ec(n,function(t){return Va(e,Ja(t))})}function Ri(t,e){if(!t||!t.length)return[];var n=Li(t);return null==e?n:Va(n,function(t){return La(e,es,t)})}var Pi=we(function(t,e){return jr(t)?Nt(t,e):[]}),Mi=we(function(t){return Ye(Ba(t,jr))}),Fi=we(function(t){var e=Si(t);return jr(e)&&(e=es),Ye(Ba(t,jr),Fn(e,2))}),Bi=we(function(t){var e=Si(t);return e="function"==typeof e?e:es,Ye(Ba(t,jr),es,e)}),Ni=we(Li);var zi=we(function(t){var e=t.length,n=1<e?t[e-1]:es;return Ri(t,n="function"==typeof n?(t.pop(),n):es)});function Vi(t){var e=ft(t);return e.__chain__=!0,e}function Wi(t,e){return e(t)}var Yi=kn(function(e){var n=e.length,t=n?e[0]:0,i=this.__wrapped__,r=function(t){return Rt(t,e)};return!(1<n||this.__actions__.length)&&i instanceof yt&&Xn(t)?((i=i.slice(t,+t+(n?1:0))).__actions__.push({func:Wi,args:[r],thisArg:es}),new mt(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(es),t})):this.thru(r)});var Hi=sn(function(t,e,n){S.call(t,n)?++t[n]:Lt(t,n,1)});var $i=dn(yi),Gi=dn(bi);function Xi(t,e){return(br(t)?Pa:zt)(t,Fn(e,3))}function Ui(t,e){return(br(t)?Ma:Vt)(t,Fn(e,3))}var qi=sn(function(t,e,n){S.call(t,n)?t[n].push(e):Lt(t,n,[e])});var Zi=we(function(t,e,n){var i=-1,r="function"==typeof e,o=Or(t)?I(t.length):[];return zt(t,function(t){o[++i]=r?La(e,t,n):re(t,e,n)}),o}),Ki=sn(function(t,e,n){Lt(t,n,e)});function Ji(t,e){return(br(t)?Va:de)(t,Fn(e,3))}var Qi=sn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var tr=we(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&Un(t,e[0],e[1])?e=[]:2<n&&Un(e[0],e[1],e[2])&&(e=[e[0]]),ye(t,$t(e,1),[])}),er=F||function(){return Sa.Date.now()};function nr(t,e,n){return e=n?es:e,e=t&&null==e?t.length:e,En(t,128,es,es,es,es,e)}function ir(t,e){var n;if("function"!=typeof e)throw new A(ns);return t=Yr(t),function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=es),n}}var rr=we(function(t,e,n){var i=1;if(n.length){var r=dc(n,Mn(rr));i|=32}return En(t,i,e,n,r)}),or=we(function(t,e,n){var i=3;if(n.length){var r=dc(n,Mn(or));i|=32}return En(e,i,t,n,r)});function sr(i,r,t){var o,s,a,c,u,l,p=0,h=!1,d=!1,e=!0;if("function"!=typeof i)throw new A(ns);function f(t){var e=o,n=s;return o=s=es,p=t,c=i.apply(n,e)}function g(t){var e=t-l;return l===es||r<=e||e<0||d&&a<=t-p}function v(){var t,e,n=er();if(g(n))return m(n);u=ri(v,(e=r-((t=n)-l),d?X(e,a-(t-p)):e))}function m(t){return u=es,e&&o?f(t):(o=s=es,c)}function n(){var t,e=er(),n=g(e);if(o=arguments,s=this,l=e,n){if(u===es)return p=t=l,u=ri(v,r),h?f(t):c;if(d)return u=ri(v,r),f(l)}return u===es&&(u=ri(v,r)),c}return r=$r(r)||0,Ar(t)&&(h=!!t.leading,a=(d="maxWait"in t)?G($r(t.maxWait)||0,r):a,e="trailing"in t?!!t.trailing:e),n.cancel=function(){u!==es&&Ze(u),p=0,o=l=s=u=es},n.flush=function(){return u===es?c:m(er())},n}var ar=we(function(t,e){return Bt(t,1,e)}),cr=we(function(t,e,n){return Bt(t,$r(e)||0,n)});function ur(r,o){if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new A(ns);var s=function(){var t=arguments,e=o?o.apply(this,t):t[0],n=s.cache;if(n.has(e))return n.get(e);var i=r.apply(this,t);return s.cache=n.set(e,i)||n,i};return s.cache=new(ur.Cache||Ot),s}function lr(e){if("function"!=typeof e)throw new A(ns);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ur.Cache=Ot;var pr=Ue(function(i,r){var o=(r=1==r.length&&br(r[0])?Va(r[0],nc(Fn())):Va($t(r,1),nc(Fn()))).length;return we(function(t){for(var e=-1,n=X(t.length,o);++e<n;)t[e]=r[e].call(this,t[e]);return La(i,this,t)})}),hr=we(function(t,e){var n=dc(e,Mn(hr));return En(t,32,es,e,n)}),dr=we(function(t,e){var n=dc(e,Mn(dr));return En(t,64,es,e,n)}),fr=kn(function(t,e){return En(t,256,es,es,es,e)});function gr(t,e){return t===e||t!=t&&e!=e}var vr=On(te),mr=On(function(t,e){return e<=t}),yr=oe(function(){return arguments}())?oe:function(t){return Cr(t)&&S.call(t,"callee")&&!C.call(t,"callee")},br=I.isArray,xr=Ta?nc(Ta):function(t){return Cr(t)&&Qt(t)==Ss};function Or(t){return null!=t&&Ir(t.length)&&!Er(t)}function jr(t){return Cr(t)&&Or(t)}var _r=W||Go,wr=Ia?nc(Ia):function(t){return Cr(t)&&Qt(t)==hs};function Sr(t){if(!Cr(t))return!1;var e=Qt(t);return e==ds||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Lr(t)}function Er(t){if(!Ar(t))return!1;var e=Qt(t);return e==fs||e==gs||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Tr(t){return"number"==typeof t&&t==Yr(t)}function Ir(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=os}function Ar(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Cr(t){return null!=t&&"object"==typeof t}var kr=Aa?nc(Aa):function(t){return Cr(t)&&Yn(t)==vs};function Dr(t){return"number"==typeof t||Cr(t)&&Qt(t)==ms}function Lr(t){if(!Cr(t)||Qt(t)!=ys)return!1;var e=E(t);if(null===e)return!0;var n=S.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==g}var Rr=Ca?nc(Ca):function(t){return Cr(t)&&Qt(t)==xs};var Pr=ka?nc(ka):function(t){return Cr(t)&&Yn(t)==Os};function Mr(t){return"string"==typeof t||!br(t)&&Cr(t)&&Qt(t)==js}function Fr(t){return"symbol"==typeof t||Cr(t)&&Qt(t)==_s}var Br=Da?nc(Da):function(t){return Cr(t)&&Ir(t.length)&&!!Oa[Qt(t)]};var Nr=On(he),zr=On(function(t,e){return t<=e});function Vr(t){if(!t)return[];if(Or(t))return Mr(t)?mc(t):rn(t);if(L&&t[L])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[L]());var e=Yn(t);return(e==vs?pc:e==Os?gc:vo)(t)}function Wr(t){return t?(t=$r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Yr(t){var e=Wr(t),n=e%1;return e==e?n?e-n:e:0}function Hr(t){return t?Pt(Yr(t),0,as):0}function $r(t){if("number"==typeof t)return t;if(Fr(t))return ss;if(Ar(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ar(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ks,"");var n=ca.test(t);return n||la.test(t)?wa(t.slice(2),n?2:8):aa.test(t)?ss:+t}function Gr(t){return on(t,ao(t))}function Xr(t){return null==t?"":Fe(t)}var Ur=an(function(t,e){if(Jn(e)||Or(e))on(e,so(e),t);else for(var n in e)S.call(e,n)&&At(t,n,e[n])}),qr=an(function(t,e){on(e,ao(e),t)}),Zr=an(function(t,e,n,i){on(e,ao(e),t,i)}),Kr=an(function(t,e,n,i){on(e,so(e),t,i)}),Jr=kn(Rt);var Qr=we(function(t,e){t=w(t);var n=-1,i=e.length,r=2<i?e[2]:es;for(r&&Un(e[0],e[1],r)&&(i=1);++n<i;)for(var o=e[n],s=ao(o),a=-1,c=s.length;++a<c;){var u=s[a],l=t[u];(l===es||gr(l,p[u])&&!S.call(t,u))&&(t[u]=o[u])}return t}),to=we(function(t){return t.push(es,In),La(uo,es,t)});function eo(t,e,n){var i=null==t?es:Kt(t,e);return i===es?n:i}function no(t,e){return null!=t&&Hn(t,e,ne)}var io=vn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=f.call(e)),t[e]=n},Co(Lo)),ro=vn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=f.call(e)),S.call(t,e)?t[e].push(n):t[e]=[n]},Fn),oo=we(re);function so(t){return Or(t)?wt(t):le(t)}function ao(t){return Or(t)?wt(t,!0):pe(t)}var co=an(function(t,e,n){ve(t,e,n)}),uo=an(function(t,e,n,i){ve(t,e,n,i)}),lo=kn(function(e,t){var n={};if(null==e)return n;var i=!1;t=Va(t,function(t){return t=Xe(t,e),i||(i=1<t.length),t}),on(e,Ln(e),n),i&&(n=Mt(n,7,An));for(var r=t.length;r--;)Ne(n,t[r]);return n});var po=kn(function(t,e){return null==t?{}:be(n=t,e,function(t,e){return no(n,e)});var n});function ho(t,n){if(null==t)return{};var e=Va(Ln(t),function(t){return[t]});return n=Fn(n),be(t,e,function(t,e){return n(t,e[0])})}var fo=Sn(so),go=Sn(ao);function vo(t){return null==t?[]:ic(t,so(t))}var mo=pn(function(t,e,n){return e=e.toLowerCase(),t+(n?yo(e):e)});function yo(t){return Eo(Xr(t).toLowerCase())}function bo(t){return(t=Xr(t))&&t.replace(ha,ac).replace(va,"")}var xo=pn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Oo=pn(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),jo=ln("toLowerCase");var _o=pn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var wo=pn(function(t,e,n){return t+(n?" ":"")+Eo(e)});var So=pn(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Eo=ln("toUpperCase");function To(t,e,n){return t=Xr(t),(e=n?es:e)===es?(i=t,ya.test(i)?t.match(ma)||[]:t.match(ia)||[]):t.match(e)||[];var i}var Io=we(function(t,e){try{return La(t,es,e)}catch(t){return Sr(t)?t:new r(t)}}),Ao=kn(function(e,t){return Pa(t,function(t){t=hi(t),Lt(e,t,rr(e[t],e))}),e});function Co(t){return function(){return t}}var ko=fn(),Do=fn(!0);function Lo(t){return t}function Ro(t){return ue("function"==typeof t?t:Mt(t,1))}var Po=we(function(e,n){return function(t){return re(t,e,n)}}),Mo=we(function(e,n){return function(t){return re(e,t,n)}});function Fo(i,e,t){var n=so(e),r=Zt(e,n);null!=t||Ar(e)&&(r.length||!n.length)||(t=e,e=i,i=this,r=Zt(e,so(e)));var o=!(Ar(t)&&"chain"in t&&!t.chain),s=Er(i);return Pa(r,function(t){var n=e[t];i[t]=n,s&&(i.prototype[t]=function(){var t=this.__chain__;if(o||t){var e=i(this.__wrapped__);return(e.__actions__=rn(this.__actions__)).push({func:n,args:arguments,thisArg:i}),e.__chain__=t,e}return n.apply(i,Wa([this.value()],arguments))})}),i}function Bo(){}var No=yn(Va),zo=yn(Fa),Vo=yn($a);function Wo(t){return qn(t)?Ja(hi(t)):(e=t,function(t){return Kt(t,e)});var e}var Yo=xn(),Ho=xn(!0);function $o(){return[]}function Go(){return!1}var Xo=mn(function(t,e){return t+e},0),Uo=_n("ceil"),qo=mn(function(t,e){return t/e},1),Zo=_n("floor");var Ko,Jo=mn(function(t,e){return t*e},1),Qo=_n("round"),ts=mn(function(t,e){return t-e},0);return ft.after=function(t,e){if("function"!=typeof e)throw new A(ns);return t=Yr(t),function(){if(--t<1)return e.apply(this,arguments)}},ft.ary=nr,ft.assign=Ur,ft.assignIn=qr,ft.assignInWith=Zr,ft.assignWith=Kr,ft.at=Jr,ft.before=ir,ft.bind=rr,ft.bindAll=Ao,ft.bindKey=or,ft.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return br(t)?t:[t]},ft.chain=Vi,ft.chunk=function(t,e,n){e=(n?Un(t,e,n):e===es)?1:G(Yr(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var r=0,o=0,s=I(N(i/e));r<i;)s[o++]=ke(t,r,r+=e);return s},ft.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},ft.concat=function(){var t=arguments.length;if(!t)return[];for(var e=I(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Wa(br(n)?rn(n):[n],$t(e,1))},ft.cond=function(i){var r=null==i?0:i.length,e=Fn();return i=r?Va(i,function(t){if("function"!=typeof t[1])throw new A(ns);return[e(t[0]),t[1]]}):[],we(function(t){for(var e=-1;++e<r;){var n=i[e];if(La(n[0],this,t))return La(n[1],this,t)}})},ft.conforms=function(t){return e=Mt(t,1),n=so(e),function(t){return Ft(t,e,n)};var e,n},ft.constant=Co,ft.countBy=Hi,ft.create=function(t,e){var n=gt(t);return null==e?n:Dt(n,e)},ft.curry=function t(e,n,i){var r=En(e,8,es,es,es,es,es,n=i?es:n);return r.placeholder=t.placeholder,r},ft.curryRight=function t(e,n,i){var r=En(e,16,es,es,es,es,es,n=i?es:n);return r.placeholder=t.placeholder,r},ft.debounce=sr,ft.defaults=Qr,ft.defaultsDeep=to,ft.defer=ar,ft.delay=cr,ft.difference=gi,ft.differenceBy=vi,ft.differenceWith=mi,ft.drop=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,(e=n||e===es?1:Yr(e))<0?0:e,i):[]},ft.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,0,(e=i-(e=n||e===es?1:Yr(e)))<0?0:e):[]},ft.dropRightWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!0,!0):[]},ft.dropWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!0):[]},ft.fill=function(t,e,n,i){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Un(t,e,n)&&(n=0,i=r),function(t,e,n,i){var r=t.length;for((n=Yr(n))<0&&(n=r<-n?0:r+n),(i=i===es||r<i?r:Yr(i))<0&&(i+=r),i=i<n?0:Hr(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},ft.filter=function(t,e){return(br(t)?Ba:Ht)(t,Fn(e,3))},ft.flatMap=function(t,e){return $t(Ji(t,e),1)},ft.flatMapDeep=function(t,e){return $t(Ji(t,e),1/0)},ft.flatMapDepth=function(t,e,n){return n=n===es?1:Yr(n),$t(Ji(t,e),n)},ft.flatten=xi,ft.flattenDeep=function(t){return null!=t&&t.length?$t(t,1/0):[]},ft.flattenDepth=function(t,e){return null!=t&&t.length?$t(t,e=e===es?1:Yr(e)):[]},ft.flip=function(t){return En(t,512)},ft.flow=ko,ft.flowRight=Do,ft.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},ft.functions=function(t){return null==t?[]:Zt(t,so(t))},ft.functionsIn=function(t){return null==t?[]:Zt(t,ao(t))},ft.groupBy=qi,ft.initial=function(t){return null!=t&&t.length?ke(t,0,-1):[]},ft.intersection=ji,ft.intersectionBy=_i,ft.intersectionWith=wi,ft.invert=io,ft.invertBy=ro,ft.invokeMap=Zi,ft.iteratee=Ro,ft.keyBy=Ki,ft.keys=so,ft.keysIn=ao,ft.map=Ji,ft.mapKeys=function(t,i){var r={};return i=Fn(i,3),Ut(t,function(t,e,n){Lt(r,i(t,e,n),t)}),r},ft.mapValues=function(t,i){var r={};return i=Fn(i,3),Ut(t,function(t,e,n){Lt(r,e,i(t,e,n))}),r},ft.matches=function(t){return fe(Mt(t,1))},ft.matchesProperty=function(t,e){return ge(t,Mt(e,1))},ft.memoize=ur,ft.merge=co,ft.mergeWith=uo,ft.method=Po,ft.methodOf=Mo,ft.mixin=Fo,ft.negate=lr,ft.nthArg=function(e){return e=Yr(e),we(function(t){return me(t,e)})},ft.omit=lo,ft.omitBy=function(t,e){return ho(t,lr(Fn(e)))},ft.once=function(t){return ir(2,t)},ft.orderBy=function(t,e,n,i){return null==t?[]:(br(e)||(e=null==e?[]:[e]),br(n=i?es:n)||(n=null==n?[]:[n]),ye(t,e,n))},ft.over=No,ft.overArgs=pr,ft.overEvery=zo,ft.overSome=Vo,ft.partial=hr,ft.partialRight=dr,ft.partition=Qi,ft.pick=po,ft.pickBy=ho,ft.property=Wo,ft.propertyOf=function(e){return function(t){return null==e?es:Kt(e,t)}},ft.pull=Ei,ft.pullAll=Ti,ft.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?xe(t,e,Fn(n,2)):t},ft.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?xe(t,e,es,n):t},ft.pullAt=Ii,ft.range=Yo,ft.rangeRight=Ho,ft.rearg=fr,ft.reject=function(t,e){return(br(t)?Ba:Ht)(t,lr(Fn(e,3)))},ft.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=Fn(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return Oe(t,r),n},ft.rest=function(t,e){if("function"!=typeof t)throw new A(ns);return we(t,e=e===es?e:Yr(e))},ft.reverse=Ai,ft.sampleSize=function(t,e,n){return e=(n?Un(t,e,n):e===es)?1:Yr(e),(br(t)?Et:Ee)(t,e)},ft.set=function(t,e,n){return null==t?t:Te(t,e,n)},ft.setWith=function(t,e,n,i){return i="function"==typeof i?i:es,null==t?t:Te(t,e,n,i)},ft.shuffle=function(t){return(br(t)?Tt:Ce)(t)},ft.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Un(t,e,n)?(e=0,n=i):(e=null==e?0:Yr(e),n=n===es?i:Yr(n)),ke(t,e,n)):[]},ft.sortBy=tr,ft.sortedUniq=function(t){return t&&t.length?Pe(t):[]},ft.sortedUniqBy=function(t,e){return t&&t.length?Pe(t,Fn(e,2)):[]},ft.split=function(t,e,n){return n&&"number"!=typeof n&&Un(t,e,n)&&(e=n=es),(n=n===es?as:n>>>0)?(t=Xr(t))&&("string"==typeof e||null!=e&&!Rr(e))&&!(e=Fe(e))&&lc(t)?qe(mc(t),0,n):t.split(e,n):[]},ft.spread=function(i,r){if("function"!=typeof i)throw new A(ns);return r=null==r?0:G(Yr(r),0),we(function(t){var e=t[r],n=qe(t,0,r);return e&&Wa(n,e),La(i,this,n)})},ft.tail=function(t){var e=null==t?0:t.length;return e?ke(t,1,e):[]},ft.take=function(t,e,n){return t&&t.length?ke(t,0,(e=n||e===es?1:Yr(e))<0?0:e):[]},ft.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,(e=i-(e=n||e===es?1:Yr(e)))<0?0:e,i):[]},ft.takeRightWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!1,!0):[]},ft.takeWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3)):[]},ft.tap=function(t,e){return e(t),t},ft.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new A(ns);return Ar(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),sr(t,e,{leading:i,maxWait:e,trailing:r})},ft.thru=Wi,ft.toArray=Vr,ft.toPairs=fo,ft.toPairsIn=go,ft.toPath=function(t){return br(t)?Va(t,hi):Fr(t)?[t]:rn(pi(Xr(t)))},ft.toPlainObject=Gr,ft.transform=function(t,i,r){var e=br(t),n=e||_r(t)||Br(t);if(i=Fn(i,4),null==r){var o=t&&t.constructor;r=n?e?new o:[]:Ar(t)&&Er(o)?gt(E(t)):{}}return(n?Pa:Ut)(t,function(t,e,n){return i(r,t,e,n)}),r},ft.unary=function(t){return nr(t,1)},ft.union=Ci,ft.unionBy=ki,ft.unionWith=Di,ft.uniq=function(t){return t&&t.length?Be(t):[]},ft.uniqBy=function(t,e){return t&&t.length?Be(t,Fn(e,2)):[]},ft.uniqWith=function(t,e){return e="function"==typeof e?e:es,t&&t.length?Be(t,es,e):[]},ft.unset=function(t,e){return null==t||Ne(t,e)},ft.unzip=Li,ft.unzipWith=Ri,ft.update=function(t,e,n){return null==t?t:ze(t,e,Ge(n))},ft.updateWith=function(t,e,n,i){return i="function"==typeof i?i:es,null==t?t:ze(t,e,Ge(n),i)},ft.values=vo,ft.valuesIn=function(t){return null==t?[]:ic(t,ao(t))},ft.without=Pi,ft.words=To,ft.wrap=function(t,e){return hr(Ge(e),t)},ft.xor=Mi,ft.xorBy=Fi,ft.xorWith=Bi,ft.zip=Ni,ft.zipObject=function(t,e){return He(t||[],e||[],At)},ft.zipObjectDeep=function(t,e){return He(t||[],e||[],Te)},ft.zipWith=zi,ft.entries=fo,ft.entriesIn=go,ft.extend=qr,ft.extendWith=Zr,Fo(ft,ft),ft.add=Xo,ft.attempt=Io,ft.camelCase=mo,ft.capitalize=yo,ft.ceil=Uo,ft.clamp=function(t,e,n){return n===es&&(n=e,e=es),n!==es&&(n=(n=$r(n))==n?n:0),e!==es&&(e=(e=$r(e))==e?e:0),Pt($r(t),e,n)},ft.clone=function(t){return Mt(t,4)},ft.cloneDeep=function(t){return Mt(t,5)},ft.cloneDeepWith=function(t,e){return Mt(t,5,e="function"==typeof e?e:es)},ft.cloneWith=function(t,e){return Mt(t,4,e="function"==typeof e?e:es)},ft.conformsTo=function(t,e){return null==e||Ft(t,e,so(e))},ft.deburr=bo,ft.defaultTo=function(t,e){return null==t||t!=t?e:t},ft.divide=qo,ft.endsWith=function(t,e,n){t=Xr(t),e=Fe(e);var i=t.length,r=n=n===es?i:Pt(Yr(n),0,i);return 0<=(n-=e.length)&&t.slice(n,r)==e},ft.eq=gr,ft.escape=function(t){return(t=Xr(t))&&Ws.test(t)?t.replace(zs,cc):t},ft.escapeRegExp=function(t){return(t=Xr(t))&&Zs.test(t)?t.replace(qs,"\\$&"):t},ft.every=function(t,e,n){var i=br(t)?Fa:Wt;return n&&Un(t,e,n)&&(e=es),i(t,Fn(e,3))},ft.find=$i,ft.findIndex=yi,ft.findKey=function(t,e){return Ga(t,Fn(e,3),Ut)},ft.findLast=Gi,ft.findLastIndex=bi,ft.findLastKey=function(t,e){return Ga(t,Fn(e,3),qt)},ft.floor=Zo,ft.forEach=Xi,ft.forEachRight=Ui,ft.forIn=function(t,e){return null==t?t:Gt(t,Fn(e,3),ao)},ft.forInRight=function(t,e){return null==t?t:Xt(t,Fn(e,3),ao)},ft.forOwn=function(t,e){return t&&Ut(t,Fn(e,3))},ft.forOwnRight=function(t,e){return t&&qt(t,Fn(e,3))},ft.get=eo,ft.gt=vr,ft.gte=mr,ft.has=function(t,e){return null!=t&&Hn(t,e,ee)},ft.hasIn=no,ft.head=Oi,ft.identity=Lo,ft.includes=function(t,e,n,i){t=Or(t)?t:vo(t),n=n&&!i?Yr(n):0;var r=t.length;return n<0&&(n=G(r+n,0)),Mr(t)?n<=r&&-1<t.indexOf(e,n):!!r&&-1<Ua(t,e,n)},ft.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Yr(n);return r<0&&(r=G(i+r,0)),Ua(t,e,r)},ft.inRange=function(t,e,n){return e=Wr(e),n===es?(n=e,e=0):n=Wr(n),t=$r(t),(i=t)>=X(r=e,o=n)&&i<G(r,o);var i,r,o},ft.invoke=oo,ft.isArguments=yr,ft.isArray=br,ft.isArrayBuffer=xr,ft.isArrayLike=Or,ft.isArrayLikeObject=jr,ft.isBoolean=function(t){return!0===t||!1===t||Cr(t)&&Qt(t)==ps},ft.isBuffer=_r,ft.isDate=wr,ft.isElement=function(t){return Cr(t)&&1===t.nodeType&&!Lr(t)},ft.isEmpty=function(t){if(null==t)return!0;if(Or(t)&&(br(t)||"string"==typeof t||"function"==typeof t.splice||_r(t)||Br(t)||yr(t)))return!t.length;var e=Yn(t);if(e==vs||e==Os)return!t.size;if(Jn(t))return!le(t).length;for(var n in t)if(S.call(t,n))return!1;return!0},ft.isEqual=function(t,e){return se(t,e)},ft.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:es)?n(t,e):es;return i===es?se(t,e,es,n):!!i},ft.isError=Sr,ft.isFinite=function(t){return"number"==typeof t&&Y(t)},ft.isFunction=Er,ft.isInteger=Tr,ft.isLength=Ir,ft.isMap=kr,ft.isMatch=function(t,e){return t===e||ae(t,e,Nn(e))},ft.isMatchWith=function(t,e,n){return n="function"==typeof n?n:es,ae(t,e,Nn(e),n)},ft.isNaN=function(t){return Dr(t)&&t!=+t},ft.isNative=function(t){if(Kn(t))throw new r("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ce(t)},ft.isNil=function(t){return null==t},ft.isNull=function(t){return null===t},ft.isNumber=Dr,ft.isObject=Ar,ft.isObjectLike=Cr,ft.isPlainObject=Lr,ft.isRegExp=Rr,ft.isSafeInteger=function(t){return Tr(t)&&-os<=t&&t<=os},ft.isSet=Pr,ft.isString=Mr,ft.isSymbol=Fr,ft.isTypedArray=Br,ft.isUndefined=function(t){return t===es},ft.isWeakMap=function(t){return Cr(t)&&Yn(t)==ws},ft.isWeakSet=function(t){return Cr(t)&&"[object WeakSet]"==Qt(t)},ft.join=function(t,e){return null==t?"":H.call(t,e)},ft.kebabCase=xo,ft.last=Si,ft.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return n!==es&&(r=(r=Yr(n))<0?G(i+r,0):X(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):Xa(t,Za,r,!0)},ft.lowerCase=Oo,ft.lowerFirst=jo,ft.lt=Nr,ft.lte=zr,ft.max=function(t){return t&&t.length?Yt(t,Lo,te):es},ft.maxBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),te):es},ft.mean=function(t){return Ka(t,Lo)},ft.meanBy=function(t,e){return Ka(t,Fn(e,2))},ft.min=function(t){return t&&t.length?Yt(t,Lo,he):es},ft.minBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),he):es},ft.stubArray=$o,ft.stubFalse=Go,ft.stubObject=function(){return{}},ft.stubString=function(){return""},ft.stubTrue=function(){return!0},ft.multiply=Jo,ft.nth=function(t,e){return t&&t.length?me(t,Yr(e)):es},ft.noConflict=function(){return Sa._===this&&(Sa._=y),this},ft.noop=Bo,ft.now=er,ft.pad=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;if(!e||e<=i)return t;var r=(e-i)/2;return bn(z(r),n)+t+bn(N(r),n)},ft.padEnd=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;return e&&i<e?t+bn(e-i,n):t},ft.padStart=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;return e&&i<e?bn(e-i,n)+t:t},ft.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),q(Xr(t).replace(Js,""),e||0)},ft.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Un(t,e,n)&&(e=n=es),n===es&&("boolean"==typeof e?(n=e,e=es):"boolean"==typeof t&&(n=t,t=es)),t===es&&e===es?(t=0,e=1):(t=Wr(t),e===es?(e=t,t=0):e=Wr(e)),e<t){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Z();return X(t+r*(e-t+_a("1e-"+((r+"").length-1))),e)}return je(t,e)},ft.reduce=function(t,e,n){var i=br(t)?Ya:Qa,r=arguments.length<3;return i(t,Fn(e,4),n,r,zt)},ft.reduceRight=function(t,e,n){var i=br(t)?Ha:Qa,r=arguments.length<3;return i(t,Fn(e,4),n,r,Vt)},ft.repeat=function(t,e,n){return e=(n?Un(t,e,n):e===es)?1:Yr(e),_e(Xr(t),e)},ft.replace=function(){var t=arguments,e=Xr(t[0]);return t.length<3?e:e.replace(t[1],t[2])},ft.result=function(t,e,n){var i=-1,r=(e=Xe(e,t)).length;for(r||(r=1,t=es);++i<r;){var o=null==t?es:t[hi(e[i])];o===es&&(i=r,o=n),t=Er(o)?o.call(t):o}return t},ft.round=Qo,ft.runInContext=t,ft.sample=function(t){return(br(t)?St:Se)(t)},ft.size=function(t){if(null==t)return 0;if(Or(t))return Mr(t)?vc(t):t.length;var e=Yn(t);return e==vs||e==Os?t.size:le(t).length},ft.snakeCase=_o,ft.some=function(t,e,n){var i=br(t)?$a:De;return n&&Un(t,e,n)&&(e=es),i(t,Fn(e,3))},ft.sortedIndex=function(t,e){return Le(t,e)},ft.sortedIndexBy=function(t,e,n){return Re(t,e,Fn(n,2))},ft.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Le(t,e);if(i<n&&gr(t[i],e))return i}return-1},ft.sortedLastIndex=function(t,e){return Le(t,e,!0)},ft.sortedLastIndexBy=function(t,e,n){return Re(t,e,Fn(n,2),!0)},ft.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Le(t,e,!0)-1;if(gr(t[n],e))return n}return-1},ft.startCase=wo,ft.startsWith=function(t,e,n){return t=Xr(t),n=null==n?0:Pt(Yr(n),0,t.length),e=Fe(e),t.slice(n,n+e.length)==e},ft.subtract=ts,ft.sum=function(t){return t&&t.length?tc(t,Lo):0},ft.sumBy=function(t,e){return t&&t.length?tc(t,Fn(e,2)):0},ft.template=function(s,t,e){var n=ft.templateSettings;e&&Un(s,t,e)&&(t=es),s=Xr(s),t=Zr({},t,n,Tn);var a,c,i=Zr({},t.imports,n.imports,Tn),r=so(i),o=ic(i,r),u=0,l=t.interpolate||da,p="__p += '",h=m((t.escape||da).source+"|"+l.source+"|"+(l===$s?oa:da).source+"|"+(t.evaluate||da).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++xa+"]")+"\n";s.replace(h,function(t,e,n,i,r,o){return n||(n=i),p+=s.slice(u,o).replace(fa,uc),e&&(a=!0,p+="' +\n__e("+e+") +\n'"),r&&(c=!0,p+="';\n"+r+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=o+t.length,t}),p+="';\n";var f=t.variable;f||(p="with (obj) {\n"+p+"\n}\n"),p=(c?p.replace(Ms,""):p).replace(Fs,"$1").replace(Bs,"$1;"),p="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Io(function(){return v(r,d+"return "+p).apply(es,o)});if(g.source=p,Sr(g))throw g;return g},ft.times=function(t,e){if((t=Yr(t))<1||os<t)return[];var n=as,i=X(t,as);e=Fn(e),t-=as;for(var r=ec(i,e);++n<t;)e(n);return r},ft.toFinite=Wr,ft.toInteger=Yr,ft.toLength=Hr,ft.toLower=function(t){return Xr(t).toLowerCase()},ft.toNumber=$r,ft.toSafeInteger=function(t){return t?Pt(Yr(t),-os,os):0===t?t:0},ft.toString=Xr,ft.toUpper=function(t){return Xr(t).toUpperCase()},ft.trim=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Ks,"");if(!t||!(e=Fe(e)))return t;var i=mc(t),r=mc(e);return qe(i,oc(i,r),sc(i,r)+1).join("")},ft.trimEnd=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Qs,"");if(!t||!(e=Fe(e)))return t;var i=mc(t);return qe(i,0,sc(i,mc(e))+1).join("")},ft.trimStart=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Js,"");if(!t||!(e=Fe(e)))return t;var i=mc(t);return qe(i,oc(i,mc(e))).join("")},ft.truncate=function(t,e){var n=30,i="...";if(Ar(e)){var r="separator"in e?e.separator:r;n="length"in e?Yr(e.length):n,i="omission"in e?Fe(e.omission):i}var o=(t=Xr(t)).length;if(lc(t)){var s=mc(t);o=s.length}if(o<=n)return t;var a=n-vc(i);if(a<1)return i;var c=s?qe(s,0,a).join(""):t.slice(0,a);if(r===es)return c+i;if(s&&(a+=c.length-a),Rr(r)){if(t.slice(a).search(r)){var u,l=c;for(r.global||(r=m(r.source,Xr(sa.exec(r))+"g")),r.lastIndex=0;u=r.exec(l);)var p=u.index;c=c.slice(0,p===es?a:p)}}else if(t.indexOf(Fe(r),a)!=a){var h=c.lastIndexOf(r);-1<h&&(c=c.slice(0,h))}return c+i},ft.unescape=function(t){return(t=Xr(t))&&Vs.test(t)?t.replace(Ns,yc):t},ft.uniqueId=function(t){var e=++h;return Xr(t)+e},ft.upperCase=So,ft.upperFirst=Eo,ft.each=Xi,ft.eachRight=Ui,ft.first=Oi,Fo(ft,(Ko={},Ut(ft,function(t,e){S.call(ft.prototype,e)||(Ko[e]=t)}),Ko),{chain:!1}),ft.VERSION="4.17.10",Pa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ft[t].placeholder=ft}),Pa(["drop","take"],function(n,i){yt.prototype[n]=function(t){t=t===es?1:G(Yr(t),0);var e=this.__filtered__&&!i?new yt(this):this.clone();return e.__filtered__?e.__takeCount__=X(t,e.__takeCount__):e.__views__.push({size:X(t,as),type:n+(e.__dir__<0?"Right":"")}),e},yt.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Pa(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;yt.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fn(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),Pa(["head","last"],function(t,e){var n="take"+(e?"Right":"");yt.prototype[t]=function(){return this[n](1).value()[0]}}),Pa(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");yt.prototype[t]=function(){return this.__filtered__?new yt(this):this[n](1)}}),yt.prototype.compact=function(){return this.filter(Lo)},yt.prototype.find=function(t){return this.filter(t).head()},yt.prototype.findLast=function(t){return this.reverse().find(t)},yt.prototype.invokeMap=we(function(e,n){return"function"==typeof e?new yt(this):this.map(function(t){return re(t,e,n)})}),yt.prototype.reject=function(t){return this.filter(lr(Fn(t)))},yt.prototype.slice=function(t,e){t=Yr(t);var n=this;return n.__filtered__&&(0<t||e<0)?new yt(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==es&&(n=(e=Yr(e))<0?n.dropRight(-e):n.take(e-t)),n)},yt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},yt.prototype.toArray=function(){return this.take(as)},Ut(yt.prototype,function(p,t){var h=/^(?:filter|find|map|reject)|While$/.test(t),d=/^(?:head|last)$/.test(t),f=ft[d?"take"+("last"==t?"Right":""):t],g=d||/^find/.test(t);f&&(ft.prototype[t]=function(){var t=this.__wrapped__,n=d?[1]:arguments,e=t instanceof yt,i=n[0],r=e||br(t),o=function(t){var e=f.apply(ft,Wa([t],n));return d&&s?e[0]:e};r&&h&&"function"==typeof i&&1!=i.length&&(e=r=!1);var s=this.__chain__,a=!!this.__actions__.length,c=g&&!s,u=e&&!a;if(!g&&r){t=u?t:new yt(this);var l=p.apply(t,n);return l.__actions__.push({func:Wi,args:[o],thisArg:es}),new mt(l,s)}return c&&u?p.apply(this,n):(l=this.thru(o),c?d?l.value()[0]:l.value():l)})}),Pa(["pop","push","shift","sort","splice","unshift"],function(t){var n=s[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ft.prototype[t]=function(){var e=arguments;if(r&&!this.__chain__){var t=this.value();return n.apply(br(t)?t:[],e)}return this[i](function(t){return n.apply(br(t)?t:[],e)})}}),Ut(yt.prototype,function(t,e){var n=ft[e];if(n){var i=n.name+"";(ot[i]||(ot[i]=[])).push({name:e,func:n})}}),ot[gn(es,2).name]=[{name:"wrapper",func:es}],yt.prototype.clone=function(){var t=new yt(this.__wrapped__);return t.__actions__=rn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rn(this.__views__),t},yt.prototype.reverse=function(){if(this.__filtered__){var t=new yt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},yt.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=br(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=X(e,t+s);break;case"takeRight":t=G(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,c=a-s,u=i?a:s-1,l=this.__iteratees__,p=l.length,h=0,d=X(c,this.__takeCount__);if(!n||!i&&r==c&&d==c)return We(t,this.__actions__);var f=[];t:for(;c--&&h<d;){for(var g=-1,v=t[u+=e];++g<p;){var m=l[g],y=m.iteratee,b=m.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue t;break t}}f[h++]=v}return f},ft.prototype.at=Yi,ft.prototype.chain=function(){return Vi(this)},ft.prototype.commit=function(){return new mt(this.value(),this.__chain__)},ft.prototype.next=function(){this.__values__===es&&(this.__values__=Vr(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?es:this.__values__[this.__index__++]}},ft.prototype.plant=function(t){for(var e,n=this;n instanceof vt;){var i=fi(n);i.__index__=0,i.__values__=es,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},ft.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof yt){var e=t;return this.__actions__.length&&(e=new yt(this)),(e=e.reverse()).__actions__.push({func:Wi,args:[Ai],thisArg:es}),new mt(e,this.__chain__)}return this.thru(Ai)},ft.prototype.toJSON=ft.prototype.valueOf=ft.prototype.value=function(){return We(this.__wrapped__,this.__actions__)},ft.prototype.first=ft.prototype.head,L&&(ft.prototype[L]=function(){return this}),ft}();Sa._=bc,(V=function(){return bc}.call(W,Y,W,z))===es||(z.exports=V)}).call(this)}).call(W,Y("./node_modules/webpack/buildin/global.js"),Y("./node_modules/webpack/buildin/module.js")(t))},"./node_modules/graphlib/index.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/index.js");t.exports={Graph:i.Graph,json:n("./node_modules/graphlib/lib/json.js"),alg:n("./node_modules/graphlib/lib/alg/index.js"),version:i.version}},"./node_modules/graphlib/lib/alg/components.js":function(t,e,n){var s=n("./node_modules/graphlib/lib/lodash.js");t.exports=function(e){var n,i={},r=[];function o(t){s.has(i,t)||(i[t]=!0,n.push(t),s.each(e.successors(t),o),s.each(e.predecessors(t),o))}return s.each(e.nodes(),function(t){n=[],o(t),n.length&&r.push(n)}),r}},"./node_modules/graphlib/lib/alg/dfs.js":function(t,e,n){var a=n("./node_modules/graphlib/lib/lodash.js");t.exports=function(e,t,n){a.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),r=[],o={};return a.each(t,function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(n,t,i,r,o,s){a.has(r,t)||(r[t]=!0,i||s.push(t),a.each(o(t),function(t){e(n,t,i,r,o,s)}),i&&s.push(t))}(e,t,"post"===n,o,i,r)}),r}},"./node_modules/graphlib/lib/alg/dijkstra-all.js":function(t,e,n){var o=n("./node_modules/graphlib/lib/alg/dijkstra.js"),s=n("./node_modules/graphlib/lib/lodash.js");t.exports=function(n,i,r){return s.transform(n.nodes(),function(t,e){t[e]=o(n,e,i,r)},{})}},"./node_modules/graphlib/lib/alg/dijkstra.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/lodash.js"),r=n("./node_modules/graphlib/lib/data/priority-queue.js");t.exports=function(e,t,n,i){return function(t,n,o,e){var s,a,c={},u=new r,i=function(t){var e=t.v!==s?t.v:t.w,n=c[e],i=o(t),r=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);r<n.distance&&(n.distance=r,n.predecessor=s,u.decrease(e,r))};t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;c[t]={distance:e},u.add(t,e)});for(;0<u.size()&&(s=u.removeMin(),(a=c[s]).distance!==Number.POSITIVE_INFINITY);)e(s).forEach(i);return c}(e,String(t),n||o,i||function(t){return e.outEdges(t)})};var o=i.constant(1)},"./node_modules/graphlib/lib/alg/find-cycles.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/lodash.js"),r=n("./node_modules/graphlib/lib/alg/tarjan.js");t.exports=function(e){return i.filter(r(e),function(t){return 1<t.length||1===t.length&&e.hasEdge(t[0],t[0])})}},"./node_modules/graphlib/lib/alg/floyd-warshall.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/lodash.js");t.exports=function(e,t,n){return i=e,r=t||s,o=n||function(t){return e.outEdges(t)},c={},u=i.nodes(),u.forEach(function(i){c[i]={},c[i][i]={distance:0},u.forEach(function(t){i!==t&&(c[i][t]={distance:Number.POSITIVE_INFINITY})}),o(i).forEach(function(t){var e=t.v===i?t.w:t.v,n=r(t);c[i][e]={distance:n,predecessor:i}})}),u.forEach(function(s){var a=c[s];u.forEach(function(t){var o=c[t];u.forEach(function(t){var e=o[s],n=a[t],i=o[t],r=e.distance+n.distance;r<i.distance&&(i.distance=r,i.predecessor=n.predecessor)})})}),c;var i,r,o,c,u};var s=i.constant(1)},"./node_modules/graphlib/lib/alg/index.js":function(t,e,n){t.exports={components:n("./node_modules/graphlib/lib/alg/components.js"),dijkstra:n("./node_modules/graphlib/lib/alg/dijkstra.js"),dijkstraAll:n("./node_modules/graphlib/lib/alg/dijkstra-all.js"),findCycles:n("./node_modules/graphlib/lib/alg/find-cycles.js"),floydWarshall:n("./node_modules/graphlib/lib/alg/floyd-warshall.js"),isAcyclic:n("./node_modules/graphlib/lib/alg/is-acyclic.js"),postorder:n("./node_modules/graphlib/lib/alg/postorder.js"),preorder:n("./node_modules/graphlib/lib/alg/preorder.js"),prim:n("./node_modules/graphlib/lib/alg/prim.js"),tarjan:n("./node_modules/graphlib/lib/alg/tarjan.js"),topsort:n("./node_modules/graphlib/lib/alg/topsort.js")}},"./node_modules/graphlib/lib/alg/is-acyclic.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/alg/topsort.js");t.exports=function(t){try{i(t)}catch(t){if(t instanceof i.CycleException)return!1;throw t}return!0}},"./node_modules/graphlib/lib/alg/postorder.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/alg/dfs.js");t.exports=function(t,e){return i(t,e,"post")}},"./node_modules/graphlib/lib/alg/preorder.js":function(t,e,n){var i=n("./node_modules/graphlib/lib/alg/dfs.js");t.exports=function(t,e){return i(t,e,"pre")}},"./node_modules/graphlib/lib/alg/prim.js":function(t,e,n){var c=n("./node_modules/graphlib/lib/lodash.js"),u=n("./node_modules/graphlib/lib/graph.js"),l=n("./node_modules/graphlib/lib/data/priority-queue.js");t.exports=function(t,r){var o,e=new u,s={},a=new l;function n(t){var e=t.v===o?t.w:t.v,n=a.priority(e);if(void 0!==n){var i=r(t);i<n&&(s[e]=o,a.decrease(e,i))}}if(0===t.nodeCount())return e;c.each(t.nodes(),function(t){a.add(t,Number.POSITIVE_INFINITY),e.setNode(t)}),a.decrease(t.nodes()[0],0);var i=!1;for(;0<a.size();){if(o=a.removeMin(),c.has(s,o))e.setEdge(o,s[o]);else{if(i)throw new Error("Input graph is not connected: "+t);i=!0}t.nodeEdges(o).forEach(n)}return e}},"./node_modules/graphlib/lib/alg/tarjan.js":function(t,e,n){var l=n("./node_modules/graphlib/lib/lodash.js");t.exports=function(o){var s=0,a=[],c={},u=[];return o.nodes().forEach(function(t){l.has(c,t)||function e(t){var n=c[t]={onStack:!0,lowlink:s,index:s++};if(a.push(t),o.successors(t).forEach(function(t){l.has(c,t)?c[t].onStack&&(n.lowlink=Math.min(n.lowlink,c[t].index)):(e(t),n.lowlink=Math.min(n.lowlink,c[t].lowlink))}),n.lowlink===n.index){for(var i,r=[];i=a.pop(),c[i].onStack=!1,r.push(i),t!==i;);u.push(r)}}(t)}),u}},"./node_modules/graphlib/lib/alg/topsort.js":function(t,e,n){var s=n("./node_modules/graphlib/lib/lodash.js");function i(n){var i={},r={},o=[];if(s.each(n.sinks(),function t(e){if(s.has(r,e))throw new a;s.has(i,e)||(r[e]=!0,i[e]=!0,s.each(n.predecessors(e),t),delete r[e],o.push(e))}),s.size(i)!==n.nodeCount())throw new a;return o}function a(){}(t.exports=i).CycleException=a},"./node_modules/graphlib/lib/data/priority-queue.js":function(t,e,n){var o=n("./node_modules/graphlib/lib/lodash.js");function i(){this._arr=[],this._keyIndices={}}(t.exports=i).prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return o.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!o.has(n,t)){var i=this._arr,r=i.length;return n[t]=r,i.push({key:t,priority:e}),this._decrease(r),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},i.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e}},"./node_modules/graphlib/lib/graph.js":function(t,e,n){"use strict";var c=n("./node_modules/graphlib/lib/lodash.js");t.exports=r;var a="\0",i="\0",u="";function r(t){this._isDirected=!c.has(t,"directed")||t.directed,this._isMultigraph=!!c.has(t,"multigraph")&&t.multigraph,this._isCompound=!!c.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(t,e){t[e]?t[e]++:t[e]=1}function o(t,e){--t[e]||delete t[e]}function p(t,e,n,i){var r=""+e,o=""+n;if(!t&&o<r){var s=r;r=o,o=s}return r+u+o+u+(c.isUndefined(i)?a:i)}function s(t,e){return p(t,e.v,e.w,e.name)}r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(t){return this._label=t,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultNodeLabelFn=t,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return c.keys(this._nodes)},r.prototype.sources=function(){var e=this;return c.filter(this.nodes(),function(t){return c.isEmpty(e._in[t])})},r.prototype.sinks=function(){var e=this;return c.filter(this.nodes(),function(t){return c.isEmpty(e._out[t])})},r.prototype.setNodes=function(t,e){var n=arguments,i=this;return c.each(t,function(t){1<n.length?i.setNode(t,e):i.setNode(t)}),this},r.prototype.setNode=function(t,e){return c.has(this._nodes,t)?1<arguments.length&&(this._nodes[t]=e):(this._nodes[t]=1<arguments.length?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this},r.prototype.node=function(t){return this._nodes[t]},r.prototype.hasNode=function(t){return c.has(this._nodes,t)},r.prototype.removeNode=function(t){var e=this;if(c.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],c.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),c.each(c.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],c.each(c.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},r.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(e))e=i;else{for(var n=e+="";!c.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},r.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},r.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},r.prototype.children=function(t){if(c.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return c.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},r.prototype.predecessors=function(t){var e=this._preds[t];if(e)return c.keys(e)},r.prototype.successors=function(t){var e=this._sucs[t];if(e)return c.keys(e)},r.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return c.union(e,this.successors(t))},r.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},r.prototype.filterNodes=function(n){var i=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});i.setGraph(this.graph());var r=this;c.each(this._nodes,function(t,e){n(e)&&i.setNode(e,t)}),c.each(this._edgeObjs,function(t){i.hasNode(t.v)&&i.hasNode(t.w)&&i.setEdge(t,r.edge(t))});var o={};return this._isCompound&&c.each(i.nodes(),function(t){i.setParent(t,function t(e){var n=r.parent(e);return void 0===n||i.hasNode(n)?o[e]=n:n in o?o[n]:t(n)}(t))}),i},r.prototype.setDefaultEdgeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultEdgeLabelFn=t,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return c.values(this._edgeObjs)},r.prototype.setPath=function(t,n){var i=this,r=arguments;return c.reduce(t,function(t,e){return 1<r.length?i.setEdge(t,e,n):i.setEdge(t,e),e}),this},r.prototype.setEdge=function(){var t,e,n,i,r=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],r=!0)):(t=o,e=arguments[1],n=arguments[3],2<arguments.length&&(i=arguments[2],r=!0)),t=""+t,e=""+e,c.isUndefined(n)||(n=""+n);var s=p(this._isDirected,t,e,n);if(c.has(this._edgeLabels,s))return r&&(this._edgeLabels[s]=i),this;if(!c.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=r?i:this._defaultEdgeLabelFn(t,e,n);var a=function(t,e,n,i){var r=""+e,o=""+n;if(!t&&o<r){var s=r;r=o,o=s}var a={v:r,w:o};i&&(a.name=i);return a}(this._isDirected,t,e,n);return t=a.v,e=a.w,Object.freeze(a),this._edgeObjs[s]=a,l(this._preds[e],t),l(this._sucs[t],e),this._in[e][s]=a,this._out[t][s]=a,this._edgeCount++,this},r.prototype.edge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,t):p(this._isDirected,t,e,n);return this._edgeLabels[i]},r.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,t):p(this._isDirected,t,e,n);return c.has(this._edgeLabels,i)},r.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,t):p(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],o(this._preds[e],t),o(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},r.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=c.values(n);return e?c.filter(i,function(t){return t.v===e}):i}},r.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=c.values(n);return e?c.filter(i,function(t){return t.w===e}):i}},r.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/graphlib/lib/index.js":function(t,e,n){t.exports={Graph:n("./node_modules/graphlib/lib/graph.js"),version:n("./node_modules/graphlib/lib/version.js")}},"./node_modules/graphlib/lib/json.js":function(t,e,n){var o=n("./node_modules/graphlib/lib/lodash.js"),i=n("./node_modules/graphlib/lib/graph.js");t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:(r=t,o.map(r.nodes(),function(t){var e=r.node(t),n=r.parent(t),i={v:t};return o.isUndefined(e)||(i.value=e),o.isUndefined(n)||(i.parent=n),i})),edges:(i=t,o.map(i.edges(),function(t){var e=i.edge(t),n={v:t.v,w:t.w};return o.isUndefined(t.name)||(n.name=t.name),o.isUndefined(e)||(n.value=e),n}))};var i;var r;o.isUndefined(t.graph())||(e.value=o.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return o.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),o.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},"./node_modules/graphlib/lib/lodash.js":function(t,e,n){var i;try{i=n("./node_modules/graphlib/node_modules/lodash/lodash.js")}catch(t){}i||(i=window._),t.exports=i},"./node_modules/graphlib/lib/version.js":function(t,e){t.exports="2.1.5"},"./node_modules/graphlib/node_modules/lodash/lodash.js":function(t,W,Y){(function(N,z){var V;(function(){var es,ns="Expected a function",is="__lodash_hash_undefined__",rs="__lodash_placeholder__",os=9007199254740991,ss=NaN,as=4294967295,cs=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],us="[object Arguments]",ls="[object Array]",ps="[object Boolean]",hs="[object Date]",ds="[object Error]",fs="[object Function]",gs="[object GeneratorFunction]",vs="[object Map]",ms="[object Number]",ys="[object Object]",bs="[object Promise]",xs="[object RegExp]",Os="[object Set]",js="[object String]",_s="[object Symbol]",ws="[object WeakMap]",Ss="[object ArrayBuffer]",Es="[object DataView]",Ts="[object Float32Array]",Is="[object Float64Array]",As="[object Int8Array]",Cs="[object Int16Array]",ks="[object Int32Array]",Ds="[object Uint8Array]",Ls="[object Uint8ClampedArray]",Rs="[object Uint16Array]",Ps="[object Uint32Array]",Ms=/\b__p \+= '';/g,Fs=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ns=/&(?:amp|lt|gt|quot|#39);/g,zs=/[&<>"']/g,Vs=RegExp(Ns.source),Ws=RegExp(zs.source),Ys=/<%-([\s\S]+?)%>/g,Hs=/<%([\s\S]+?)%>/g,$s=/<%=([\s\S]+?)%>/g,Gs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xs=/^\w*$/,Us=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qs=/[\\^$.*+?()[\]{}|]/g,Zs=RegExp(qs.source),Ks=/^\s+|\s+$/g,Js=/^\s+/,Qs=/\s+$/,ta=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ea=/\{\n\/\* \[wrapped with (.+)\] \*/,na=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ra=/\\(\\)?/g,oa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sa=/\w*$/,aa=/^[-+]0x[0-9a-f]+$/i,ca=/^0b[01]+$/i,ua=/^\[object .+?Constructor\]$/,la=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,ha=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,fa=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\ufe0e\\ufe0f",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+t+"]",c="["+s+"]",u="["+e+"]",l="\\d+",p="["+n+"]",h="["+i+"]",d="[^"+t+s+l+n+i+r+"]",f="\\ud83c[\\udffb-\\udfff]",g="[^"+t+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+r+"]",b="(?:"+h+"|"+d+")",x="(?:"+y+"|"+d+")",O="(?:['’](?:d|ll|m|re|s|t|ve))?",j="(?:['’](?:D|LL|M|RE|S|T|VE))?",_="(?:"+u+"|"+f+")"+"?",w="["+o+"]?",S=w+_+("(?:\\u200d(?:"+[g,v,m].join("|")+")"+w+_+")*"),E="(?:"+[p,v,m].join("|")+")"+S,T="(?:"+[g+u+"?",u,v,m,a].join("|")+")",ga=RegExp("['’]","g"),va=RegExp(u,"g"),I=RegExp(f+"(?="+f+")|"+T+S,"g"),ma=RegExp([y+"?"+h+"+"+O+"(?="+[c,y,"$"].join("|")+")",x+"+"+j+"(?="+[c,y+b,"$"].join("|")+")",y+"?"+b+"+"+O,y+"+"+j,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,E].join("|"),"g"),A=RegExp("[\\u200d"+t+e+o+"]"),ya=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ba=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xa=-1,Oa={};Oa[Ts]=Oa[Is]=Oa[As]=Oa[Cs]=Oa[ks]=Oa[Ds]=Oa[Ls]=Oa[Rs]=Oa[Ps]=!0,Oa[us]=Oa[ls]=Oa[Ss]=Oa[ps]=Oa[Es]=Oa[hs]=Oa[ds]=Oa[fs]=Oa[vs]=Oa[ms]=Oa[ys]=Oa[xs]=Oa[Os]=Oa[js]=Oa[ws]=!1;var ja={};ja[us]=ja[ls]=ja[Ss]=ja[Es]=ja[ps]=ja[hs]=ja[Ts]=ja[Is]=ja[As]=ja[Cs]=ja[ks]=ja[vs]=ja[ms]=ja[ys]=ja[xs]=ja[Os]=ja[js]=ja[_s]=ja[Ds]=ja[Ls]=ja[Rs]=ja[Ps]=!0,ja[ds]=ja[fs]=ja[ws]=!1;var C={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_a=parseFloat,wa=parseInt,k="object"==typeof N&&N&&N.Object===Object&&N,D="object"==typeof self&&self&&self.Object===Object&&self,Sa=k||D||Function("return this")(),L="object"==typeof W&&W&&!W.nodeType&&W,R=L&&"object"==typeof z&&z&&!z.nodeType&&z,Ea=R&&R.exports===L,P=Ea&&k.process,M=function(){try{var t=R&&R.require&&R.require("util").types;return t||P&&P.binding&&P.binding("util")}catch(t){}}(),Ta=M&&M.isArrayBuffer,Ia=M&&M.isDate,Aa=M&&M.isMap,Ca=M&&M.isRegExp,ka=M&&M.isSet,Da=M&&M.isTypedArray;function La(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ra(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function Pa(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ma(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Fa(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Ba(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function Na(t,e){return!!(null==t?0:t.length)&&-1<Ua(t,e,0)}function za(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Va(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Wa(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ya(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Ha(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function $a(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var F=Ja("length");function Ga(t,i,e){var r;return e(t,function(t,e,n){if(i(t,e,n))return r=e,!1}),r}function Xa(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Ua(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):Xa(t,Za,n)}function qa(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function Za(t){return t!=t}function Ka(t,e){var n=null==t?0:t.length;return n?tc(t,e)/n:ss}function Ja(e){return function(t){return null==t?es:t[e]}}function B(e){return function(t){return null==e?es:e[t]}}function Qa(t,i,r,o,e){return e(t,function(t,e,n){r=o?(o=!1,t):i(r,t,e,n)}),r}function tc(t,e){for(var n,i=-1,r=t.length;++i<r;){var o=e(t[i]);o!==es&&(n=n===es?o:n+o)}return n}function ec(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function nc(e){return function(t){return e(t)}}function ic(e,t){return Va(t,function(t){return e[t]})}function rc(t,e){return t.has(e)}function oc(t,e){for(var n=-1,i=t.length;++n<i&&-1<Ua(e,t[n],0););return n}function sc(t,e){for(var n=t.length;n--&&-1<Ua(e,t[n],0););return n}var ac=B({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),cc=B({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function uc(t){return"\\"+C[t]}function lc(t){return A.test(t)}function pc(t){var n=-1,i=Array(t.size);return t.forEach(function(t,e){i[++n]=[e,t]}),i}function hc(e,n){return function(t){return e(n(t))}}function dc(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n];s!==e&&s!==rs||(t[n]=rs,o[r++]=n)}return o}function fc(t,e){return"__proto__"==e?es:t[e]}function gc(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function vc(t){return lc(t)?function(t){var e=I.lastIndex=0;for(;I.test(t);)++e;return e}(t):F(t)}function mc(t){return lc(t)?t.match(I)||[]:t.split("")}var yc=B({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bc=function t(e){var n,I=(e=null==e?Sa:bc.defaults(Sa.Object(),e,bc.pick(Sa,ba))).Array,i=e.Date,r=e.Error,v=e.Function,o=e.Math,w=e.Object,m=e.RegExp,l=e.String,A=e.TypeError,s=I.prototype,a=v.prototype,p=w.prototype,c=e["__core-js_shared__"],u=a.toString,S=p.hasOwnProperty,h=0,d=(n=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=p.toString,g=u.call(w),y=Sa._,b=m("^"+u.call(S).replace(qs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=Ea?e.Buffer:es,O=e.Symbol,j=e.Uint8Array,_=x?x.allocUnsafe:es,E=hc(w.getPrototypeOf,w),T=w.create,C=p.propertyIsEnumerable,k=s.splice,D=O?O.isConcatSpreadable:es,L=O?O.iterator:es,R=O?O.toStringTag:es,P=function(){try{var t=zn(w,"defineProperty");return t({},"",{}),t}catch(t){}}(),M=e.clearTimeout!==Sa.clearTimeout&&e.clearTimeout,F=i&&i.now!==Sa.Date.now&&i.now,B=e.setTimeout!==Sa.setTimeout&&e.setTimeout,N=o.ceil,z=o.floor,V=w.getOwnPropertySymbols,W=x?x.isBuffer:es,Y=e.isFinite,H=s.join,$=hc(w.keys,w),G=o.max,X=o.min,U=i.now,q=e.parseInt,Z=o.random,K=s.reverse,J=zn(e,"DataView"),Q=zn(e,"Map"),tt=zn(e,"Promise"),et=zn(e,"Set"),nt=zn(e,"WeakMap"),it=zn(w,"create"),rt=nt&&new nt,ot={},st=di(J),at=di(Q),ct=di(tt),ut=di(et),lt=di(nt),pt=O?O.prototype:es,ht=pt?pt.valueOf:es,dt=pt?pt.toString:es;function ft(t){if(Cr(t)&&!br(t)&&!(t instanceof yt)){if(t instanceof mt)return t;if(S.call(t,"__wrapped__"))return fi(t)}return new mt(t)}var gt=function(){function n(){}return function(t){if(!Ar(t))return{};if(T)return T(t);n.prototype=t;var e=new n;return n.prototype=es,e}}();function vt(){}function mt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=es}function yt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=as,this.__views__=[]}function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ot;++e<n;)this.add(t[e])}function _t(t){var e=this.__data__=new xt(t);this.size=e.size}function wt(t,e){var n=br(t),i=!n&&yr(t),r=!n&&!i&&_r(t),o=!n&&!i&&!r&&Br(t),s=n||i||r||o,a=s?ec(t.length,l):[],c=a.length;for(var u in t)!e&&!S.call(t,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xn(u,c))||a.push(u);return a}function St(t){var e=t.length;return e?t[je(0,e-1)]:es}function Et(t,e){return ci(rn(t),Pt(e,0,t.length))}function Tt(t){return ci(rn(t))}function It(t,e,n){(n===es||gr(t[e],n))&&(n!==es||e in t)||Lt(t,e,n)}function At(t,e,n){var i=t[e];S.call(t,e)&&gr(i,n)&&(n!==es||e in t)||Lt(t,e,n)}function Ct(t,e){for(var n=t.length;n--;)if(gr(t[n][0],e))return n;return-1}function kt(t,i,r,o){return zt(t,function(t,e,n){i(o,t,r(t),n)}),o}function Dt(t,e){return t&&on(e,so(e),t)}function Lt(t,e,n){"__proto__"==e&&P?P(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Rt(t,e){for(var n=-1,i=e.length,r=I(i),o=null==t;++n<i;)r[n]=o?es:eo(t,e[n]);return r}function Pt(t,e,n){return t==t&&(n!==es&&(t=t<=n?t:n),e!==es&&(t=e<=t?t:e)),t}function Mt(n,i,r,t,e,o){var s,a=1&i,c=2&i,u=4&i;if(r&&(s=e?r(n,t,e,o):r(n)),s!==es)return s;if(!Ar(n))return n;var l,p,h,d,f,g,v,m,y,b=br(n);if(b){if(m=(v=n).length,y=new v.constructor(m),m&&"string"==typeof v[0]&&S.call(v,"index")&&(y.index=v.index,y.input=v.input),s=y,!a)return rn(n,s)}else{var x=Yn(n),O=x==fs||x==gs;if(_r(n))return Ke(n,a);if(x==ys||x==us||O&&!e){if(s=c||O?{}:$n(n),!a)return c?(g=h=n,d=(f=s)&&on(g,ao(g),f),on(h,Wn(h),d)):(p=Dt(s,l=n),on(l,Vn(l),p))}else{if(!ja[x])return e?n:{};s=function(t,e,n){var i,r,o,s,a,c=t.constructor;switch(e){case Ss:return Je(t);case ps:case hs:return new c(+t);case Es:return s=t,a=n?Je(s.buffer):s.buffer,new s.constructor(a,s.byteOffset,s.byteLength);case Ts:case Is:case As:case Cs:case ks:case Ds:case Ls:case Rs:case Ps:return Qe(t,n);case vs:return new c;case ms:case js:return new c(t);case xs:return(o=new(r=t).constructor(r.source,sa.exec(r))).lastIndex=r.lastIndex,o;case Os:return new c;case _s:return i=t,ht?w(ht.call(i)):{}}}(n,x,a)}}o||(o=new _t);var j=o.get(n);if(j)return j;if(o.set(n,s),Pr(n))return n.forEach(function(t){s.add(Mt(t,i,r,t,n,o))}),s;if(kr(n))return n.forEach(function(t,e){s.set(e,Mt(t,i,r,e,n,o))}),s;var _=b?es:(u?c?Ln:Dn:c?ao:so)(n);return Pa(_||n,function(t,e){_&&(t=n[e=t]),At(s,e,Mt(t,i,r,e,n,o))}),s}function Ft(t,e,n){var i=n.length;if(null==t)return!i;for(t=w(t);i--;){var r=n[i],o=e[r],s=t[r];if(s===es&&!(r in t)||!o(s))return!1}return!0}function Bt(t,e,n){if("function"!=typeof t)throw new A(ns);return ri(function(){t.apply(es,n)},e)}function Nt(t,e,n,i){var r=-1,o=Na,s=!0,a=t.length,c=[],u=e.length;if(!a)return c;n&&(e=Va(e,nc(n))),i?(o=za,s=!1):200<=e.length&&(o=rc,s=!1,e=new jt(e));t:for(;++r<a;){var l=t[r],p=null==n?l:n(l);if(l=i||0!==l?l:0,s&&p==p){for(var h=u;h--;)if(e[h]===p)continue t;c.push(l)}else o(e,p,i)||c.push(l)}return c}ft.templateSettings={escape:Ys,evaluate:Hs,interpolate:$s,variable:"",imports:{_:ft}},(ft.prototype=vt.prototype).constructor=ft,(mt.prototype=gt(vt.prototype)).constructor=mt,(yt.prototype=gt(vt.prototype)).constructor=yt,bt.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},bt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt.prototype.get=function(t){var e=this.__data__;if(it){var n=e[t];return n===is?es:n}return S.call(e,t)?e[t]:es},bt.prototype.has=function(t){var e=this.__data__;return it?e[t]!==es:S.call(e,t)},bt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=it&&e===es?is:e,this},xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,n=Ct(e,t);return!(n<0||(n==e.length-1?e.pop():k.call(e,n,1),--this.size,0))},xt.prototype.get=function(t){var e=this.__data__,n=Ct(e,t);return n<0?es:e[n][1]},xt.prototype.has=function(t){return-1<Ct(this.__data__,t)},xt.prototype.set=function(t,e){var n=this.__data__,i=Ct(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Ot.prototype.clear=function(){this.size=0,this.__data__={hash:new bt,map:new(Q||xt),string:new bt}},Ot.prototype.delete=function(t){var e=Bn(this,t).delete(t);return this.size-=e?1:0,e},Ot.prototype.get=function(t){return Bn(this,t).get(t)},Ot.prototype.has=function(t){return Bn(this,t).has(t)},Ot.prototype.set=function(t,e){var n=Bn(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},jt.prototype.add=jt.prototype.push=function(t){return this.__data__.set(t,is),this},jt.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.clear=function(){this.__data__=new xt,this.size=0},_t.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},_t.prototype.get=function(t){return this.__data__.get(t)},_t.prototype.has=function(t){return this.__data__.has(t)},_t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof xt){var i=n.__data__;if(!Q||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ot(i)}return n.set(t,e),this.size=n.size,this};var zt=cn(Ut),Vt=cn(qt,!0);function Wt(t,i){var r=!0;return zt(t,function(t,e,n){return r=!!i(t,e,n)}),r}function Yt(t,e,n){for(var i=-1,r=t.length;++i<r;){var o=t[i],s=e(o);if(null!=s&&(a===es?s==s&&!Fr(s):n(s,a)))var a=s,c=o}return c}function Ht(t,i){var r=[];return zt(t,function(t,e,n){i(t,e,n)&&r.push(t)}),r}function $t(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=Gn),r||(r=[]);++o<s;){var a=t[o];0<e&&n(a)?1<e?$t(a,e-1,n,i,r):Wa(r,a):i||(r[r.length]=a)}return r}var Gt=un(),Xt=un(!0);function Ut(t,e){return t&&Gt(t,e,so)}function qt(t,e){return t&&Xt(t,e,so)}function Zt(e,t){return Ba(t,function(t){return Er(e[t])})}function Kt(t,e){for(var n=0,i=(e=Xe(e,t)).length;null!=t&&n<i;)t=t[hi(e[n++])];return n&&n==i?t:es}function Jt(t,e,n){var i=e(t);return br(t)?i:Wa(i,n(t))}function Qt(t){return null==t?t===es?"[object Undefined]":"[object Null]":R&&R in w(t)?function(t){var e=S.call(t,R),n=t[R];try{t[R]=es;var i=!0}catch(t){}var r=f.call(t);return i&&(e?t[R]=n:delete t[R]),r}(t):(e=t,f.call(e));var e}function te(t,e){return e<t}function ee(t,e){return null!=t&&S.call(t,e)}function ne(t,e){return null!=t&&e in w(t)}function ie(t,e,n){for(var i=n?za:Na,r=t[0].length,o=t.length,s=o,a=I(o),c=1/0,u=[];s--;){var l=t[s];s&&e&&(l=Va(l,nc(e))),c=X(l.length,c),a[s]=!n&&(e||120<=r&&120<=l.length)?new jt(s&&l):es}l=t[0];var p=-1,h=a[0];t:for(;++p<r&&u.length<c;){var d=l[p],f=e?e(d):d;if(d=n||0!==d?d:0,!(h?rc(h,f):i(u,f,n))){for(s=o;--s;){var g=a[s];if(!(g?rc(g,f):i(t[s],f,n)))continue t}h&&h.push(f),u.push(d)}}return u}function re(t,e,n){var i=null==(t=ni(t,e=Xe(e,t)))?t:t[hi(Si(e))];return null==i?es:La(i,t,n)}function oe(t){return Cr(t)&&Qt(t)==us}function se(t,e,n,i,r){return t===e||(null==t||null==e||!Cr(t)&&!Cr(e)?t!=t&&e!=e:function(t,e,n,i,r,o){var s=br(t),a=br(e),c=s?ls:Yn(t),u=a?ls:Yn(e),l=(c=c==us?ys:c)==ys,p=(u=u==us?ys:u)==ys,h=c==u;if(h&&_r(t)){if(!_r(e))return!1;l=!(s=!0)}if(h&&!l)return o||(o=new _t),s||Br(t)?Cn(t,e,n,i,r,o):function(t,e,n,i,r,o,s){switch(n){case Es:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ss:return!(t.byteLength!=e.byteLength||!o(new j(t),new j(e)));case ps:case hs:case ms:return gr(+t,+e);case ds:return t.name==e.name&&t.message==e.message;case xs:case js:return t==e+"";case vs:var a=pc;case Os:var c=1&i;if(a||(a=gc),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;i|=2,s.set(t,e);var l=Cn(a(t),a(e),i,r,o,s);return s.delete(t),l;case _s:if(ht)return ht.call(t)==ht.call(e)}return!1}(t,e,c,n,i,r,o);if(!(1&n)){var d=l&&S.call(t,"__wrapped__"),f=p&&S.call(e,"__wrapped__");if(d||f){var g=d?t.value():t,v=f?e.value():e;return o||(o=new _t),r(g,v,n,i,o)}}return!!h&&(o||(o=new _t),function(t,e,n,i,r,o){var s=1&n,a=Dn(t),c=a.length,u=Dn(e).length;if(c!=u&&!s)return!1;for(var l=c;l--;){var p=a[l];if(!(s?p in e:S.call(e,p)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var d=!0;o.set(t,e),o.set(e,t);for(var f=s;++l<c;){p=a[l];var g=t[p],v=e[p];if(i)var m=s?i(v,g,p,e,t,o):i(g,v,p,t,e,o);if(!(m===es?g===v||r(g,v,n,i,o):m)){d=!1;break}f||(f="constructor"==p)}if(d&&!f){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,i,r,o))}(t,e,n,i,se,r))}function ae(t,e,n,i){var r=n.length,o=r,s=!i;if(null==t)return!o;for(t=w(t);r--;){var a=n[r];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<o;){var c=(a=n[r])[0],u=t[c],l=a[1];if(s&&a[2]){if(u===es&&!(c in t))return!1}else{var p=new _t;if(i)var h=i(u,l,c,t,e,p);if(!(h===es?se(l,u,3,i,p):h))return!1}}return!0}function ce(t){return!(!Ar(t)||(e=t,d&&d in e))&&(Er(t)?b:ua).test(di(t));var e}function ue(t){return"function"==typeof t?t:null==t?Lo:"object"==typeof t?br(t)?ge(t[0],t[1]):fe(t):Wo(t)}function le(t){if(!Jn(t))return $(t);var e=[];for(var n in w(t))S.call(t,n)&&"constructor"!=n&&e.push(n);return e}function pe(t){if(!Ar(t))return function(t){var e=[];if(null!=t)for(var n in w(t))e.push(n);return e}(t);var e=Jn(t),n=[];for(var i in t)("constructor"!=i||!e&&S.call(t,i))&&n.push(i);return n}function he(t,e){return t<e}function de(t,i){var r=-1,o=Or(t)?I(t.length):[];return zt(t,function(t,e,n){o[++r]=i(t,e,n)}),o}function fe(e){var n=Nn(e);return 1==n.length&&n[0][2]?ti(n[0][0],n[0][1]):function(t){return t===e||ae(t,e,n)}}function ge(n,i){return qn(n)&&Qn(i)?ti(hi(n),i):function(t){var e=eo(t,n);return e===es&&e===i?no(t,n):se(i,e,3)}}function ve(i,r,o,s,a){i!==r&&Gt(r,function(t,e){if(Ar(t))a||(a=new _t),function(t,e,n,i,r,o,s){var a=fc(t,n),c=fc(e,n),u=s.get(c);if(u)return It(t,n,u);var l=o?o(a,c,n+"",t,e,s):es,p=l===es;if(p){var h=br(c),d=!h&&_r(c),f=!h&&!d&&Br(c);l=c,h||d||f?l=br(a)?a:jr(a)?rn(a):d?Ke(c,!(p=!1)):f?Qe(c,!(p=!1)):[]:Lr(c)||yr(c)?yr(l=a)?l=Gr(a):(!Ar(a)||i&&Er(a))&&(l=$n(c)):p=!1}p&&(s.set(c,l),r(l,c,i,o,s),s.delete(c)),It(t,n,l)}(i,r,e,o,ve,s,a);else{var n=s?s(fc(i,e),t,e+"",i,r,a):es;n===es&&(n=t),It(i,e,n)}},ao)}function me(t,e){var n=t.length;if(n)return Xn(e+=e<0?n:0,n)?t[e]:es}function ye(t,i,n){var r=-1;return i=Va(i.length?i:[Lo],nc(Fn())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(de(t,function(e,t,n){return{criteria:Va(i,function(t){return t(e)}),index:++r,value:e}}),function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var c=tn(r[i],o[i]);if(c){if(a<=i)return c;var u=n[i];return c*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)})}function be(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=Kt(t,s);n(a,s)&&Te(o,Xe(s,t),a)}return o}function xe(t,e,n,i){var r=i?qa:Ua,o=-1,s=e.length,a=t;for(t===e&&(e=rn(e)),n&&(a=Va(t,nc(n)));++o<s;)for(var c=0,u=e[o],l=n?n(u):u;-1<(c=r(a,l,c,i));)a!==t&&k.call(a,c,1),k.call(t,c,1);return t}function Oe(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Xn(r)?k.call(t,r,1):Ne(t,r)}}return t}function je(t,e){return t+z(Z()*(e-t+1))}function _e(t,e){var n="";if(!t||e<1||os<e)return n;for(;e%2&&(n+=t),(e=z(e/2))&&(t+=t),e;);return n}function we(t,e){return oi(ei(t,e,Lo),t+"")}function Se(t){return St(vo(t))}function Ee(t,e){var n=vo(t);return ci(n,Pt(e,0,n.length))}function Te(t,e,n,i){if(!Ar(t))return t;for(var r=-1,o=(e=Xe(e,t)).length,s=o-1,a=t;null!=a&&++r<o;){var c=hi(e[r]),u=n;if(r!=s){var l=a[c];(u=i?i(l,c,a):es)===es&&(u=Ar(l)?l:Xn(e[r+1])?[]:{})}At(a,c,u),a=a[c]}return t}var Ie=rt?function(t,e){return rt.set(t,e),t}:Lo,Ae=P?function(t,e){return P(t,"toString",{configurable:!0,enumerable:!1,value:Co(e),writable:!0})}:Lo;function Ce(t){return ci(vo(t))}function ke(t,e,n){var i=-1,r=t.length;e<0&&(e=r<-e?0:r+e),(n=r<n?r:n)<0&&(n+=r),r=n<e?0:n-e>>>0,e>>>=0;for(var o=I(r);++i<r;)o[i]=t[i+e];return o}function De(t,i){var r;return zt(t,function(t,e,n){return!(r=i(t,e,n))}),!!r}function Le(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!Fr(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return Re(t,e,Lo,n)}function Re(t,e,n,i){e=n(e);for(var r=0,o=null==t?0:t.length,s=e!=e,a=null===e,c=Fr(e),u=e===es;r<o;){var l=z((r+o)/2),p=n(t[l]),h=p!==es,d=null===p,f=p==p,g=Fr(p);if(s)var v=i||f;else v=u?f&&(i||h):a?f&&h&&(i||!d):c?f&&h&&!d&&(i||!g):!d&&!g&&(i?p<=e:p<e);v?r=l+1:o=l}return X(o,4294967294)}function Pe(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!gr(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function Me(t){return"number"==typeof t?t:Fr(t)?ss:+t}function Fe(t){if("string"==typeof t)return t;if(br(t))return Va(t,Fe)+"";if(Fr(t))return dt?dt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Be(t,e,n){var i=-1,r=Na,o=t.length,s=!0,a=[],c=a;if(n)s=!1,r=za;else if(200<=o){var u=e?null:wn(t);if(u)return gc(u);s=!1,r=rc,c=new jt}else c=e?[]:a;t:for(;++i<o;){var l=t[i],p=e?e(l):l;if(l=n||0!==l?l:0,s&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue t;e&&c.push(p),a.push(l)}else r(c,p,n)||(c!==a&&c.push(p),a.push(l))}return a}function Ne(t,e){return null==(t=ni(t,e=Xe(e,t)))||delete t[hi(Si(e))]}function ze(t,e,n,i){return Te(t,e,n(Kt(t,e)),i)}function Ve(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?ke(t,i?0:o,i?o+1:r):ke(t,i?o+1:0,i?r:o)}function We(t,e){var n=t;return n instanceof yt&&(n=n.value()),Ya(e,function(t,e){return e.func.apply(e.thisArg,Wa([t],e.args))},n)}function Ye(t,e,n){var i=t.length;if(i<2)return i?Be(t[0]):[];for(var r=-1,o=I(i);++r<i;)for(var s=t[r],a=-1;++a<i;)a!=r&&(o[r]=Nt(o[r]||s,t[a],e,n));return Be($t(o,1),e,n)}function He(t,e,n){for(var i=-1,r=t.length,o=e.length,s={};++i<r;){var a=i<o?e[i]:es;n(s,t[i],a)}return s}function $e(t){return jr(t)?t:[]}function Ge(t){return"function"==typeof t?t:Lo}function Xe(t,e){return br(t)?t:qn(t,e)?[t]:pi(Xr(t))}var Ue=we;function qe(t,e,n){var i=t.length;return n=n===es?i:n,!e&&i<=n?t:ke(t,e,n)}var Ze=M||function(t){return Sa.clearTimeout(t)};function Ke(t,e){if(e)return t.slice();var n=t.length,i=_?_(n):new t.constructor(n);return t.copy(i),i}function Je(t){var e=new t.constructor(t.byteLength);return new j(e).set(new j(t)),e}function Qe(t,e){var n=e?Je(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function tn(t,e){if(t!==e){var n=t!==es,i=null===t,r=t==t,o=Fr(t),s=e!==es,a=null===e,c=e==e,u=Fr(e);if(!a&&!u&&!o&&e<t||o&&s&&c&&!a&&!u||i&&s&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&t<e||u&&n&&r&&!i&&!o||a&&n&&r||!s&&r||!c)return-1}return 0}function en(t,e,n,i){for(var r=-1,o=t.length,s=n.length,a=-1,c=e.length,u=G(o-s,0),l=I(c+u),p=!i;++a<c;)l[a]=e[a];for(;++r<s;)(p||r<o)&&(l[n[r]]=t[r]);for(;u--;)l[a++]=t[r++];return l}function nn(t,e,n,i){for(var r=-1,o=t.length,s=-1,a=n.length,c=-1,u=e.length,l=G(o-a,0),p=I(l+u),h=!i;++r<l;)p[r]=t[r];for(var d=r;++c<u;)p[d+c]=e[c];for(;++s<a;)(h||r<o)&&(p[d+n[s]]=t[r++]);return p}function rn(t,e){var n=-1,i=t.length;for(e||(e=I(i));++n<i;)e[n]=t[n];return e}function on(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],c=i?i(n[a],t[a],a,n,t):es;c===es&&(c=t[a]),r?Lt(n,a,c):At(n,a,c)}return n}function sn(r,o){return function(t,e){var n=br(t)?Ra:kt,i=o?o():{};return n(t,r,Fn(e,2),i)}}function an(a){return we(function(t,e){var n=-1,i=e.length,r=1<i?e[i-1]:es,o=2<i?e[2]:es;for(r=3<a.length&&"function"==typeof r?(i--,r):es,o&&Un(e[0],e[1],o)&&(r=i<3?es:r,i=1),t=w(t);++n<i;){var s=e[n];s&&a(t,s,n,r)}return t})}function cn(o,s){return function(t,e){if(null==t)return t;if(!Or(t))return o(t,e);for(var n=t.length,i=s?n:-1,r=w(t);(s?i--:++i<n)&&!1!==e(r[i],i,r););return t}}function un(c){return function(t,e,n){for(var i=-1,r=w(t),o=n(t),s=o.length;s--;){var a=o[c?s:++i];if(!1===e(r[a],a,r))break}return t}}function ln(r){return function(t){var e=lc(t=Xr(t))?mc(t):es,n=e?e[0]:t.charAt(0),i=e?qe(e,1).join(""):t.slice(1);return n[r]()+i}}function pn(e){return function(t){return Ya(To(bo(t).replace(ga,"")),e,"")}}function hn(i){return function(){var t=arguments;switch(t.length){case 0:return new i;case 1:return new i(t[0]);case 2:return new i(t[0],t[1]);case 3:return new i(t[0],t[1],t[2]);case 4:return new i(t[0],t[1],t[2],t[3]);case 5:return new i(t[0],t[1],t[2],t[3],t[4]);case 6:return new i(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new i(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=gt(i.prototype),n=i.apply(e,t);return Ar(n)?n:e}}function dn(s){return function(t,e,n){var i=w(t);if(!Or(t)){var r=Fn(e,3);t=so(t),e=function(t){return r(i[t],t,i)}}var o=s(t,e,n);return-1<o?i[r?t[o]:o]:es}}function fn(c){return kn(function(r){var o=r.length,t=o,e=mt.prototype.thru;for(c&&r.reverse();t--;){var n=r[t];if("function"!=typeof n)throw new A(ns);if(e&&!s&&"wrapper"==Pn(n))var s=new mt([],!0)}for(t=s?t:o;++t<o;){var i=Pn(n=r[t]),a="wrapper"==i?Rn(n):es;s=a&&Zn(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?s[Pn(a[0])].apply(s,a[3]):1==n.length&&Zn(n)?s[i]():s.thru(n)}return function(){var t=arguments,e=t[0];if(s&&1==t.length&&br(e))return s.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}})}function gn(u,l,p,h,d,f,g,v,m,y){var b=128&l,x=1&l,O=2&l,j=24&l,_=512&l,w=O?es:hn(u);return function t(){for(var e=arguments.length,n=I(e),i=e;i--;)n[i]=arguments[i];if(j)var r=Mn(t),o=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(n,r);if(h&&(n=en(n,h,d,j)),f&&(n=nn(n,f,g,j)),e-=o,j&&e<y){var s=dc(n,r);return jn(u,l,gn,t.placeholder,p,n,s,v,m,y-e)}var a=x?p:this,c=O?a[u]:u;return e=n.length,v?n=function(t,e){for(var n=t.length,i=X(e.length,n),r=rn(t);i--;){var o=e[i];t[i]=Xn(o,n)?r[o]:es}return t}(n,v):_&&1<e&&n.reverse(),b&&m<e&&(n.length=m),this&&this!==Sa&&this instanceof t&&(c=w||hn(c)),c.apply(a,n)}}function vn(s,a){return function(t,e){return n=t,i=s,r=a(e),o={},Ut(n,function(t,e,n){i(o,r(t),e,n)}),o;var n,i,r,o}}function mn(i,r){return function(t,e){var n;if(t===es&&e===es)return r;if(t!==es&&(n=t),e!==es){if(n===es)return e;"string"==typeof t||"string"==typeof e?(t=Fe(t),e=Fe(e)):(t=Me(t),e=Me(e)),n=i(t,e)}return n}}function yn(i){return kn(function(t){return t=Va(t,nc(Fn())),we(function(e){var n=this;return i(t,function(t){return La(t,n,e)})})})}function bn(t,e){var n=(e=e===es?" ":Fe(e)).length;if(n<2)return n?_e(e,t):e;var i=_e(e,N(t/vc(e)));return lc(e)?qe(mc(i),0,t).join(""):i.slice(0,t)}function xn(i){return function(t,e,n){return n&&"number"!=typeof n&&Un(t,e,n)&&(e=n=es),t=Wr(t),e===es?(e=t,t=0):e=Wr(e),function(t,e,n,i){for(var r=-1,o=G(N((e-t)/(n||1)),0),s=I(o);o--;)s[i?o:++r]=t,t+=n;return s}(t,e,n=n===es?t<e?1:-1:Wr(n),i)}}function On(n){return function(t,e){return"string"==typeof t&&"string"==typeof e||(t=$r(t),e=$r(e)),n(t,e)}}function jn(t,e,n,i,r,o,s,a,c,u){var l=8&e;e|=l?32:64,4&(e&=~(l?64:32))||(e&=-4);var p=[t,e,r,l?o:es,l?s:es,l?es:o,l?es:s,a,c,u],h=n.apply(es,p);return Zn(t)&&ii(h,p),h.placeholder=i,si(h,t,e)}function _n(t){var i=o[t];return function(t,e){if(t=$r(t),e=null==e?0:X(Yr(e),292)){var n=(Xr(t)+"e").split("e");return+((n=(Xr(i(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return i(t)}}var wn=et&&1/gc(new et([,-0]))[1]==1/0?function(t){return new et(t)}:Bo;function Sn(s){return function(t){var e,n,i,r,o=Yn(t);return o==vs?pc(t):o==Os?(e=t,n=-1,i=Array(e.size),e.forEach(function(t){i[++n]=[t,t]}),i):Va(s(r=t),function(t){return[t,r[t]]})}}function En(t,e,n,i,r,o,s,a){var c=2&e;if(!c&&"function"!=typeof t)throw new A(ns);var u=i?i.length:0;if(u||(e&=-97,i=r=es),s=s===es?s:G(Yr(s),0),a=a===es?a:Yr(a),u-=r?r.length:0,64&e){var l=i,p=r;i=r=es}var h,d,f,g,v,m,y,b,x,O,j,_,w,S=c?es:Rn(t),E=[t,e,n,i,r,l,p,o,s,a];if(S&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,s=128==i&&8==n||128==i&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(o||s){1&i&&(t[2]=e[2],r|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?en(c,a,e[4]):a,t[4]=c?dc(t[3],rs):e[4]}(a=e[5])&&(c=t[5],t[5]=c?nn(c,a,e[6]):a,t[6]=c?dc(t[5],rs):e[6]),(a=e[7])&&(t[7]=a),128&i&&(t[8]=null==t[8]?e[8]:X(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}}(E,S),t=E[0],e=E[1],n=E[2],i=E[3],r=E[4],!(a=E[9]=E[9]===es?c?0:t.length:G(E[9]-u,0))&&24&e&&(e&=-25),e&&1!=e)8==e||16==e?(y=e,b=a,x=hn(m=t),T=function t(){for(var e=arguments.length,n=I(e),i=e,r=Mn(t);i--;)n[i]=arguments[i];var o=e<3&&n[0]!==r&&n[e-1]!==r?[]:dc(n,r);return(e-=o.length)<b?jn(m,y,gn,t.placeholder,es,n,o,es,es,b-e):La(this&&this!==Sa&&this instanceof t?x:m,this,n)}):32!=e&&33!=e||r.length?T=gn.apply(es,E):(d=n,f=i,g=1&e,v=hn(h=t),T=function t(){for(var e=-1,n=arguments.length,i=-1,r=f.length,o=I(r+n),s=this&&this!==Sa&&this instanceof t?v:h;++i<r;)o[i]=f[i];for(;n--;)o[i++]=arguments[++e];return La(s,g?d:this,o)});else var T=(j=n,_=1&e,w=hn(O=t),function t(){return(this&&this!==Sa&&this instanceof t?w:O).apply(_?j:this,arguments)});return si((S?Ie:ii)(T,E),t,e)}function Tn(t,e,n,i){return t===es||gr(t,p[n])&&!S.call(i,n)?e:t}function In(t,e,n,i,r,o){return Ar(t)&&Ar(e)&&(o.set(e,t),ve(t,e,es,In,o),o.delete(e)),t}function An(t){return Lr(t)?es:t}function Cn(t,e,n,i,r,o){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&a<c))return!1;var u=o.get(t);if(u&&o.get(e))return u==e;var l=-1,p=!0,h=2&n?new jt:es;for(o.set(t,e),o.set(e,t);++l<a;){var d=t[l],f=e[l];if(i)var g=s?i(f,d,l,e,t,o):i(d,f,l,t,e,o);if(g!==es){if(g)continue;p=!1;break}if(h){if(!$a(e,function(t,e){if(!rc(h,e)&&(d===t||r(d,t,n,i,o)))return h.push(e)})){p=!1;break}}else if(d!==f&&!r(d,f,n,i,o)){p=!1;break}}return o.delete(t),o.delete(e),p}function kn(t){return oi(ei(t,es,xi),t+"")}function Dn(t){return Jt(t,so,Vn)}function Ln(t){return Jt(t,ao,Wn)}var Rn=rt?function(t){return rt.get(t)}:Bo;function Pn(t){for(var e=t.name+"",n=ot[e],i=S.call(ot,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Mn(t){return(S.call(ft,"placeholder")?ft:t).placeholder}function Fn(){var t=ft.iteratee||Ro;return t=t===Ro?ue:t,arguments.length?t(arguments[0],arguments[1]):t}function Bn(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Nn(t){for(var e=so(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Qn(r)]}return e}function zn(t,e){var n,i,r=(i=e,null==(n=t)?es:n[i]);return ce(r)?r:es}var Vn=V?function(e){return null==e?[]:(e=w(e),Ba(V(e),function(t){return C.call(e,t)}))}:$o,Wn=V?function(t){for(var e=[];t;)Wa(e,Vn(t)),t=E(t);return e}:$o,Yn=Qt;function Hn(t,e,n){for(var i=-1,r=(e=Xe(e,t)).length,o=!1;++i<r;){var s=hi(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Ir(r)&&Xn(s,r)&&(br(t)||yr(t))}function $n(t){return"function"!=typeof t.constructor||Jn(t)?{}:gt(E(t))}function Gn(t){return br(t)||yr(t)||!!(D&&t&&t[D])}function Xn(t,e){var n=typeof t;return!!(e=null==e?os:e)&&("number"==n||"symbol"!=n&&pa.test(t))&&-1<t&&t%1==0&&t<e}function Un(t,e,n){if(!Ar(n))return!1;var i=typeof e;return!!("number"==i?Or(n)&&Xn(e,n.length):"string"==i&&e in n)&&gr(n[e],t)}function qn(t,e){if(br(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Fr(t))||Xs.test(t)||!Gs.test(t)||null!=e&&t in w(e)}function Zn(t){var e=Pn(t),n=ft[e];if("function"!=typeof n||!(e in yt.prototype))return!1;if(t===n)return!0;var i=Rn(n);return!!i&&t===i[0]}(J&&Yn(new J(new ArrayBuffer(1)))!=Es||Q&&Yn(new Q)!=vs||tt&&Yn(tt.resolve())!=bs||et&&Yn(new et)!=Os||nt&&Yn(new nt)!=ws)&&(Yn=function(t){var e=Qt(t),n=e==ys?t.constructor:es,i=n?di(n):"";if(i)switch(i){case st:return Es;case at:return vs;case ct:return bs;case ut:return Os;case lt:return ws}return e});var Kn=c?Er:Go;function Jn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||p)}function Qn(t){return t==t&&!Ar(t)}function ti(e,n){return function(t){return null!=t&&t[e]===n&&(n!==es||e in w(t))}}function ei(o,s,a){return s=G(s===es?o.length-1:s,0),function(){for(var t=arguments,e=-1,n=G(t.length-s,0),i=I(n);++e<n;)i[e]=t[s+e];e=-1;for(var r=I(s+1);++e<s;)r[e]=t[e];return r[s]=a(i),La(o,this,r)}}function ni(t,e){return e.length<2?t:Kt(t,ke(e,0,-1))}var ii=ai(Ie),ri=B||function(t,e){return Sa.setTimeout(t,e)},oi=ai(Ae);function si(t,e,n){var i,r,o,s=e+"";return oi(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(1<n?"& ":"")+e[i],e=e.join(2<n?", ":" "),t.replace(ta,"{\n/* [wrapped with "+e+"] */\n")}(s,(o=s.match(ea),i=o?o[1].split(na):[],r=n,Pa(cs,function(t){var e="_."+t[0];r&t[1]&&!Na(i,e)&&i.push(e)}),i.sort())))}function ai(n){var i=0,r=0;return function(){var t=U(),e=16-(t-r);if(r=t,0<e){if(800<=++i)return arguments[0]}else i=0;return n.apply(es,arguments)}}function ci(t,e){var n=-1,i=t.length,r=i-1;for(e=e===es?i:e;++n<e;){var o=je(n,r),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var ui,li,pi=(li=(ui=ur(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Us,function(t,e,n,i){r.push(n?i.replace(ra,"$1"):e||t)}),r},function(t){return 500===li.size&&li.clear(),t})).cache,ui);function hi(t){if("string"==typeof t||Fr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function di(t){if(null!=t){try{return u.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function fi(t){if(t instanceof yt)return t.clone();var e=new mt(t.__wrapped__,t.__chain__);return e.__actions__=rn(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var gi=we(function(t,e){return jr(t)?Nt(t,$t(e,1,jr,!0)):[]}),vi=we(function(t,e){var n=Si(e);return jr(n)&&(n=es),jr(t)?Nt(t,$t(e,1,jr,!0),Fn(n,2)):[]}),mi=we(function(t,e){var n=Si(e);return jr(n)&&(n=es),jr(t)?Nt(t,$t(e,1,jr,!0),es,n):[]});function yi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Yr(n);return r<0&&(r=G(i+r,0)),Xa(t,Fn(e,3),r)}function bi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return n!==es&&(r=Yr(n),r=n<0?G(i+r,0):X(r,i-1)),Xa(t,Fn(e,3),r,!0)}function xi(t){return null!=t&&t.length?$t(t,1):[]}function Oi(t){return t&&t.length?t[0]:es}var ji=we(function(t){var e=Va(t,$e);return e.length&&e[0]===t[0]?ie(e):[]}),_i=we(function(t){var e=Si(t),n=Va(t,$e);return e===Si(n)?e=es:n.pop(),n.length&&n[0]===t[0]?ie(n,Fn(e,2)):[]}),wi=we(function(t){var e=Si(t),n=Va(t,$e);return(e="function"==typeof e?e:es)&&n.pop(),n.length&&n[0]===t[0]?ie(n,es,e):[]});function Si(t){var e=null==t?0:t.length;return e?t[e-1]:es}var Ei=we(Ti);function Ti(t,e){return t&&t.length&&e&&e.length?xe(t,e):t}var Ii=kn(function(t,e){var n=null==t?0:t.length,i=Rt(t,e);return Oe(t,Va(e,function(t){return Xn(t,n)?+t:t}).sort(tn)),i});function Ai(t){return null==t?t:K.call(t)}var Ci=we(function(t){return Be($t(t,1,jr,!0))}),ki=we(function(t){var e=Si(t);return jr(e)&&(e=es),Be($t(t,1,jr,!0),Fn(e,2))}),Di=we(function(t){var e=Si(t);return e="function"==typeof e?e:es,Be($t(t,1,jr,!0),es,e)});function Li(e){if(!e||!e.length)return[];var n=0;return e=Ba(e,function(t){if(jr(t))return n=G(t.length,n),!0}),ec(n,function(t){return Va(e,Ja(t))})}function Ri(t,e){if(!t||!t.length)return[];var n=Li(t);return null==e?n:Va(n,function(t){return La(e,es,t)})}var Pi=we(function(t,e){return jr(t)?Nt(t,e):[]}),Mi=we(function(t){return Ye(Ba(t,jr))}),Fi=we(function(t){var e=Si(t);return jr(e)&&(e=es),Ye(Ba(t,jr),Fn(e,2))}),Bi=we(function(t){var e=Si(t);return e="function"==typeof e?e:es,Ye(Ba(t,jr),es,e)}),Ni=we(Li);var zi=we(function(t){var e=t.length,n=1<e?t[e-1]:es;return Ri(t,n="function"==typeof n?(t.pop(),n):es)});function Vi(t){var e=ft(t);return e.__chain__=!0,e}function Wi(t,e){return e(t)}var Yi=kn(function(e){var n=e.length,t=n?e[0]:0,i=this.__wrapped__,r=function(t){return Rt(t,e)};return!(1<n||this.__actions__.length)&&i instanceof yt&&Xn(t)?((i=i.slice(t,+t+(n?1:0))).__actions__.push({func:Wi,args:[r],thisArg:es}),new mt(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(es),t})):this.thru(r)});var Hi=sn(function(t,e,n){S.call(t,n)?++t[n]:Lt(t,n,1)});var $i=dn(yi),Gi=dn(bi);function Xi(t,e){return(br(t)?Pa:zt)(t,Fn(e,3))}function Ui(t,e){return(br(t)?Ma:Vt)(t,Fn(e,3))}var qi=sn(function(t,e,n){S.call(t,n)?t[n].push(e):Lt(t,n,[e])});var Zi=we(function(t,e,n){var i=-1,r="function"==typeof e,o=Or(t)?I(t.length):[];return zt(t,function(t){o[++i]=r?La(e,t,n):re(t,e,n)}),o}),Ki=sn(function(t,e,n){Lt(t,n,e)});function Ji(t,e){return(br(t)?Va:de)(t,Fn(e,3))}var Qi=sn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var tr=we(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&Un(t,e[0],e[1])?e=[]:2<n&&Un(e[0],e[1],e[2])&&(e=[e[0]]),ye(t,$t(e,1),[])}),er=F||function(){return Sa.Date.now()};function nr(t,e,n){return e=n?es:e,e=t&&null==e?t.length:e,En(t,128,es,es,es,es,e)}function ir(t,e){var n;if("function"!=typeof e)throw new A(ns);return t=Yr(t),function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=es),n}}var rr=we(function(t,e,n){var i=1;if(n.length){var r=dc(n,Mn(rr));i|=32}return En(t,i,e,n,r)}),or=we(function(t,e,n){var i=3;if(n.length){var r=dc(n,Mn(or));i|=32}return En(e,i,t,n,r)});function sr(i,r,t){var o,s,a,c,u,l,p=0,h=!1,d=!1,e=!0;if("function"!=typeof i)throw new A(ns);function f(t){var e=o,n=s;return o=s=es,p=t,c=i.apply(n,e)}function g(t){var e=t-l;return l===es||r<=e||e<0||d&&a<=t-p}function v(){var t,e,n=er();if(g(n))return m(n);u=ri(v,(e=r-((t=n)-l),d?X(e,a-(t-p)):e))}function m(t){return u=es,e&&o?f(t):(o=s=es,c)}function n(){var t,e=er(),n=g(e);if(o=arguments,s=this,l=e,n){if(u===es)return p=t=l,u=ri(v,r),h?f(t):c;if(d)return u=ri(v,r),f(l)}return u===es&&(u=ri(v,r)),c}return r=$r(r)||0,Ar(t)&&(h=!!t.leading,a=(d="maxWait"in t)?G($r(t.maxWait)||0,r):a,e="trailing"in t?!!t.trailing:e),n.cancel=function(){u!==es&&Ze(u),p=0,o=l=s=u=es},n.flush=function(){return u===es?c:m(er())},n}var ar=we(function(t,e){return Bt(t,1,e)}),cr=we(function(t,e,n){return Bt(t,$r(e)||0,n)});function ur(r,o){if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new A(ns);var s=function(){var t=arguments,e=o?o.apply(this,t):t[0],n=s.cache;if(n.has(e))return n.get(e);var i=r.apply(this,t);return s.cache=n.set(e,i)||n,i};return s.cache=new(ur.Cache||Ot),s}function lr(e){if("function"!=typeof e)throw new A(ns);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ur.Cache=Ot;var pr=Ue(function(i,r){var o=(r=1==r.length&&br(r[0])?Va(r[0],nc(Fn())):Va($t(r,1),nc(Fn()))).length;return we(function(t){for(var e=-1,n=X(t.length,o);++e<n;)t[e]=r[e].call(this,t[e]);return La(i,this,t)})}),hr=we(function(t,e){var n=dc(e,Mn(hr));return En(t,32,es,e,n)}),dr=we(function(t,e){var n=dc(e,Mn(dr));return En(t,64,es,e,n)}),fr=kn(function(t,e){return En(t,256,es,es,es,e)});function gr(t,e){return t===e||t!=t&&e!=e}var vr=On(te),mr=On(function(t,e){return e<=t}),yr=oe(function(){return arguments}())?oe:function(t){return Cr(t)&&S.call(t,"callee")&&!C.call(t,"callee")},br=I.isArray,xr=Ta?nc(Ta):function(t){return Cr(t)&&Qt(t)==Ss};function Or(t){return null!=t&&Ir(t.length)&&!Er(t)}function jr(t){return Cr(t)&&Or(t)}var _r=W||Go,wr=Ia?nc(Ia):function(t){return Cr(t)&&Qt(t)==hs};function Sr(t){if(!Cr(t))return!1;var e=Qt(t);return e==ds||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Lr(t)}function Er(t){if(!Ar(t))return!1;var e=Qt(t);return e==fs||e==gs||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Tr(t){return"number"==typeof t&&t==Yr(t)}function Ir(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=os}function Ar(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Cr(t){return null!=t&&"object"==typeof t}var kr=Aa?nc(Aa):function(t){return Cr(t)&&Yn(t)==vs};function Dr(t){return"number"==typeof t||Cr(t)&&Qt(t)==ms}function Lr(t){if(!Cr(t)||Qt(t)!=ys)return!1;var e=E(t);if(null===e)return!0;var n=S.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==g}var Rr=Ca?nc(Ca):function(t){return Cr(t)&&Qt(t)==xs};var Pr=ka?nc(ka):function(t){return Cr(t)&&Yn(t)==Os};function Mr(t){return"string"==typeof t||!br(t)&&Cr(t)&&Qt(t)==js}function Fr(t){return"symbol"==typeof t||Cr(t)&&Qt(t)==_s}var Br=Da?nc(Da):function(t){return Cr(t)&&Ir(t.length)&&!!Oa[Qt(t)]};var Nr=On(he),zr=On(function(t,e){return t<=e});function Vr(t){if(!t)return[];if(Or(t))return Mr(t)?mc(t):rn(t);if(L&&t[L])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[L]());var e=Yn(t);return(e==vs?pc:e==Os?gc:vo)(t)}function Wr(t){return t?(t=$r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Yr(t){var e=Wr(t),n=e%1;return e==e?n?e-n:e:0}function Hr(t){return t?Pt(Yr(t),0,as):0}function $r(t){if("number"==typeof t)return t;if(Fr(t))return ss;if(Ar(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ar(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ks,"");var n=ca.test(t);return n||la.test(t)?wa(t.slice(2),n?2:8):aa.test(t)?ss:+t}function Gr(t){return on(t,ao(t))}function Xr(t){return null==t?"":Fe(t)}var Ur=an(function(t,e){if(Jn(e)||Or(e))on(e,so(e),t);else for(var n in e)S.call(e,n)&&At(t,n,e[n])}),qr=an(function(t,e){on(e,ao(e),t)}),Zr=an(function(t,e,n,i){on(e,ao(e),t,i)}),Kr=an(function(t,e,n,i){on(e,so(e),t,i)}),Jr=kn(Rt);var Qr=we(function(t,e){t=w(t);var n=-1,i=e.length,r=2<i?e[2]:es;for(r&&Un(e[0],e[1],r)&&(i=1);++n<i;)for(var o=e[n],s=ao(o),a=-1,c=s.length;++a<c;){var u=s[a],l=t[u];(l===es||gr(l,p[u])&&!S.call(t,u))&&(t[u]=o[u])}return t}),to=we(function(t){return t.push(es,In),La(uo,es,t)});function eo(t,e,n){var i=null==t?es:Kt(t,e);return i===es?n:i}function no(t,e){return null!=t&&Hn(t,e,ne)}var io=vn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=f.call(e)),t[e]=n},Co(Lo)),ro=vn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=f.call(e)),S.call(t,e)?t[e].push(n):t[e]=[n]},Fn),oo=we(re);function so(t){return Or(t)?wt(t):le(t)}function ao(t){return Or(t)?wt(t,!0):pe(t)}var co=an(function(t,e,n){ve(t,e,n)}),uo=an(function(t,e,n,i){ve(t,e,n,i)}),lo=kn(function(e,t){var n={};if(null==e)return n;var i=!1;t=Va(t,function(t){return t=Xe(t,e),i||(i=1<t.length),t}),on(e,Ln(e),n),i&&(n=Mt(n,7,An));for(var r=t.length;r--;)Ne(n,t[r]);return n});var po=kn(function(t,e){return null==t?{}:be(n=t,e,function(t,e){return no(n,e)});var n});function ho(t,n){if(null==t)return{};var e=Va(Ln(t),function(t){return[t]});return n=Fn(n),be(t,e,function(t,e){return n(t,e[0])})}var fo=Sn(so),go=Sn(ao);function vo(t){return null==t?[]:ic(t,so(t))}var mo=pn(function(t,e,n){return e=e.toLowerCase(),t+(n?yo(e):e)});function yo(t){return Eo(Xr(t).toLowerCase())}function bo(t){return(t=Xr(t))&&t.replace(ha,ac).replace(va,"")}var xo=pn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Oo=pn(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),jo=ln("toLowerCase");var _o=pn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var wo=pn(function(t,e,n){return t+(n?" ":"")+Eo(e)});var So=pn(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Eo=ln("toUpperCase");function To(t,e,n){return t=Xr(t),(e=n?es:e)===es?(i=t,ya.test(i)?t.match(ma)||[]:t.match(ia)||[]):t.match(e)||[];var i}var Io=we(function(t,e){try{return La(t,es,e)}catch(t){return Sr(t)?t:new r(t)}}),Ao=kn(function(e,t){return Pa(t,function(t){t=hi(t),Lt(e,t,rr(e[t],e))}),e});function Co(t){return function(){return t}}var ko=fn(),Do=fn(!0);function Lo(t){return t}function Ro(t){return ue("function"==typeof t?t:Mt(t,1))}var Po=we(function(e,n){return function(t){return re(t,e,n)}}),Mo=we(function(e,n){return function(t){return re(e,t,n)}});function Fo(i,e,t){var n=so(e),r=Zt(e,n);null!=t||Ar(e)&&(r.length||!n.length)||(t=e,e=i,i=this,r=Zt(e,so(e)));var o=!(Ar(t)&&"chain"in t&&!t.chain),s=Er(i);return Pa(r,function(t){var n=e[t];i[t]=n,s&&(i.prototype[t]=function(){var t=this.__chain__;if(o||t){var e=i(this.__wrapped__);return(e.__actions__=rn(this.__actions__)).push({func:n,args:arguments,thisArg:i}),e.__chain__=t,e}return n.apply(i,Wa([this.value()],arguments))})}),i}function Bo(){}var No=yn(Va),zo=yn(Fa),Vo=yn($a);function Wo(t){return qn(t)?Ja(hi(t)):(e=t,function(t){return Kt(t,e)});var e}var Yo=xn(),Ho=xn(!0);function $o(){return[]}function Go(){return!1}var Xo=mn(function(t,e){return t+e},0),Uo=_n("ceil"),qo=mn(function(t,e){return t/e},1),Zo=_n("floor");var Ko,Jo=mn(function(t,e){return t*e},1),Qo=_n("round"),ts=mn(function(t,e){return t-e},0);return ft.after=function(t,e){if("function"!=typeof e)throw new A(ns);return t=Yr(t),function(){if(--t<1)return e.apply(this,arguments)}},ft.ary=nr,ft.assign=Ur,ft.assignIn=qr,ft.assignInWith=Zr,ft.assignWith=Kr,ft.at=Jr,ft.before=ir,ft.bind=rr,ft.bindAll=Ao,ft.bindKey=or,ft.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return br(t)?t:[t]},ft.chain=Vi,ft.chunk=function(t,e,n){e=(n?Un(t,e,n):e===es)?1:G(Yr(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var r=0,o=0,s=I(N(i/e));r<i;)s[o++]=ke(t,r,r+=e);return s},ft.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},ft.concat=function(){var t=arguments.length;if(!t)return[];for(var e=I(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Wa(br(n)?rn(n):[n],$t(e,1))},ft.cond=function(i){var r=null==i?0:i.length,e=Fn();return i=r?Va(i,function(t){if("function"!=typeof t[1])throw new A(ns);return[e(t[0]),t[1]]}):[],we(function(t){for(var e=-1;++e<r;){var n=i[e];if(La(n[0],this,t))return La(n[1],this,t)}})},ft.conforms=function(t){return e=Mt(t,1),n=so(e),function(t){return Ft(t,e,n)};var e,n},ft.constant=Co,ft.countBy=Hi,ft.create=function(t,e){var n=gt(t);return null==e?n:Dt(n,e)},ft.curry=function t(e,n,i){var r=En(e,8,es,es,es,es,es,n=i?es:n);return r.placeholder=t.placeholder,r},ft.curryRight=function t(e,n,i){var r=En(e,16,es,es,es,es,es,n=i?es:n);return r.placeholder=t.placeholder,r},ft.debounce=sr,ft.defaults=Qr,ft.defaultsDeep=to,ft.defer=ar,ft.delay=cr,ft.difference=gi,ft.differenceBy=vi,ft.differenceWith=mi,ft.drop=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,(e=n||e===es?1:Yr(e))<0?0:e,i):[]},ft.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,0,(e=i-(e=n||e===es?1:Yr(e)))<0?0:e):[]},ft.dropRightWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!0,!0):[]},ft.dropWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!0):[]},ft.fill=function(t,e,n,i){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Un(t,e,n)&&(n=0,i=r),function(t,e,n,i){var r=t.length;for((n=Yr(n))<0&&(n=r<-n?0:r+n),(i=i===es||r<i?r:Yr(i))<0&&(i+=r),i=i<n?0:Hr(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},ft.filter=function(t,e){return(br(t)?Ba:Ht)(t,Fn(e,3))},ft.flatMap=function(t,e){return $t(Ji(t,e),1)},ft.flatMapDeep=function(t,e){return $t(Ji(t,e),1/0)},ft.flatMapDepth=function(t,e,n){return n=n===es?1:Yr(n),$t(Ji(t,e),n)},ft.flatten=xi,ft.flattenDeep=function(t){return null!=t&&t.length?$t(t,1/0):[]},ft.flattenDepth=function(t,e){return null!=t&&t.length?$t(t,e=e===es?1:Yr(e)):[]},ft.flip=function(t){return En(t,512)},ft.flow=ko,ft.flowRight=Do,ft.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},ft.functions=function(t){return null==t?[]:Zt(t,so(t))},ft.functionsIn=function(t){return null==t?[]:Zt(t,ao(t))},ft.groupBy=qi,ft.initial=function(t){return null!=t&&t.length?ke(t,0,-1):[]},ft.intersection=ji,ft.intersectionBy=_i,ft.intersectionWith=wi,ft.invert=io,ft.invertBy=ro,ft.invokeMap=Zi,ft.iteratee=Ro,ft.keyBy=Ki,ft.keys=so,ft.keysIn=ao,ft.map=Ji,ft.mapKeys=function(t,i){var r={};return i=Fn(i,3),Ut(t,function(t,e,n){Lt(r,i(t,e,n),t)}),r},ft.mapValues=function(t,i){var r={};return i=Fn(i,3),Ut(t,function(t,e,n){Lt(r,e,i(t,e,n))}),r},ft.matches=function(t){return fe(Mt(t,1))},ft.matchesProperty=function(t,e){return ge(t,Mt(e,1))},ft.memoize=ur,ft.merge=co,ft.mergeWith=uo,ft.method=Po,ft.methodOf=Mo,ft.mixin=Fo,ft.negate=lr,ft.nthArg=function(e){return e=Yr(e),we(function(t){return me(t,e)})},ft.omit=lo,ft.omitBy=function(t,e){return ho(t,lr(Fn(e)))},ft.once=function(t){return ir(2,t)},ft.orderBy=function(t,e,n,i){return null==t?[]:(br(e)||(e=null==e?[]:[e]),br(n=i?es:n)||(n=null==n?[]:[n]),ye(t,e,n))},ft.over=No,ft.overArgs=pr,ft.overEvery=zo,ft.overSome=Vo,ft.partial=hr,ft.partialRight=dr,ft.partition=Qi,ft.pick=po,ft.pickBy=ho,ft.property=Wo,ft.propertyOf=function(e){return function(t){return null==e?es:Kt(e,t)}},ft.pull=Ei,ft.pullAll=Ti,ft.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?xe(t,e,Fn(n,2)):t},ft.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?xe(t,e,es,n):t},ft.pullAt=Ii,ft.range=Yo,ft.rangeRight=Ho,ft.rearg=fr,ft.reject=function(t,e){return(br(t)?Ba:Ht)(t,lr(Fn(e,3)))},ft.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=Fn(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return Oe(t,r),n},ft.rest=function(t,e){if("function"!=typeof t)throw new A(ns);return we(t,e=e===es?e:Yr(e))},ft.reverse=Ai,ft.sampleSize=function(t,e,n){return e=(n?Un(t,e,n):e===es)?1:Yr(e),(br(t)?Et:Ee)(t,e)},ft.set=function(t,e,n){return null==t?t:Te(t,e,n)},ft.setWith=function(t,e,n,i){return i="function"==typeof i?i:es,null==t?t:Te(t,e,n,i)},ft.shuffle=function(t){return(br(t)?Tt:Ce)(t)},ft.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Un(t,e,n)?(e=0,n=i):(e=null==e?0:Yr(e),n=n===es?i:Yr(n)),ke(t,e,n)):[]},ft.sortBy=tr,ft.sortedUniq=function(t){return t&&t.length?Pe(t):[]},ft.sortedUniqBy=function(t,e){return t&&t.length?Pe(t,Fn(e,2)):[]},ft.split=function(t,e,n){return n&&"number"!=typeof n&&Un(t,e,n)&&(e=n=es),(n=n===es?as:n>>>0)?(t=Xr(t))&&("string"==typeof e||null!=e&&!Rr(e))&&!(e=Fe(e))&&lc(t)?qe(mc(t),0,n):t.split(e,n):[]},ft.spread=function(i,r){if("function"!=typeof i)throw new A(ns);return r=null==r?0:G(Yr(r),0),we(function(t){var e=t[r],n=qe(t,0,r);return e&&Wa(n,e),La(i,this,n)})},ft.tail=function(t){var e=null==t?0:t.length;return e?ke(t,1,e):[]},ft.take=function(t,e,n){return t&&t.length?ke(t,0,(e=n||e===es?1:Yr(e))<0?0:e):[]},ft.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ke(t,(e=i-(e=n||e===es?1:Yr(e)))<0?0:e,i):[]},ft.takeRightWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3),!1,!0):[]},ft.takeWhile=function(t,e){return t&&t.length?Ve(t,Fn(e,3)):[]},ft.tap=function(t,e){return e(t),t},ft.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new A(ns);return Ar(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),sr(t,e,{leading:i,maxWait:e,trailing:r})},ft.thru=Wi,ft.toArray=Vr,ft.toPairs=fo,ft.toPairsIn=go,ft.toPath=function(t){return br(t)?Va(t,hi):Fr(t)?[t]:rn(pi(Xr(t)))},ft.toPlainObject=Gr,ft.transform=function(t,i,r){var e=br(t),n=e||_r(t)||Br(t);if(i=Fn(i,4),null==r){var o=t&&t.constructor;r=n?e?new o:[]:Ar(t)&&Er(o)?gt(E(t)):{}}return(n?Pa:Ut)(t,function(t,e,n){return i(r,t,e,n)}),r},ft.unary=function(t){return nr(t,1)},ft.union=Ci,ft.unionBy=ki,ft.unionWith=Di,ft.uniq=function(t){return t&&t.length?Be(t):[]},ft.uniqBy=function(t,e){return t&&t.length?Be(t,Fn(e,2)):[]},ft.uniqWith=function(t,e){return e="function"==typeof e?e:es,t&&t.length?Be(t,es,e):[]},ft.unset=function(t,e){return null==t||Ne(t,e)},ft.unzip=Li,ft.unzipWith=Ri,ft.update=function(t,e,n){return null==t?t:ze(t,e,Ge(n))},ft.updateWith=function(t,e,n,i){return i="function"==typeof i?i:es,null==t?t:ze(t,e,Ge(n),i)},ft.values=vo,ft.valuesIn=function(t){return null==t?[]:ic(t,ao(t))},ft.without=Pi,ft.words=To,ft.wrap=function(t,e){return hr(Ge(e),t)},ft.xor=Mi,ft.xorBy=Fi,ft.xorWith=Bi,ft.zip=Ni,ft.zipObject=function(t,e){return He(t||[],e||[],At)},ft.zipObjectDeep=function(t,e){return He(t||[],e||[],Te)},ft.zipWith=zi,ft.entries=fo,ft.entriesIn=go,ft.extend=qr,ft.extendWith=Zr,Fo(ft,ft),ft.add=Xo,ft.attempt=Io,ft.camelCase=mo,ft.capitalize=yo,ft.ceil=Uo,ft.clamp=function(t,e,n){return n===es&&(n=e,e=es),n!==es&&(n=(n=$r(n))==n?n:0),e!==es&&(e=(e=$r(e))==e?e:0),Pt($r(t),e,n)},ft.clone=function(t){return Mt(t,4)},ft.cloneDeep=function(t){return Mt(t,5)},ft.cloneDeepWith=function(t,e){return Mt(t,5,e="function"==typeof e?e:es)},ft.cloneWith=function(t,e){return Mt(t,4,e="function"==typeof e?e:es)},ft.conformsTo=function(t,e){return null==e||Ft(t,e,so(e))},ft.deburr=bo,ft.defaultTo=function(t,e){return null==t||t!=t?e:t},ft.divide=qo,ft.endsWith=function(t,e,n){t=Xr(t),e=Fe(e);var i=t.length,r=n=n===es?i:Pt(Yr(n),0,i);return 0<=(n-=e.length)&&t.slice(n,r)==e},ft.eq=gr,ft.escape=function(t){return(t=Xr(t))&&Ws.test(t)?t.replace(zs,cc):t},ft.escapeRegExp=function(t){return(t=Xr(t))&&Zs.test(t)?t.replace(qs,"\\$&"):t},ft.every=function(t,e,n){var i=br(t)?Fa:Wt;return n&&Un(t,e,n)&&(e=es),i(t,Fn(e,3))},ft.find=$i,ft.findIndex=yi,ft.findKey=function(t,e){return Ga(t,Fn(e,3),Ut)},ft.findLast=Gi,ft.findLastIndex=bi,ft.findLastKey=function(t,e){return Ga(t,Fn(e,3),qt)},ft.floor=Zo,ft.forEach=Xi,ft.forEachRight=Ui,ft.forIn=function(t,e){return null==t?t:Gt(t,Fn(e,3),ao)},ft.forInRight=function(t,e){return null==t?t:Xt(t,Fn(e,3),ao)},ft.forOwn=function(t,e){return t&&Ut(t,Fn(e,3))},ft.forOwnRight=function(t,e){return t&&qt(t,Fn(e,3))},ft.get=eo,ft.gt=vr,ft.gte=mr,ft.has=function(t,e){return null!=t&&Hn(t,e,ee)},ft.hasIn=no,ft.head=Oi,ft.identity=Lo,ft.includes=function(t,e,n,i){t=Or(t)?t:vo(t),n=n&&!i?Yr(n):0;var r=t.length;return n<0&&(n=G(r+n,0)),Mr(t)?n<=r&&-1<t.indexOf(e,n):!!r&&-1<Ua(t,e,n)},ft.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Yr(n);return r<0&&(r=G(i+r,0)),Ua(t,e,r)},ft.inRange=function(t,e,n){return e=Wr(e),n===es?(n=e,e=0):n=Wr(n),t=$r(t),(i=t)>=X(r=e,o=n)&&i<G(r,o);var i,r,o},ft.invoke=oo,ft.isArguments=yr,ft.isArray=br,ft.isArrayBuffer=xr,ft.isArrayLike=Or,ft.isArrayLikeObject=jr,ft.isBoolean=function(t){return!0===t||!1===t||Cr(t)&&Qt(t)==ps},ft.isBuffer=_r,ft.isDate=wr,ft.isElement=function(t){return Cr(t)&&1===t.nodeType&&!Lr(t)},ft.isEmpty=function(t){if(null==t)return!0;if(Or(t)&&(br(t)||"string"==typeof t||"function"==typeof t.splice||_r(t)||Br(t)||yr(t)))return!t.length;var e=Yn(t);if(e==vs||e==Os)return!t.size;if(Jn(t))return!le(t).length;for(var n in t)if(S.call(t,n))return!1;return!0},ft.isEqual=function(t,e){return se(t,e)},ft.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:es)?n(t,e):es;return i===es?se(t,e,es,n):!!i},ft.isError=Sr,ft.isFinite=function(t){return"number"==typeof t&&Y(t)},ft.isFunction=Er,ft.isInteger=Tr,ft.isLength=Ir,ft.isMap=kr,ft.isMatch=function(t,e){return t===e||ae(t,e,Nn(e))},ft.isMatchWith=function(t,e,n){return n="function"==typeof n?n:es,ae(t,e,Nn(e),n)},ft.isNaN=function(t){return Dr(t)&&t!=+t},ft.isNative=function(t){if(Kn(t))throw new r("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ce(t)},ft.isNil=function(t){return null==t},ft.isNull=function(t){return null===t},ft.isNumber=Dr,ft.isObject=Ar,ft.isObjectLike=Cr,ft.isPlainObject=Lr,ft.isRegExp=Rr,ft.isSafeInteger=function(t){return Tr(t)&&-os<=t&&t<=os},ft.isSet=Pr,ft.isString=Mr,ft.isSymbol=Fr,ft.isTypedArray=Br,ft.isUndefined=function(t){return t===es},ft.isWeakMap=function(t){return Cr(t)&&Yn(t)==ws},ft.isWeakSet=function(t){return Cr(t)&&"[object WeakSet]"==Qt(t)},ft.join=function(t,e){return null==t?"":H.call(t,e)},ft.kebabCase=xo,ft.last=Si,ft.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return n!==es&&(r=(r=Yr(n))<0?G(i+r,0):X(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):Xa(t,Za,r,!0)},ft.lowerCase=Oo,ft.lowerFirst=jo,ft.lt=Nr,ft.lte=zr,ft.max=function(t){return t&&t.length?Yt(t,Lo,te):es},ft.maxBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),te):es},ft.mean=function(t){return Ka(t,Lo)},ft.meanBy=function(t,e){return Ka(t,Fn(e,2))},ft.min=function(t){return t&&t.length?Yt(t,Lo,he):es},ft.minBy=function(t,e){return t&&t.length?Yt(t,Fn(e,2),he):es},ft.stubArray=$o,ft.stubFalse=Go,ft.stubObject=function(){return{}},ft.stubString=function(){return""},ft.stubTrue=function(){return!0},ft.multiply=Jo,ft.nth=function(t,e){return t&&t.length?me(t,Yr(e)):es},ft.noConflict=function(){return Sa._===this&&(Sa._=y),this},ft.noop=Bo,ft.now=er,ft.pad=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;if(!e||e<=i)return t;var r=(e-i)/2;return bn(z(r),n)+t+bn(N(r),n)},ft.padEnd=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;return e&&i<e?t+bn(e-i,n):t},ft.padStart=function(t,e,n){t=Xr(t);var i=(e=Yr(e))?vc(t):0;return e&&i<e?bn(e-i,n)+t:t},ft.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),q(Xr(t).replace(Js,""),e||0)},ft.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Un(t,e,n)&&(e=n=es),n===es&&("boolean"==typeof e?(n=e,e=es):"boolean"==typeof t&&(n=t,t=es)),t===es&&e===es?(t=0,e=1):(t=Wr(t),e===es?(e=t,t=0):e=Wr(e)),e<t){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Z();return X(t+r*(e-t+_a("1e-"+((r+"").length-1))),e)}return je(t,e)},ft.reduce=function(t,e,n){var i=br(t)?Ya:Qa,r=arguments.length<3;return i(t,Fn(e,4),n,r,zt)},ft.reduceRight=function(t,e,n){var i=br(t)?Ha:Qa,r=arguments.length<3;return i(t,Fn(e,4),n,r,Vt)},ft.repeat=function(t,e,n){return e=(n?Un(t,e,n):e===es)?1:Yr(e),_e(Xr(t),e)},ft.replace=function(){var t=arguments,e=Xr(t[0]);return t.length<3?e:e.replace(t[1],t[2])},ft.result=function(t,e,n){var i=-1,r=(e=Xe(e,t)).length;for(r||(r=1,t=es);++i<r;){var o=null==t?es:t[hi(e[i])];o===es&&(i=r,o=n),t=Er(o)?o.call(t):o}return t},ft.round=Qo,ft.runInContext=t,ft.sample=function(t){return(br(t)?St:Se)(t)},ft.size=function(t){if(null==t)return 0;if(Or(t))return Mr(t)?vc(t):t.length;var e=Yn(t);return e==vs||e==Os?t.size:le(t).length},ft.snakeCase=_o,ft.some=function(t,e,n){var i=br(t)?$a:De;return n&&Un(t,e,n)&&(e=es),i(t,Fn(e,3))},ft.sortedIndex=function(t,e){return Le(t,e)},ft.sortedIndexBy=function(t,e,n){return Re(t,e,Fn(n,2))},ft.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Le(t,e);if(i<n&&gr(t[i],e))return i}return-1},ft.sortedLastIndex=function(t,e){return Le(t,e,!0)},ft.sortedLastIndexBy=function(t,e,n){return Re(t,e,Fn(n,2),!0)},ft.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Le(t,e,!0)-1;if(gr(t[n],e))return n}return-1},ft.startCase=wo,ft.startsWith=function(t,e,n){return t=Xr(t),n=null==n?0:Pt(Yr(n),0,t.length),e=Fe(e),t.slice(n,n+e.length)==e},ft.subtract=ts,ft.sum=function(t){return t&&t.length?tc(t,Lo):0},ft.sumBy=function(t,e){return t&&t.length?tc(t,Fn(e,2)):0},ft.template=function(s,t,e){var n=ft.templateSettings;e&&Un(s,t,e)&&(t=es),s=Xr(s),t=Zr({},t,n,Tn);var a,c,i=Zr({},t.imports,n.imports,Tn),r=so(i),o=ic(i,r),u=0,l=t.interpolate||da,p="__p += '",h=m((t.escape||da).source+"|"+l.source+"|"+(l===$s?oa:da).source+"|"+(t.evaluate||da).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++xa+"]")+"\n";s.replace(h,function(t,e,n,i,r,o){return n||(n=i),p+=s.slice(u,o).replace(fa,uc),e&&(a=!0,p+="' +\n__e("+e+") +\n'"),r&&(c=!0,p+="';\n"+r+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=o+t.length,t}),p+="';\n";var f=t.variable;f||(p="with (obj) {\n"+p+"\n}\n"),p=(c?p.replace(Ms,""):p).replace(Fs,"$1").replace(Bs,"$1;"),p="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Io(function(){return v(r,d+"return "+p).apply(es,o)});if(g.source=p,Sr(g))throw g;return g},ft.times=function(t,e){if((t=Yr(t))<1||os<t)return[];var n=as,i=X(t,as);e=Fn(e),t-=as;for(var r=ec(i,e);++n<t;)e(n);return r},ft.toFinite=Wr,ft.toInteger=Yr,ft.toLength=Hr,ft.toLower=function(t){return Xr(t).toLowerCase()},ft.toNumber=$r,ft.toSafeInteger=function(t){return t?Pt(Yr(t),-os,os):0===t?t:0},ft.toString=Xr,ft.toUpper=function(t){return Xr(t).toUpperCase()},ft.trim=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Ks,"");if(!t||!(e=Fe(e)))return t;var i=mc(t),r=mc(e);return qe(i,oc(i,r),sc(i,r)+1).join("")},ft.trimEnd=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Qs,"");if(!t||!(e=Fe(e)))return t;var i=mc(t);return qe(i,0,sc(i,mc(e))+1).join("")},ft.trimStart=function(t,e,n){if((t=Xr(t))&&(n||e===es))return t.replace(Js,"");if(!t||!(e=Fe(e)))return t;var i=mc(t);return qe(i,oc(i,mc(e))).join("")},ft.truncate=function(t,e){var n=30,i="...";if(Ar(e)){var r="separator"in e?e.separator:r;n="length"in e?Yr(e.length):n,i="omission"in e?Fe(e.omission):i}var o=(t=Xr(t)).length;if(lc(t)){var s=mc(t);o=s.length}if(o<=n)return t;var a=n-vc(i);if(a<1)return i;var c=s?qe(s,0,a).join(""):t.slice(0,a);if(r===es)return c+i;if(s&&(a+=c.length-a),Rr(r)){if(t.slice(a).search(r)){var u,l=c;for(r.global||(r=m(r.source,Xr(sa.exec(r))+"g")),r.lastIndex=0;u=r.exec(l);)var p=u.index;c=c.slice(0,p===es?a:p)}}else if(t.indexOf(Fe(r),a)!=a){var h=c.lastIndexOf(r);-1<h&&(c=c.slice(0,h))}return c+i},ft.unescape=function(t){return(t=Xr(t))&&Vs.test(t)?t.replace(Ns,yc):t},ft.uniqueId=function(t){var e=++h;return Xr(t)+e},ft.upperCase=So,ft.upperFirst=Eo,ft.each=Xi,ft.eachRight=Ui,ft.first=Oi,Fo(ft,(Ko={},Ut(ft,function(t,e){S.call(ft.prototype,e)||(Ko[e]=t)}),Ko),{chain:!1}),ft.VERSION="4.17.10",Pa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ft[t].placeholder=ft}),Pa(["drop","take"],function(n,i){yt.prototype[n]=function(t){t=t===es?1:G(Yr(t),0);var e=this.__filtered__&&!i?new yt(this):this.clone();return e.__filtered__?e.__takeCount__=X(t,e.__takeCount__):e.__views__.push({size:X(t,as),type:n+(e.__dir__<0?"Right":"")}),e},yt.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Pa(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;yt.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Fn(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),Pa(["head","last"],function(t,e){var n="take"+(e?"Right":"");yt.prototype[t]=function(){return this[n](1).value()[0]}}),Pa(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");yt.prototype[t]=function(){return this.__filtered__?new yt(this):this[n](1)}}),yt.prototype.compact=function(){return this.filter(Lo)},yt.prototype.find=function(t){return this.filter(t).head()},yt.prototype.findLast=function(t){return this.reverse().find(t)},yt.prototype.invokeMap=we(function(e,n){return"function"==typeof e?new yt(this):this.map(function(t){return re(t,e,n)})}),yt.prototype.reject=function(t){return this.filter(lr(Fn(t)))},yt.prototype.slice=function(t,e){t=Yr(t);var n=this;return n.__filtered__&&(0<t||e<0)?new yt(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==es&&(n=(e=Yr(e))<0?n.dropRight(-e):n.take(e-t)),n)},yt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},yt.prototype.toArray=function(){return this.take(as)},Ut(yt.prototype,function(p,t){var h=/^(?:filter|find|map|reject)|While$/.test(t),d=/^(?:head|last)$/.test(t),f=ft[d?"take"+("last"==t?"Right":""):t],g=d||/^find/.test(t);f&&(ft.prototype[t]=function(){var t=this.__wrapped__,n=d?[1]:arguments,e=t instanceof yt,i=n[0],r=e||br(t),o=function(t){var e=f.apply(ft,Wa([t],n));return d&&s?e[0]:e};r&&h&&"function"==typeof i&&1!=i.length&&(e=r=!1);var s=this.__chain__,a=!!this.__actions__.length,c=g&&!s,u=e&&!a;if(!g&&r){t=u?t:new yt(this);var l=p.apply(t,n);return l.__actions__.push({func:Wi,args:[o],thisArg:es}),new mt(l,s)}return c&&u?p.apply(this,n):(l=this.thru(o),c?d?l.value()[0]:l.value():l)})}),Pa(["pop","push","shift","sort","splice","unshift"],function(t){var n=s[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ft.prototype[t]=function(){var e=arguments;if(r&&!this.__chain__){var t=this.value();return n.apply(br(t)?t:[],e)}return this[i](function(t){return n.apply(br(t)?t:[],e)})}}),Ut(yt.prototype,function(t,e){var n=ft[e];if(n){var i=n.name+"";(ot[i]||(ot[i]=[])).push({name:e,func:n})}}),ot[gn(es,2).name]=[{name:"wrapper",func:es}],yt.prototype.clone=function(){var t=new yt(this.__wrapped__);return t.__actions__=rn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rn(this.__views__),t},yt.prototype.reverse=function(){if(this.__filtered__){var t=new yt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},yt.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=br(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=X(e,t+s);break;case"takeRight":t=G(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,c=a-s,u=i?a:s-1,l=this.__iteratees__,p=l.length,h=0,d=X(c,this.__takeCount__);if(!n||!i&&r==c&&d==c)return We(t,this.__actions__);var f=[];t:for(;c--&&h<d;){for(var g=-1,v=t[u+=e];++g<p;){var m=l[g],y=m.iteratee,b=m.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue t;break t}}f[h++]=v}return f},ft.prototype.at=Yi,ft.prototype.chain=function(){return Vi(this)},ft.prototype.commit=function(){return new mt(this.value(),this.__chain__)},ft.prototype.next=function(){this.__values__===es&&(this.__values__=Vr(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?es:this.__values__[this.__index__++]}},ft.prototype.plant=function(t){for(var e,n=this;n instanceof vt;){var i=fi(n);i.__index__=0,i.__values__=es,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},ft.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof yt){var e=t;return this.__actions__.length&&(e=new yt(this)),(e=e.reverse()).__actions__.push({func:Wi,args:[Ai],thisArg:es}),new mt(e,this.__chain__)}return this.thru(Ai)},ft.prototype.toJSON=ft.prototype.valueOf=ft.prototype.value=function(){return We(this.__wrapped__,this.__actions__)},ft.prototype.first=ft.prototype.head,L&&(ft.prototype[L]=function(){return this}),ft}();Sa._=bc,(V=function(){return bc}.call(W,Y,W,z))===es||(z.exports=V)}).call(this)}).call(W,Y("./node_modules/webpack/buildin/global.js"),Y("./node_modules/webpack/buildin/module.js")(t))},"./node_modules/ieee754/index.js":function(t,e){e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,u=c>>1,l=-7,p=n?r-1:0,h=n?-1:1,d=t[e+p];for(p+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;0<l;o=256*o+t[e+p],p+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=i;0<l;s=256*s+t[e+p],p+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=u}return(d?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,c,u=8*o-r-1,l=(1<<u)-1,p=l>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),2<=(e+=1<=s+p?h/c:h*Math.pow(2,1-p))*c&&(s++,c/=2),l<=s+p?(a=0,s=l):1<=s+p?(a=(e*c-1)*Math.pow(2,r),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,r),s=0));8<=r;t[n+d]=255&a,d+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;0<u;t[n+d]=255&s,d+=f,s/=256,u-=8);t[n+d-f]|=128*g}},"./node_modules/isarray/index.js":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"./node_modules/rxjs/_esm5/operators/index.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function c(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.assign;var r,l={e:{}};function o(){try{return r.apply(this,arguments)}catch(t){return l.e=t,l}}function p(t){return r=t,o}function h(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function d(t){setTimeout(function(){throw t})}var f={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;d(t)},complete:function(){}},g=Array.isArray||function(t){return t&&"number"==typeof t.length};function v(t){return null!=t&&"object"==typeof t}var m=function(n){function i(t){var e=n.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"")||this;return e.errors=t,e.name="UnsubscriptionError",Object.setPrototypeOf(e,i.prototype),e}return c(i,n),i}(Error),y=function(){function i(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var t;return i.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,i=this._parents,r=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=i?i.length:0;n;)n.remove(this),n=++s<a&&i[s]||null;if(h(r))p(r).call(this)===l&&(e=!0,t=t||(l.e instanceof m?b(l.e.errors):[l.e]));if(g(o))for(s=-1,a=o.length;++s<a;){var c=o[s];if(v(c))if(p(c.unsubscribe).call(c)===l){e=!0,t=t||[];var u=l.e;u instanceof m?t=t.concat(b(u.errors)):t.push(u)}}if(e)throw new m(t)}},i.prototype.add=function(t){if(!t||t===i.EMPTY)return i.EMPTY;if(t===this)return this;var e=t;switch(typeof t){case"function":e=new i(t);case"object":if(e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if("function"!=typeof e._addParent){var n=e;(e=new i)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(e),e._addParent(this),e},i.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},i.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},i.EMPTY=((t=new i).closed=!0,t),i}();function b(t){return t.reduce(function(t,e){return t.concat(e instanceof m?e.errors:e)},[])}var a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",x=function(s){function r(t,e,n){var i,r=s.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=f;break;case 1:if(!t){r.destination=f;break}if("object"==typeof t){if((i=t)instanceof x||"syncErrorThrowable"in i&&i[a]){var o=t[a]();r.syncErrorThrowable=o.syncErrorThrowable,(r.destination=o).add(r)}else r.syncErrorThrowable=!0,r.destination=new O(r,t);break}default:r.syncErrorThrowable=!0,r.destination=new O(r,t,e,n)}return r}return c(r,s),r.prototype[a]=function(){return this},r.create=function(t,e,n){var i=new r(t,e,n);return i.syncErrorThrowable=!1,i},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},r}(y),O=function(a){function t(t,e,n,i){var r,o=a.call(this)||this;o._parentSubscriber=t;var s=o;return h(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==f&&(h((s=Object.create(e)).unsubscribe)&&o.add(s.unsubscribe.bind(s)),s.unsubscribe=o.unsubscribe.bind(o))),o._context=s,o._next=r,o._error=n,o._complete=i,o}return c(t,a),t.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},t.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):d(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;d(t)}}},t.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;d(t)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0):(d(t),!0)}return!1},t.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},t}(x);var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(x),_=function(r){function t(t,e,n){var i=r.call(this)||this;return i.parent=t,i.outerValue=e,i.outerIndex=n,i.index=0,i}return c(t,r),t.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},t.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(x);var w="function"==typeof Symbol&&Symbol.observable||"@@observable";function S(){}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return T(t)}function T(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)}:S}var I=function(){function n(t){this._isScalar=!1,t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,n){var i=this.operator,r=function(t,e,n){if(t){if(t instanceof x)return t;if(t[a])return t[a]()}return t||e||n?new x(t,e,n):new x(f)}(t,e,n);if(i?i.call(r,this.source):r.add(this.source||!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),u.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),e.error(t)}},n.prototype.forEach=function(i,t){var r=this;return new(t=A(t))(function(t,e){var n;n=r.subscribe(function(t){try{i(t)}catch(t){e(t),n&&n.unsubscribe()}},e,t)})},n.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},n.prototype[w]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:T(t)(this)},n.prototype.toPromise=function(t){var i=this;return new(t=A(t))(function(t,e){var n;i.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},n.create=function(t){return new n(t)},n}();function A(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var C=function(i){return function(t){for(var e=0,n=i.length;e<n&&!t.closed;e++)t.next(i[e]);t.closed||t.complete()}},k=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,d),e}};function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var L=D(),R=function(i){return function(t){for(var e=i[L]();;){var n=e.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof e.return&&t.add(function(){e.return&&e.return()}),t}},P=function(n){return function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}},M=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function F(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var B=function(e){if(e instanceof I)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(M(e))return C(e);if(F(e))return k(e);if(e&&"function"==typeof e[L])return R(e);if(e&&"function"==typeof e[w])return P(e);var t=v(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function N(t,e,n,i){var r=new _(t,n,i);return B(e)(r)}function z(e){return function(t){return t.lift(new V(e))}}var V=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new W(t,this.durationSelector))},t}(),W=function(i){function t(t,e){var n=i.call(this,t)||this;return n.durationSelector=e,n.hasValue=!1,n}return c(t,i),t.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=p(this.durationSelector)(t);if(e===l)this.destination.error(l.e);else{var n=N(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},t.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(j),Y=function(i){function t(t,e){var n=i.call(this,t,e)||this;return n.scheduler=t,n.work=e,n.pending=!1,n}return c(t,i),t.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},t.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},t.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},t}(function(n){function t(t,e){return n.call(this)||this}return c(t,n),t.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},t}(y)),H=function(){function n(t,e){void 0===e&&(e=n.now),this.SchedulerAction=t,this.now=e}return n.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},n.now=Date.now?Date.now:function(){return+new Date},n}(),$=function(i){function r(t,e){void 0===e&&(e=H.now);var n=i.call(this,t,function(){return r.delegate&&r.delegate!==n?r.delegate.now():e()})||this;return n.actions=[],n.active=!1,n.scheduled=void 0,n}return c(r,i),r.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):i.prototype.schedule.call(this,t,e,n)},r.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},r}(H),G=new $(Y);function X(t){return!g(t)&&0<=t-parseFloat(t)+1}function U(t){return t&&"function"==typeof t.schedule}function q(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Z(t,e){return void 0===e&&(e=G),z(function(){return function(n,t,i){void 0===n&&(n=0);var r=-1;return X(t)?r=Number(t)<1?1:Number(t):U(t)&&(i=t),U(i)||(i=G),new I(function(t){var e=X(n)?n:+n-i.now();return i.schedule(q,e,{index:0,period:r,subscriber:t})})}(t,e)})}function K(e){return function(t){return t.lift(new J(e))}}var J=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Q(t,this.closingNotifier))},t}(),Q=function(i){function t(t,e){var n=i.call(this,t)||this;return n.buffer=[],n.add(N(n,e)),n}return c(t,i),t.prototype._next=function(t){this.buffer.push(t)},t.prototype.notifyNext=function(t,e,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(j);function tt(e,n){return void 0===n&&(n=null),function(t){return t.lift(new et(e,n))}}var et=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?it:nt}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),nt=function(i){function t(t,e){var n=i.call(this,t)||this;return n.bufferSize=e,n.buffer=[],n}return c(t,i),t.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;0<t.length&&this.destination.next(t),i.prototype._complete.call(this)},t}(x),it=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.bufferSize=e,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return c(t,r),t.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var s=i[o];s.push(t),s.length===e&&(i.splice(o,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,e=this.destination;0<t.length;){var n=t.shift();0<n.length&&e.next(n)}r.prototype._complete.call(this)},t}(x);function rt(e){var t=arguments.length,n=G;U(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;2<=t&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return 3<=t&&(r=arguments[2]),function(t){return t.lift(new ot(e,i,r,n))}}var ot=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new at(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),st=function(){return function(){this.buffer=[]}}(),at=function(l){function t(t,e,n,i,r){var o=l.call(this,t)||this;o.bufferTimeSpan=e,o.bufferCreationInterval=n,o.maxBufferSize=i,o.scheduler=r,o.contexts=[];var s=o.openContext();if(o.timespanOnly=null==n||n<0,o.timespanOnly){var a={subscriber:o,context:s,bufferTimeSpan:e};o.add(s.closeAction=r.schedule(ct,e,a))}else{var c={subscriber:o,context:s},u={bufferTimeSpan:e,bufferCreationInterval:n,subscriber:o,scheduler:r};o.add(s.closeAction=r.schedule(lt,e,c)),o.add(r.schedule(ut,n,u))}return o}return c(t,l),t.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},t.prototype._error=function(t){this.contexts.length=0,l.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,e=this.destination;0<t.length;){var n=t.shift();e.next(n.buffer)}l.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(ct,n,i))}},t.prototype.openContext=function(){var t=new st;return this.contexts.push(t),t},t.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;0<=(e?e.indexOf(t):-1)&&e.splice(e.indexOf(t),1)},t}(x);function ct(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function ut(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(lt,n,{subscriber:i,context:o})),this.schedule(t,e))}function lt(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function pt(e,n){return function(t){return t.lift(new ht(e,n))}}var ht=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.openings,this.closingSelector))},t}(),dt=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.openings=e,i.closingSelector=n,i.contexts=[],i.add(N(i,e)),i}return c(t,r),t.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},t.prototype._error=function(t){for(var e=this.contexts;0<e.length;){var n=e.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;0<t.length;){var e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,r.prototype._complete.call(this)},t.prototype.notifyNext=function(t,e,n,i,r){t?this.closeBuffer(t):this.openBuffer(e)},t.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},t.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},t.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},t.prototype.trySubscribe=function(t){var e=this.contexts,n=new y,i={buffer:[],subscription:n};e.push(i);var r=N(this,t,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},t}(j);function ft(e){return function(t){return t.lift(new gt(e))}}var gt=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.closingSelector))},t}(),vt=function(i){function t(t,e){var n=i.call(this,t)||this;return n.closingSelector=e,n.subscribing=!1,n.openBuffer(),n}return c(t,i),t.prototype._next=function(t){this.buffer.push(t)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),i.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(t,e,n,i,r){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=p(this.closingSelector)();n===l?this.error(l.e):(t=new y,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(N(this,n)),this.subscribing=!1)},t}(j);function mt(i){return function(t){var e=new yt(i),n=t.lift(e);return e.caught=n}}var yt=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bt(t,this.selector,this.caught))},t}(),bt=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.selector=e,i.caught=n,i}return c(t,r),t.prototype.error=function(t){if(!this.isStopped){var e=void 0;try{e=this.selector(t,this.caught)}catch(t){return void r.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(N(this,e))}},t}(j);function xt(i,r){return new I(r?function(t){var e=new y,n=0;return e.add(r.schedule(function(){n!==i.length?(t.next(i[n++]),t.closed||e.add(this.schedule())):t.complete()})),e}:C(i))}var Ot={};var jt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new _t(t,this.resultSelector))},t}(),_t=function(i){function t(t,e){var n=i.call(this,t)||this;return n.resultSelector=e,n.active=0,n.values=[],n.observables=[],n}return c(t,i),t.prototype._next=function(t){this.values.push(Ot),this.observables.push(t)},t.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(N(this,i,i,n))}}},t.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,s=o[n],a=this.toRespond?s===Ot?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t}(j);function wt(e){return function(t){return t.lift(new jt(e))}}function St(t,e){if(!e)return t instanceof I?t:new I(B(t));if(null!=t){if((a=t)&&"function"==typeof a[w])return o=t,new I((s=e)?function(e){var n=new y;return n.add(s.schedule(function(){var t=o[w]();n.add(t.subscribe({next:function(t){n.add(s.schedule(function(){return e.next(t)}))},error:function(t){n.add(s.schedule(function(){return e.error(t)}))},complete:function(){n.add(s.schedule(function(){return e.complete()}))}}))})),n}:P(o));if(F(t))return i=t,new I((r=e)?function(e){var n=new y;return n.add(r.schedule(function(){return i.then(function(t){n.add(r.schedule(function(){e.next(t),n.add(r.schedule(function(){return e.complete()}))}))},function(t){n.add(r.schedule(function(){return e.error(t)}))})})),n}:k(i));if(M(t))return xt(t,e);if((n=t)&&"function"==typeof n[L]||"string"==typeof t)return function(e,n){if(!e)throw new Error("Iterable cannot be null");return new I(n?function(i){var r,t=new y;return t.add(function(){r&&"function"==typeof r.return&&r.return()}),t.add(n.schedule(function(){r=e[L](),t.add(n.schedule(function(){if(!i.closed){var t,e;try{var n=r.next();t=n.value,e=n.done}catch(t){return void i.error(t)}e?i.complete():(i.next(t),this.schedule())}}))})),t}:R(e))}(t,e)}var n,i,r,o,s,a;throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&g(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(St([t].concat(e)),new jt(n))}}var Tt=new I(function(t){return t.complete()});function It(t){return t?(e=t,new I(function(t){return e.schedule(function(){return t.complete()})})):Tt;var e}function At(e){var t=new I(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Ct(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(U(n)?t.pop():n=void 0,t.length){case 0:return It(n);case 1:return n?xt(t,n):At(t[0]);default:return xt(t,n)}}function kt(e,n){return function(t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new Dt(e,n))}}var Dt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.project,this.thisArg))},t}(),Lt=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.project=e,i.count=0,i.thisArg=n||i,i}return c(t,r),t.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t}(x);function Rt(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?function(t){return t.pipe(Rt(function(n,i){return St(e(n,i)).pipe(kt(function(t,e){return r(n,t,i,e)}))},n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new Pt(e,n))})}var Pt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Mt(t,this.project,this.concurrent))},t}(),Mt=function(r){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=e,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return c(t,r),t.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},t.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},t.prototype._innerSub=function(t,e,n){this.add(N(this,t,e,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},t.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,0<e.length?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(j);function Ft(t){return t}function Bt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Rt(Ft,t)}function Nt(){return Bt(1)}function zt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&U(t[1])?St(t[0]):Nt()(Ct.apply(void 0,t))}function Vt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(zt.apply(void 0,[t].concat(e)))}}function Wt(t,e){return Rt(t,e,1)}function Yt(t,e){return Wt(function(){return t},e)}function Ht(e){return function(t){return t.lift(new $t(e,t))}}var $t=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.predicate,this.source))},t}(),Gt=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.predicate=e,i.source=n,i.count=0,i.index=0,i}return c(t,r),t.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},t.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(x);function Xt(e){return function(t){return t.lift(new Ut(e))}}var Ut=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.durationSelector))},t}(),qt=function(i){function t(t,e){var n=i.call(this,t)||this;return n.durationSelector=e,n.hasValue=!1,n.durationSubscription=null,n}return c(t,i),t.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=N(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=null,e.unsubscribe(),this.remove(e)),this.value=null,this.hasValue=!1,i.prototype._next.call(this,t)}},t}(j);function Zt(e,n){return void 0===n&&(n=G),function(t){return t.lift(new Kt(e,n))}}var Kt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.dueTime,this.scheduler))},t}(),Jt=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.dueTime=e,i.scheduler=n,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return c(t,r),t.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Qt,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},t.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},t}(x);function Qt(t){t.debouncedNext()}function te(e){return void 0===e&&(e=null),function(t){return t.lift(new ee(e))}}var ee=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new ne(t,this.defaultValue))},t}(),ne=function(i){function t(t,e){var n=i.call(this,t)||this;return n.defaultValue=e,n.isEmpty=!0,n}return c(t,i),t.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x);function ie(t){return t instanceof Date&&!isNaN(+t)}function re(e,n){return new I(n?function(t){return n.schedule(oe,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function oe(t){var e=t.error;t.subscriber.error(e)}var se=function(){function e(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return e.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},e.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},e.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Ct(this.value);case"E":return re(this.error);case"C":return It()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function ae(t,e){void 0===e&&(e=G);var n=ie(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ce(n,e))}}var ce=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ue(t,this.delay,this.scheduler))},t}(),ue=function(r){function e(t,e,n){var i=r.call(this,t)||this;return i.delay=e,i.scheduler=n,i.queue=[],i.active=!1,i.errored=!1,i}return c(e,r),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;0<n.length&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(0<n.length){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new le(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(se.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(se.createComplete())},e}(x),le=function(){return function(t,e){this.time=t,this.notification=e}}();function pe(e,n){return n?function(t){return new fe(t,n).lift(new he(e))}:function(t){return t.lift(new he(e))}}var he=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.delayDurationSelector))},t}(),de=function(i){function t(t,e){var n=i.call(this,t)||this;return n.delayDurationSelector=e,n.completed=!1,n.delayNotifierSubscriptions=[],n.values=[],n}return c(t,i),t.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},t.prototype.notifyError=function(t,e){this._error(t)},t.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},t.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete()},t.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},t.prototype.tryDelay=function(t,e){var n=N(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(j),fe=function(i){function t(t,e){var n=i.call(this)||this;return n.source=t,n.subscriptionDelay=e,n}return c(t,i),t.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new ge(t,this.source))},t}(I),ge=function(i){function t(t,e){var n=i.call(this)||this;return n.parent=t,n.source=e,n.sourceSubscribed=!1,n}return c(t,i),t.prototype._next=function(t){this.subscribeToSource()},t.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},t.prototype._complete=function(){this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(x);function ve(){return function(t){return t.lift(new me)}}var me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ye(t))},t}(),ye=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype._next=function(t){t.observe(this.destination)},t}(x);function be(e,n){return function(t){return t.lift(new xe(e,n))}}var xe=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Oe(t,this.keySelector,this.flushes))},t}(),Oe=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.keySelector=e,i.values=new Set,n&&i.add(N(i,n)),i}return c(t,r),t.prototype.notifyNext=function(t,e,n,i,r){this.values.clear()},t.prototype.notifyError=function(t,e){this._error(t)},t.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},t.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},t.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},t}(j);function je(e,n){return function(t){return t.lift(new _e(e,n))}}var _e=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.compare,this.keySelector))},t}(),we=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof e&&(i.compare=e),i}return c(t,r),t.prototype.compare=function(t,e){return t===e},t.prototype._next=function(t){var e=t;if(this.keySelector&&(e=p(this.keySelector)(t))===l)return this.destination.error(l.e);var n=!1;if(this.hasKey){if((n=p(this.compare)(this.key,e))===l)return this.destination.error(l.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},t}(x);function Se(n,i){return je(function(t,e){return i?i(t[n],e[n]):t[n]===e[n]})}var Ee=function(e){function n(){var t=e.call(this,"argument out of range")||this;return t.name="ArgumentOutOfRangeError",Object.setPrototypeOf(t,n.prototype),t}return c(n,e),n}(Error);function Te(e,n){return function(t){return t.lift(new Ie(e,n))}}var Ie=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ae(t,this.predicate,this.thisArg))},t}(),Ae=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.predicate=e,i.thisArg=n,i.count=0,i}return c(t,r),t.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},t}(x);function Ce(e,n,i){return function(t){return t.lift(new ke(e,n,i))}}var ke=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new De(t,this.nextOrObserver,this.error,this.complete))},t}(),De=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r._tapNext=S,r._tapError=S,r._tapComplete=S,r._tapError=n||S,r._tapComplete=i||S,h(e)?(r._context=r)._tapNext=e:e&&(r._context=e,r._tapNext=e.next||S,r._tapError=e.error||S,r._tapComplete=e.complete||S),r}return c(t,o),t.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},t.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},t}(x),Le=function(e){function n(){var t=e.call(this,"no elements in sequence")||this;return t.name="EmptyError",Object.setPrototypeOf(t,n.prototype),t}return c(n,e),n}(Error),Re=function(t){return void 0===t&&(t=Pe),Ce({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Pe(){return new Le}function Me(e){return function(t){return 0===e?It():t.lift(new Fe(e))}}var Fe=function(){function t(t){if(this.total=t,this.total<0)throw new Ee}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.total))},t}(),Be=function(i){function t(t,e){var n=i.call(this,t)||this;return n.total=e,n.count=0,n}return c(t,i),t.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},t}(x);function Ne(n,e){if(n<0)throw new Ee;var i=2<=arguments.length;return function(t){return t.pipe(Te(function(t,e){return e===n}),Me(1),i?te(e):Re(function(){return new Ee}))}}function ze(e,n){return function(t){return t.lift(new Ve(e,n,t))}}var Ve=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new We(t,this.predicate,this.thisArg,this.source))},t}(),We=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.predicate=e,r.thisArg=n,r.source=i,r.index=0,r.thisArg=n||r,r}return c(t,o),t.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},t.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(x);function Ye(){return function(t){return t.lift(new He)}}var He=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new $e(t))},t}(),$e=function(n){function t(t){var e=n.call(this,t)||this;return e.hasCompleted=!1,e.hasSubscription=!1,e}return c(t,n),t.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(N(this,t)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(j);function Ge(e,r){return r?function(t){return t.pipe(Ge(function(n,i){return St(e(n,i)).pipe(kt(function(t,e){return r(n,t,i,e)}))}))}:function(t){return t.lift(new Xe(e))}}var Xe=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t,this.project))},t}(),Ue=function(i){function t(t,e){var n=i.call(this,t)||this;return n.project=e,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return c(t,i),t.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},t.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var i=this.project(t,e);this.hasSubscription=!0,this.add(N(this,i,t,e))}catch(t){n.error(t)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},t.prototype.notifyError=function(t){this.destination.error(t)},t.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(j);function qe(e,n,i){return void 0===n&&(n=Number.POSITIVE_INFINITY),void 0===i&&(i=void 0),n=(n||0)<1?Number.POSITIVE_INFINITY:n,function(t){return t.lift(new Ze(e,n,i))}}var Ze=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Ke(t,this.project,this.concurrent,this.scheduler))},t}(),Ke=function(o){function s(t,e,n,i){var r=o.call(this,t)||this;return r.project=e,r.concurrent=n,r.scheduler=i,r.index=0,r.active=0,r.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(r.buffer=[]),r}return c(s,o),s.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,r=t.index;e.subscribeToProjection(n,i,r)},s.prototype._next=function(t){var e=this.destination;if(e.closed)this._complete();else{var n=this.index++;if(this.active<this.concurrent){e.next(t);var i=p(this.project)(t,n);if(i===l)e.error(l.e);else if(this.scheduler){var r={subscriber:this,result:i,value:t,index:n};this.add(this.scheduler.schedule(s.dispatch,0,r))}else this.subscribeToProjection(i,t,n)}else this.buffer.push(t)}},s.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(N(this,t,e,n))},s.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},s.prototype.notifyNext=function(t,e,n,i,r){this._next(e)},s.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&0<e.length&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},s}(j);function Je(e){return function(t){return t.lift(new Qe(e))}}var Qe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(i){function t(t,e){var n=i.call(this,t)||this;return n.add(new y(e)),n}return c(t,i),t}(x);function en(e,n){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(t){return t.lift(new nn(e,t,!1,n))}}var nn=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),rn=function(s){function t(t,e,n,i,r){var o=s.call(this,t)||this;return o.predicate=e,o.source=n,o.yieldIndex=i,o.thisArg=r,o.index=0,o}return c(t,s),t.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},t.prototype._next=function(t){var e=this.predicate,n=this.thisArg,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(x);function on(e,n){return function(t){return t.lift(new nn(e,t,!0,n))}}function sn(i,t){var e=2<=arguments.length;return function(n){return n.pipe(i?Te(function(t,e){return i(t,e,n)}):Ft,Me(1),e?te(t):Re(function(){return new Le}))}}var an=function(e){function n(){var t=e.call(this,"object unsubscribed")||this;return t.name="ObjectUnsubscribedError",Object.setPrototypeOf(t,n.prototype),t}return c(n,e),n}(Error),cn=function(i){function t(t,e){var n=i.call(this)||this;return n.subject=t,n.subscriber=e,n.closed=!1,n}return c(t,i),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},t}(y),un=function(n){function t(t){var e=n.call(this,t)||this;return e.destination=t,e}return c(t,n),t}(x),ln=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c(t,e),t.prototype[a]=function(){return new un(this)},t.prototype.lift=function(t){var e=new pn(this,this);return e.operator=t,e},t.prototype.next=function(t){if(this.closed)throw new an;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},t.prototype.error=function(t){if(this.closed)throw new an;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new an;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new an;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(t){if(this.closed)throw new an;return this.hasError?(t.error(this.thrownError),y.EMPTY):this.isStopped?(t.complete(),y.EMPTY):(this.observers.push(t),new cn(this,t))},t.prototype.asObservable=function(){var t=new I;return t.source=this,t},t.create=function(t,e){return new pn(t,e)},t}(I),pn=function(i){function t(t,e){var n=i.call(this)||this;return n.destination=t,n.source=e,n}return c(t,i),t.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},t.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},t.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},t.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):y.EMPTY},t}(ln);function hn(e,n,i,r){return function(t){return t.lift(new dn(e,n,i,r))}}var dn=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new fn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),fn=function(s){function t(t,e,n,i,r){var o=s.call(this,t)||this;return o.keySelector=e,o.elementSelector=n,o.durationSelector=i,o.subjectSelector=r,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return c(t,s),t.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},t.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new ln,n.set(e,r);var o=new vn(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new vn(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new gn(e,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(n){var t=this.groups;t&&(t.forEach(function(t,e){t.error(n)}),t.clear()),this.destination.error(n)},t.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},t.prototype.removeGroup=function(t){this.groups.delete(t)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&s.prototype.unsubscribe.call(this))},t}(x),gn=function(r){function t(t,e,n){var i=r.call(this,e)||this;return i.key=t,i.group=e,i.parent=n,i}return c(t,r),t.prototype._next=function(t){this.complete()},t.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},t}(x),vn=function(r){function t(t,e,n){var i=r.call(this)||this;return i.key=t,i.groupSubject=e,i.refCountSubscription=n,i}return c(t,r),t.prototype._subscribe=function(t){var e=new y,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new mn(n)),e.add(i.subscribe(t)),e},t}(I),mn=function(n){function t(t){var e=n.call(this)||this;return(e.parent=t).count++,e}return c(t,n),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(n.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(y);function yn(){return function(t){return t.lift(new bn)}}var bn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xn(t))},t}(),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype._next=function(t){},e}(x);function On(){return function(t){return t.lift(new jn)}}var jn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new _n(t))},t}(),_n=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},t.prototype._next=function(t){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(x);function wn(e){return function(t){return 0===e?It():t.lift(new Sn(e))}}var Sn=function(){function t(t){if(this.total=t,this.total<0)throw new Ee}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.total))},t}(),En=function(i){function t(t,e){var n=i.call(this,t)||this;return n.total=e,n.ring=new Array,n.count=0,n}return c(t,i),t.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t},t.prototype._complete=function(){var t=this.destination,e=this.count;if(0<e)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()},t}(x);function Tn(i,t){var e=2<=arguments.length;return function(n){return n.pipe(i?Te(function(t,e){return i(t,e,n)}):Ft,wn(1),e?te(t):Re(function(){return new Le}))}}function In(e){return function(t){return t.lift(new An(e))}}var An=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Cn(t,this.value))},t}(),Cn=function(i){function t(t,e){var n=i.call(this,t)||this;return n.value=e,n}return c(t,i),t.prototype._next=function(t){this.destination.next(this.value)},t}(x);function kn(){return function(t){return t.lift(new Dn)}}var Dn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ln(t))},t}(),Ln=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype._next=function(t){this.destination.next(se.createNext(t))},t.prototype._error=function(t){var e=this.destination;e.next(se.createError(t)),e.complete()},t.prototype._complete=function(){var t=this.destination;t.next(se.createComplete()),t.complete()},t}(x);function Rn(e,n){var i=!1;return 2<=arguments.length&&(i=!0),function(t){return t.lift(new Pn(e,n,i))}}var Pn=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Mn=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.accumulator=e,r._seed=n,r.hasSeed=i,r.index=0,r}return c(t,o),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),t.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},t.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},t}(x);function Fn(i,e){return 2<=arguments.length?function(t){return E(Rn(i,e),wn(1),te(e))(t)}:function(t){return E(Rn(function(t,e,n){return i(t,e,n+1)}),wn(1))(t)}}function Bn(n){return Fn("function"==typeof n?function(t,e){return 0<n(t,e)?t:e}:function(t,e){return e<t?t:e})}function Nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,i=null,r=t[t.length-1];return U(r)?(i=t.pop(),1<t.length&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof I?t[0]:Bt(n)(xt(t,i))}.apply(void 0,[t].concat(e)))}}function zn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Rt(function(){return t},e,n):("number"==typeof e&&(n=e),Rt(function(){return t},n))}function Vn(e,n,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),function(t){return t.lift(new Wn(e,n,i))}}var Wn=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Yn(t,this.accumulator,this.seed,this.concurrent))},t}(),Yn=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.accumulator=e,r.acc=n,r.concurrent=i,r.hasValue=!1,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return c(t,o),t.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=p(this.accumulator)(this.acc,t),i=this.destination;n===l?i.error(l.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},t.prototype._innerSub=function(t,e,n){this.add(N(this,t,e,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t.prototype.notifyNext=function(t,e,n,i,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},t.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,0<e.length?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(j);function Hn(n){return Fn("function"==typeof n?function(t,e){return n(t,e)<0?t:e}:function(t,e){return t<e?t:e})}function $n(){return function(t){return t.lift(new Gn(t))}}var Gn=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new Xn(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),Xn=function(i){function t(t,e){var n=i.call(this,t)||this;return n.connectable=e,n}return c(t,i),t.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,1<e)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(x),Un=function(i){function t(t,e){var n=i.call(this)||this;return n.source=t,n.subjectFactory=e,n._refCount=0,n._isComplete=!1,n}return c(t,i),t.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},t.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new y).add(this.source.subscribe(new Zn(this.getSubject(),this))),t.closed?(this._connection=null,t=y.EMPTY):this._connection=t),t},t.prototype.refCount=function(){return $n()(this)},t}(I).prototype,qn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Un._subscribe},_isComplete:{value:Un._isComplete,writable:!0},getSubject:{value:Un.getSubject},connect:{value:Un.connect},refCount:{value:Un.refCount}},Zn=function(i){function t(t,e){var n=i.call(this,t)||this;return n.connectable=e,n}return c(t,i),t.prototype._error=function(t){this._unsubscribe(),i.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),i.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},t}(un);function Kn(i,r){return function(t){var e;if(e="function"==typeof i?i:function(){return i},"function"==typeof r)return t.lift(new Jn(e,r));var n=Object.create(t,qn);return n.source=t,n.subjectFactory=e,n}}var Jn=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r},t}();function Qn(e,n){return void 0===n&&(n=0),function(t){return t.lift(new ti(e,n))}}var ti=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.scheduler,this.delay))},t}(),ei=function(r){function e(t,e,n){void 0===n&&(n=0);var i=r.call(this,t)||this;return i.scheduler=e,i.delay=n,i}return c(e,r),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new ni(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(se.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(se.createError(t))},e.prototype._complete=function(){this.scheduleMessage(se.createComplete())},e}(x),ni=function(){return function(t,e){this.notification=t,this.destination=e}}();function ii(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&g(e[0])&&(e=e[0]),function(t){return t.lift(new ri(e))}}var ri=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new oi(t,this.nextSources))},t}(),oi=function(i){function t(t,e){var n=i.call(this,t)||this;return n.destination=t,n.nextSources=e,n}return c(t,i),t.prototype.notifyError=function(t,e){this.subscribeToNextSource()},t.prototype.notifyComplete=function(t){this.subscribeToNextSource()},t.prototype._error=function(t){this.subscribeToNextSource()},t.prototype._complete=function(){this.subscribeToNextSource()},t.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(N(this,t)):this.destination.complete()},t}(j);function si(){return function(t){return t.lift(new ai)}}var ai=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ci(t))},t}(),ci=function(n){function t(t){var e=n.call(this,t)||this;return e.hasPrev=!1,e}return c(t,n),t.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},t}(x);function ui(e,n){return function(t){return[Te(e,n)(t),Te(function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}(e,n))(t)]}}function li(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return kt((r=e,o=n,function(t){for(var e=t,n=0;n<o;n++){var i=e[r[n]];if(void 0===i)return;e=i}return e}))(t);var r,o}}function pi(t){return t?Kn(function(){return new ln},t):Kn(new ln)}var hi=function(n){function t(t){var e=n.call(this)||this;return e._value=t,e}return c(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var e=n.prototype._subscribe.call(this,t);return e&&!e.closed&&t.next(this._value),e},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new an;return this._value},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(ln);function di(e){return function(t){return Kn(new hi(e))(t)}}var fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return c(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),y.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),y.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(ln);function gi(){return function(t){return Kn(new fi)(t)}}var vi=function(i){function t(t,e){var n=i.call(this,t,e)||this;return n.scheduler=t,n.work=e,n}return c(t,i),t.prototype.schedule=function(t,e){return void 0===e&&(e=0),0<e?i.prototype.schedule.call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,e){return 0<e||this.closed?i.prototype.execute.call(this,t,e):this._execute(t,e)},t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&0<n||null===n&&0<this.delay?i.prototype.requestAsyncId.call(this,t,e,n):t.flush(this)},t}(Y),mi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}($))(vi),yi=function(r){function t(t,e,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return c(t,r),t.prototype.nextInfiniteTimeWindow=function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),r.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new bi(this._getNow(),t)),this._trimBufferThenGetEvents(),r.prototype.next.call(this,t)},t.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new an;if(this.isStopped||this.hasError?e=y.EMPTY:(this.observers.push(t),e=new cn(this,t)),r&&t.add(t=new ei(t,r)),n)for(var s=0;s<o&&!t.closed;s++)t.next(i[s]);else for(s=0;s<o&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},t.prototype._getNow=function(){return(this.scheduler||mi).now()},t.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return e<r&&(o=Math.max(o,r-e)),0<o&&i.splice(0,o),i},t}(ln),bi=function(){return function(t,e){this.time=t,this.value=e}}();function xi(t,e,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new yi(t,e,i);return function(t){return Kn(function(){return o},r)(t)}}var Oi=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ji(t))},t}(),ji=function(n){function t(t){var e=n.call(this,t)||this;return e.hasFirst=!1,e.observables=[],e.subscriptions=[],e}return c(t,n),t.prototype._next=function(t){this.observables.push(t)},t.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=t[n],r=N(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(t,e,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},t}(j);function _i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&g(e[0])&&(e=e[0]),t.lift.call(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!g(t[0]))return t[0];t=t[0]}return xt(t,void 0).lift(new Oi)}.apply(void 0,[t].concat(e)))}}function wi(e){return void 0===e&&(e=-1),function(t){return 0===e?It():e<0?t.lift(new Si(-1,t)):t.lift(new Si(e-1,t))}}var Si=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ei(t,this.count,this.source))},t}(),Ei=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.count=e,i.source=n,i}return c(t,r),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,e=this.count;if(0===e)return r.prototype.complete.call(this);-1<e&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(x);function Ti(e){return function(t){return t.lift(new Ii(e))}}var Ii=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Ai(t,this.notifier,e))},t}(),Ai=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.notifier=e,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return c(t,r),t.prototype.notifyNext=function(t,e,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return r.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){this.notifications=new ln;var t=p(this.notifier)(this.notifications);if(t===l)return r.prototype.complete.call(this);this.retries=t,this.retriesSubscription=N(this,t)},t}(j);function Ci(e){return void 0===e&&(e=-1),function(t){return t.lift(new ki(e,t))}}var ki=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Di(t,this.count,this.source))},t}(),Di=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.count=e,i.source=n,i}return c(t,r),t.prototype.error=function(t){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return r.prototype.error.call(this,t);-1<n&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},t}(x);function Li(e){return function(t){return t.lift(new Ri(e,t))}}var Ri=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Pi(t,this.notifier,this.source))},t}(),Pi=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.notifier=e,i.source=n,i}return c(t,r),t.prototype.error=function(t){if(!this.isStopped){var e=this.errors,n=this.retries,i=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(e=new ln,(n=p(this.notifier)(e))===l)return r.prototype.error.call(this,l.e);i=N(this,n)}this._unsubscribeAndRecycle(),this.errors=e,this.retries=n,this.retriesSubscription=i,e.next(t)}},t.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(t,e,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(j);function Mi(e){return function(t){return t.lift(new Fi(e))}}var Fi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Bi(t),i=e.subscribe(n);return i.add(N(n,this.notifier)),i},t}(),Bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return c(t,e),t.prototype._next=function(t){this.value=t,this.hasValue=!0},t.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(j);function Ni(e,n){return void 0===n&&(n=G),function(t){return t.lift(new zi(e,n))}}var zi=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Vi(t,this.period,this.scheduler))},t}(),Vi=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.period=e,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(Wi,e,{subscriber:i,period:e})),i}return c(t,r),t.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(x);function Wi(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Yi(e,n){return function(t){return t.lift(new Hi(e,n))}}var Hi=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new $i(t,this.compareTo,this.comparor))},t}(),$i=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.compareTo=e,i.comparor=n,i._a=[],i._b=[],i._oneComplete=!1,i.add(e.subscribe(new Gi(t,i))),i}return c(t,r),t.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;0<t.length&&0<e.length;){var i=t.shift(),r=e.shift(),o=!1;n?(o=p(n)(i,r))===l&&this.destination.error(l.e):o=i===r,o||this.emit(!1)}},t.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},t.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},t}(x),Gi=function(i){function t(t,e){var n=i.call(this,t)||this;return n.parent=e,n}return c(t,i),t.prototype._next=function(t){this.parent.nextB(t)},t.prototype._error=function(t){this.parent.error(t)},t.prototype._complete=function(){this.parent._complete()},t}(x);function Xi(){return new ln}function Ui(){return function(t){return $n()(Kn(Xi)(t))}}function qi(e,l,p){return function(t){return t.lift((n=e,i=l,r=p,a=0,u=c=!1,function(t){a++,o&&!c||(c=!1,o=new yi(n,i,r),s=t.subscribe({next:function(t){o.next(t)},error:function(t){c=!0,o.error(t)},complete:function(){u=!0,o.complete()}}));var e=o.subscribe(this);return function(){a--,e.unsubscribe(),s&&0===a&&u&&s.unsubscribe()}}));var n,i,r,o,s,a,c,u}}function Zi(e){return function(t){return t.lift(new Ki(e,t))}}var Ki=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ji(t,this.predicate,this.source))},t}(),Ji=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.predicate=e,i.source=n,i.seenValue=!1,i.index=0,i}return c(t,r),t.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},t.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},t.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},t.prototype._complete=function(){var t=this.destination;0<this.index?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Le)},t}(x);function Qi(e){return function(t){return t.lift(new tr(e))}}var tr=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new er(t,this.total))},t}(),er=function(i){function t(t,e){var n=i.call(this,t)||this;return n.total=e,n.count=0,n}return c(t,i),t.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},t}(x);function nr(e){return function(t){return t.lift(new ir(e))}}var ir=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ee}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new x(t)):e.subscribe(new rr(t,this._skipCount))},t}(),rr=function(i){function t(t,e){var n=i.call(this,t)||this;return n._skipCount=e,n._count=0,n._ring=new Array(e),n}return c(t,i),t.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},t}(x);function or(e){return function(t){return t.lift(new sr(e))}}var sr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new ar(t,this.notifier))},t}(),ar=function(i){function t(t,e){var n=i.call(this,t)||this;return n.hasValue=!1,n.add(n.innerSubscription=N(n,e)),n}return c(t,i),t.prototype._next=function(t){this.hasValue&&i.prototype._next.call(this,t)},t.prototype.notifyNext=function(t,e,n,i,r){this.hasValue=!0,this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(j);function cr(e){return function(t){return t.lift(new ur(e))}}var ur=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new lr(t,this.predicate))},t}(),lr=function(i){function t(t,e){var n=i.call(this,t)||this;return n.predicate=e,n.skipping=!0,n.index=0,n}return c(t,i),t.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},t.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},t}(x);function pr(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return function(t){var e=i[i.length-1];U(e)?i.pop():e=null;var n=i.length;return zt(1!==n||e?0<n?xt(i,e):It(e):At(i[0]),t)}}var hr=1,dr={};var fr=function(t){var e=hr++;return dr[e]=t,Promise.resolve().then(function(){var t;(t=dr[e])&&t()}),e},gr=function(t){delete dr[t]},vr=function(i){function t(t,e){var n=i.call(this,t,e)||this;return n.scheduler=t,n.work=e,n}return c(t,i),t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&0<n?i.prototype.requestAsyncId.call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=fr(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&0<n||null===n&&0<this.delay)return i.prototype.recycleAsyncId.call(this,t,e,n);0===t.actions.length&&(gr(e),t.scheduled=void 0)},t}(Y),mr=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}($))(vr),yr=function(r){function i(t,e,n){void 0===e&&(e=0),void 0===n&&(n=mr);var i=r.call(this)||this;return i.source=t,i.delayTime=e,i.scheduler=n,(!X(e)||e<0)&&(i.delayTime=0),n&&"function"==typeof n.schedule||(i.scheduler=mr),i}return c(i,r),i.create=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=mr),new i(t,e,n)},i.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},i.prototype._subscribe=function(t){var e=this.delayTime,n=this.source;return this.scheduler.schedule(i.dispatch,e,{source:n,subscriber:t})},i}(I);function br(e,n){return void 0===n&&(n=0),function(t){return t.lift(new xr(e,n))}}var xr=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new yr(e,this.delay,this.scheduler).subscribe(t)},t}();function Or(e,r){return"function"==typeof r?function(t){return t.pipe(Or(function(n,i){return St(e(n,i)).pipe(kt(function(t,e){return r(n,t,i,e)}))}))}:function(t){return t.lift(new jr(e))}}var jr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new _r(t,this.project))},t}(),_r=function(i){function t(t,e){var n=i.call(this,t)||this;return n.project=e,n.index=0,n}return c(t,i),t.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},t.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe(),this.add(this.innerSubscription=N(this,t,e,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||i.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&i.prototype._complete.call(this)},t.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},t}(j);function wr(){return Or(Ft)}function Sr(t,e){return e?Or(function(){return t},e):Or(function(){return t})}function Er(e){return function(t){return t.lift(new Tr(e))}}var Tr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ir(t),i=N(n,this.notifier);return i&&!i.closed?(n.add(i),e.subscribe(n)):n},t}(),Ir=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.notifyNext=function(t,e,n,i,r){this.complete()},t.prototype.notifyComplete=function(){},t}(j);function Ar(e){return function(t){return t.lift(new Cr(e))}}var Cr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new kr(t,this.predicate))},t}(),kr=function(i){function t(t,e){var n=i.call(this,t)||this;return n.predicate=e,n.index=0,n}return c(t,i),t.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},t.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},t}(x),Dr={leading:!0,trailing:!1};function Lr(e,n){return void 0===n&&(n=Dr),function(t){return t.lift(new Rr(e,n.leading,n.trailing))}}var Rr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Pr(t,this.durationSelector,this.leading,this.trailing))},t}(),Pr=function(o){function t(t,e,n,i){var r=o.call(this,t)||this;return r.destination=t,r.durationSelector=e,r._leading=n,r._trailing=i,r._hasValue=!1,r}return c(t,o),t.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},t.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=N(this,e))},t.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},t.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},t.prototype.notifyNext=function(t,e,n,i,r){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(j);function Mr(e,n,i){return void 0===n&&(n=G),void 0===i&&(i=Dr),function(t){return t.lift(new Fr(e,n,i.leading,i.trailing))}}var Fr=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new Br(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Br=function(s){function t(t,e,n,i,r){var o=s.call(this,t)||this;return o.duration=e,o.scheduler=n,o.leading=i,o.trailing=r,o._hasTrailingValue=!1,o._trailingValue=null,o}return c(t,s),t.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Nr,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},t.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},t.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},t}(x);function Nr(t){t.subscriber.clearThrottle()}function zr(i){return void 0===i&&(i=G),function(t){return n=function(){return t.pipe(Rn(function(t,e){var n=t.current;return{value:e,current:i.now(),last:n}},{current:i.now(),value:void 0,last:void 0}),kt(function(t){var e=t.current,n=t.last,i=t.value;return new Vr(i,e-n)}))},new I(function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?St(t):It()).subscribe(e)});var n}}var Vr=function(){return function(t,e){this.value=t,this.interval=e}}(),Wr=function(e){function n(){var t=e.call(this,"Timeout has occurred")||this;return Object.setPrototypeOf(t,n.prototype),t}return c(n,e),n}(Error);function Yr(i,r,o){return void 0===o&&(o=G),function(t){var e=ie(i),n=e?+i-o.now():Math.abs(i);return t.lift(new Hr(n,e,r,o))}}var Hr=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new $r(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),$r=function(s){function e(t,e,n,i,r){var o=s.call(this,t)||this;return o.absoluteTimeout=e,o.waitFor=n,o.withObservable=i,o.scheduler=r,o.action=null,o.scheduleTimeout(),o}return c(e,s),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(N(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),s.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(j);function Gr(t,e){return void 0===e&&(e=G),Yr(t,re(new Wr),e)}function Xr(e){return void 0===e&&(e=G),kt(function(t){return new Ur(t,e.now())})}var Ur=function(){return function(t,e){this.value=t,this.timestamp=e}}();function qr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Zr(){return Fn(qr,[])}function Kr(e){return function(t){return t.lift(new Jr(e))}}var Jr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Qr(t),i=e.subscribe(n);return i.closed||n.add(N(n,this.windowBoundaries)),i},t}(),Qr=function(n){function t(t){var e=n.call(this,t)||this;return e.window=new ln,t.next(e.window),e}return c(t,n),t.prototype.notifyNext=function(t,e,n,i,r){this.openWindow()},t.prototype.notifyError=function(t,e){this._error(t)},t.prototype.notifyComplete=function(t){this._complete()},t.prototype._next=function(t){this.window.next(t)},t.prototype._error=function(t){this.window.error(t),this.destination.error(t)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new ln;e.next(n)},t}(j);function to(e,n){return void 0===n&&(n=0),function(t){return t.lift(new eo(e,n))}}var eo=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new no(t,this.windowSize,this.startWindowEvery))},t}(),no=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=e,i.startWindowEvery=n,i.windows=[new ln],i.count=0,t.next(i.windows[0]),i}return c(t,r),t.prototype._next=function(t){for(var e=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,s=0;s<o&&!this.closed;s++)r[s].next(t);var a=this.count-i+1;if(0<=a&&a%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var c=new ln;r.push(c),n.next(c)}},t.prototype._error=function(t){var e=this.windows;if(e)for(;0<e.length&&!this.closed;)e.shift().error(t);this.destination.error(t)},t.prototype._complete=function(){var t=this.windows;if(t)for(;0<t.length&&!this.closed;)t.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(x);function io(e){var n=G,i=null,r=Number.POSITIVE_INFINITY;return U(arguments[3])&&(n=arguments[3]),U(arguments[2])?n=arguments[2]:X(arguments[2])&&(r=arguments[2]),U(arguments[1])?n=arguments[1]:X(arguments[1])&&(i=arguments[1]),function(t){return t.lift(new ro(e,i,r,n))}}var ro=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new so(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),oo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return c(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(ln),so=function(l){function t(t,e,n,i,r){var o=l.call(this,t)||this;o.destination=t,o.windowTimeSpan=e,o.windowCreationInterval=n,o.maxWindowSize=i,o.scheduler=r,o.windows=[];var s=o.openWindow();if(null!==n&&0<=n){var a={subscriber:o,window:s,context:null},c={windowTimeSpan:e,windowCreationInterval:n,subscriber:o,scheduler:r};o.add(r.schedule(uo,e,a)),o.add(r.schedule(co,n,c))}else{var u={subscriber:o,window:s,windowTimeSpan:e};o.add(r.schedule(ao,e,u))}return o}return c(t,l),t.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},t.prototype._error=function(t){for(var e=this.windows;0<e.length;)e.shift().error(t);this.destination.error(t)},t.prototype._complete=function(){for(var t=this.windows;0<t.length;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},t.prototype.openWindow=function(){var t=new oo;return this.windows.push(t),this.destination.next(t),t},t.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},t}(x);function ao(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function co(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},a={subscriber:n,window:o,context:s};s.subscription=i.schedule(uo,e,a),this.add(s.subscription),this.schedule(t,r)}function uo(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}function lo(e,n){return function(t){return t.lift(new po(e,n))}}var po=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ho(t,this.openings,this.closingSelector))},t}(),ho=function(o){function t(t,e,n){var i=o.call(this,t)||this;return i.openings=e,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=N(i,e,e)),i}return c(t,o),t.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},t.prototype._error=function(t){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var r=e[i];r.window.error(t),r.subscription.unsubscribe()}o.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.complete(),i.subscription.unsubscribe()}o.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},t.prototype.notifyNext=function(t,e,n,i,r){if(t===this.openings){var o=p(this.closingSelector)(e);if(o===l)return this.error(l.e);var s=new ln,a=new y,c={window:s,subscription:a};this.contexts.push(c);var u=N(this,o,c);u.closed?this.closeWindow(this.contexts.length-1):(u.context=c,a.add(u)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},t.prototype.notifyError=function(t){this.error(t)},t.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},t.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},t}(j);function fo(e){return function(t){return t.lift(new go(e))}}var go=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vo(t,this.closingSelector))},t}(),vo=function(i){function t(t,e){var n=i.call(this,t)||this;return n.destination=t,n.closingSelector=e,n.openWindow(),n}return c(t,i),t.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},t.prototype.notifyError=function(t,e){this._error(t)},t.prototype.notifyComplete=function(t){this.openWindow(t)},t.prototype._next=function(t){this.window.next(t)},t.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new ln;this.destination.next(n);var i=p(this.closingSelector)();if(i===l){var r=l.e;this.destination.error(r),this.window.error(r)}else this.add(this.closingNotification=N(this,i))},t}(j);function mo(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return function(t){var e;"function"==typeof i[i.length-1]&&(e=i.pop());var n=i;return t.lift(new yo(n,e))}}var yo=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new bo(t,this.observables,this.project))},t}(),bo=function(a){function t(t,e,n){var i=a.call(this,t)||this;i.observables=e,i.project=n,i.toRespond=[];var r=e.length;i.values=new Array(r);for(var o=0;o<r;o++)i.toRespond.push(o);for(o=0;o<r;o++){var s=e[o];i.add(N(i,s,s,o))}return i}return c(t,a),t.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(0<o.length){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},t.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t}(j);var xo=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Oo(t,this.resultSelector))},t}(),Oo=function(r){function t(t,e,n){void 0===n&&(n=Object.create(null));var i=r.call(this,t)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof e?e:null,i.values=n,i}return c(t,r),t.prototype._next=function(t){var e=this.iterators;g(t)?e.push(new _o(t)):"function"==typeof t[L]?e.push(new jo(t[L]())):e.push(new wo(this.destination,this,t))},t.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var n=0;n<e;n++){var i=t[n];i.stillUnsubscribed?this.add(i.subscribe(i,n)):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++){if("function"==typeof(s=t[i]).hasValue&&!s.hasValue())return}var r=!1,o=[];for(i=0;i<e;i++){var s,a=(s=t[i]).next();if(s.hasCompleted()&&(r=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t}(x),jo=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),_o=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[L]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),wo=function(r){function t(t,e,n){var i=r.call(this,t)||this;return i.parent=e,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return c(t,r),t.prototype[L]=function(){return this},t.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},t.prototype.hasValue=function(){return 0<this.buffer.length},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(t,e,n,i,r){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(t,e){return N(this,this.observable,this,e)},t}(j);function So(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),xt(t,void 0).lift(new xo(n))}.apply(void 0,[t].concat(e)))}}function Eo(e){return function(t){return t.lift(new xo(e))}}n.d(e,"audit",function(){return z}),n.d(e,"auditTime",function(){return Z}),n.d(e,"buffer",function(){return K}),n.d(e,"bufferCount",function(){return tt}),n.d(e,"bufferTime",function(){return rt}),n.d(e,"bufferToggle",function(){return pt}),n.d(e,"bufferWhen",function(){return ft}),n.d(e,"catchError",function(){return mt}),n.d(e,"combineAll",function(){return wt}),n.d(e,"combineLatest",function(){return Et}),n.d(e,"concat",function(){return Vt}),n.d(e,"concatAll",function(){return Nt}),n.d(e,"concatMap",function(){return Wt}),n.d(e,"concatMapTo",function(){return Yt}),n.d(e,"count",function(){return Ht}),n.d(e,"debounce",function(){return Xt}),n.d(e,"debounceTime",function(){return Zt}),n.d(e,"defaultIfEmpty",function(){return te}),n.d(e,"delay",function(){return ae}),n.d(e,"delayWhen",function(){return pe}),n.d(e,"dematerialize",function(){return ve}),n.d(e,"distinct",function(){return be}),n.d(e,"distinctUntilChanged",function(){return je}),n.d(e,"distinctUntilKeyChanged",function(){return Se}),n.d(e,"elementAt",function(){return Ne}),n.d(e,"every",function(){return ze}),n.d(e,"exhaust",function(){return Ye}),n.d(e,"exhaustMap",function(){return Ge}),n.d(e,"expand",function(){return qe}),n.d(e,"filter",function(){return Te}),n.d(e,"finalize",function(){return Je}),n.d(e,"find",function(){return en}),n.d(e,"findIndex",function(){return on}),n.d(e,"first",function(){return sn}),n.d(e,"groupBy",function(){return hn}),n.d(e,"ignoreElements",function(){return yn}),n.d(e,"isEmpty",function(){return On}),n.d(e,"last",function(){return Tn}),n.d(e,"map",function(){return kt}),n.d(e,"mapTo",function(){return In}),n.d(e,"materialize",function(){return kn}),n.d(e,"max",function(){return Bn}),n.d(e,"merge",function(){return Nn}),n.d(e,"mergeAll",function(){return Bt}),n.d(e,"mergeMap",function(){return Rt}),n.d(e,"flatMap",function(){return Rt}),n.d(e,"mergeMapTo",function(){return zn}),n.d(e,"mergeScan",function(){return Vn}),n.d(e,"min",function(){return Hn}),n.d(e,"multicast",function(){return Kn}),n.d(e,"observeOn",function(){return Qn}),n.d(e,"onErrorResumeNext",function(){return ii}),n.d(e,"pairwise",function(){return si}),n.d(e,"partition",function(){return ui}),n.d(e,"pluck",function(){return li}),n.d(e,"publish",function(){return pi}),n.d(e,"publishBehavior",function(){return di}),n.d(e,"publishLast",function(){return gi}),n.d(e,"publishReplay",function(){return xi}),n.d(e,"race",function(){return _i}),n.d(e,"reduce",function(){return Fn}),n.d(e,"repeat",function(){return wi}),n.d(e,"repeatWhen",function(){return Ti}),n.d(e,"retry",function(){return Ci}),n.d(e,"retryWhen",function(){return Li}),n.d(e,"refCount",function(){return $n}),n.d(e,"sample",function(){return Mi}),n.d(e,"sampleTime",function(){return Ni}),n.d(e,"scan",function(){return Rn}),n.d(e,"sequenceEqual",function(){return Yi}),n.d(e,"share",function(){return Ui}),n.d(e,"shareReplay",function(){return qi}),n.d(e,"single",function(){return Zi}),n.d(e,"skip",function(){return Qi}),n.d(e,"skipLast",function(){return nr}),n.d(e,"skipUntil",function(){return or}),n.d(e,"skipWhile",function(){return cr}),n.d(e,"startWith",function(){return pr}),n.d(e,"subscribeOn",function(){return br}),n.d(e,"switchAll",function(){return wr}),n.d(e,"switchMap",function(){return Or}),n.d(e,"switchMapTo",function(){return Sr}),n.d(e,"take",function(){return Me}),n.d(e,"takeLast",function(){return wn}),n.d(e,"takeUntil",function(){return Er}),n.d(e,"takeWhile",function(){return Ar}),n.d(e,"tap",function(){return Ce}),n.d(e,"throttle",function(){return Lr}),n.d(e,"throttleTime",function(){return Mr}),n.d(e,"throwIfEmpty",function(){return Re}),n.d(e,"timeInterval",function(){return zr}),n.d(e,"timeout",function(){return Gr}),n.d(e,"timeoutWith",function(){return Yr}),n.d(e,"timestamp",function(){return Xr}),n.d(e,"toArray",function(){return Zr}),n.d(e,"window",function(){return Kr}),n.d(e,"windowCount",function(){return to}),n.d(e,"windowTime",function(){return io}),n.d(e,"windowToggle",function(){return lo}),n.d(e,"windowWhen",function(){return fo}),n.d(e,"withLatestFrom",function(){return mo}),n.d(e,"zip",function(){return So}),n.d(e,"zipAll",function(){return Eo})},"./node_modules/transformation-matrix/build-umd/transformation-matrix.min.js":function(t,e,n){var i;window,i=function(){return function(n){var i={};function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";function i(t,e){return{x:t.a*e.x+t.c*e.y+t.e,y:t.b*e.x+t.d*e.y+t.f}}function r(e,t){return t.map(function(t){return i(e,t)})}function o(t){return{a:parseFloat(t.a),b:parseFloat(t.b),c:parseFloat(t.c),d:parseFloat(t.d),e:parseFloat(t.e),f:parseFloat(t.f)}}n.r(e);var s=/^matrix\(\s*([0-9_\+\-\.e]+)\s*,\s*([0-9_\+\-\.e]+)\s*,\s*([0-9_\+\-\.e]+)\s*,\s*([0-9_\+\-\.e]+)\s*,\s*([0-9_\+\-\.e]+)\s*,\s*([0-9_\+\-\.e]+)\s*\)$/i;function a(t){var e=t.match(s);if(null===e||e.length<7)throw new Error("'"+t+"' is not a matrix");return{a:parseFloat(e[1]),b:parseFloat(e[2]),c:parseFloat(e[3]),d:parseFloat(e[4]),e:parseFloat(e[5]),f:parseFloat(e[6])}}function c(){return{a:1,c:0,e:0,b:0,d:1,f:0}}function u(t){var e=t.a,n=t.b,i=t.c,r=t.d,o=t.e,s=t.f,a=e*r-n*i;return{a:r/a,b:n/-a,c:i/-a,d:e/a,e:(r*o-i*s)/-a,f:(n*o-e*s)/a}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)};function h(t){return null!=(e=t)&&"object"===(void 0===e?"undefined":l(e))&&t.hasOwnProperty("a")&&p(t.a)&&t.hasOwnProperty("b")&&p(t.b)&&t.hasOwnProperty("c")&&p(t.c)&&t.hasOwnProperty("d")&&p(t.d)&&t.hasOwnProperty("e")&&p(t.e)&&t.hasOwnProperty("f")&&p(t.f);var e}function d(t){return void 0===t}function f(t){return{a:1,c:0,e:t,b:0,d:1,f:1<arguments.length&&void 0!==arguments[1]?arguments[1]:0}}function g(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,r=function(t,e){return{a:t.a*e.a+t.c*e.b,c:t.a*e.c+t.c*e.d,e:t.a*e.e+t.c*e.f+t.e,b:t.b*e.a+t.d*e.b,d:t.b*e.c+t.d*e.d,f:t.b*e.e+t.d*e.f+t.f}};switch((e=Array.isArray(e[0])?e[0]:e).length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return r(e[0],e[1]);default:var o=(i=e,Array.isArray(i)?i:Array.from(i)),s=o[0],a=o[1],c=o.slice(2),u=r(s,a);return g.apply(void 0,[u].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(c)))}}var v=Math.cos,m=Math.sin,y=Math.PI;function b(t,e,n){var i=v(t),r=m(t),o={a:i,c:-r,e:0,b:r,d:i,f:0};return d(e)||d(n)?o:g([f(e,n),o,f(-e,-n)])}function x(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0;return b(t*y/180,e,n)}function O(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0;return d(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}function j(t,e){return{a:1,c:t,e:0,b:e,d:1,f:0}}function _(t){return S(t)}function w(t){return S(t)}function S(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}n.d(e,"applyToPoint",function(){return i}),n.d(e,"applyToPoints",function(){return r}),n.d(e,"fromObject",function(){return o}),n.d(e,"fromString",function(){return a}),n.d(e,"identity",function(){return c}),n.d(e,"inverse",function(){return u}),n.d(e,"isAffineMatrix",function(){return h}),n.d(e,"rotate",function(){return b}),n.d(e,"rotateDEG",function(){return x}),n.d(e,"scale",function(){return O}),n.d(e,"shear",function(){return j}),n.d(e,"toCSS",function(){return _}),n.d(e,"toSVG",function(){return w}),n.d(e,"toString",function(){return S}),n.d(e,"transform",function(){return g}),n.d(e,"translate",function(){return f})}])},t.exports=i()},"./node_modules/webpack/buildin/global.js":function(jFd,kFd){var lFd;lFd=function(){return this}();try{lFd=lFd||Function("return this")()||eval("this")}catch(t){"object"==typeof window&&(lFd=window)}jFd.exports=lFd},"./node_modules/webpack/buildin/module.js":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"./src/graph/graph.component.scss":function(t,e,n){var i=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/index.js?sourceMap!./node_modules/sass-loader/lib/loader.js?sourceMap!./src/graph/graph.component.scss");t.exports="string"==typeof i?i:i.toString()},"./src/index.ts":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i("@angular/core"),O=i("d3-selection"),o={value:function(){}};function n(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new s(i)}function s(t){this._=t}function c(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function u(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=o,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}s.prototype=n.prototype={constructor:s,on:function(t,e){var n,i,r=this._,o=(i=r,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<a;)if(n=(t=o[s]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}for(;++s<a;)if((n=(t=o[s]).type)&&(n=c(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new s(t)},call:function(t,e){if(0<(n=arguments.length-2))for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var a,l,p=n,h=0,d=0,f=0,g=1e3,v=0,m=0,y=0,b="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function j(){return m||(x(_),m=b.now()+y)}function _(){m=0}function w(){this._call=this._time=this._next=null}function S(t,e,n){var i=new w;return i.restart(t,e,n),i}function E(){m=(v=b.now())+y,h=d=0;try{!function(){j(),++h;for(var t,e=a;e;)0<=(t=m-e._time)&&e._call.call(null,t),e=e._next;--h}()}finally{h=0,function(){var t,e,n=a,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),n=(t=n)._next):(e=n._next,n._next=null,n=t?t._next=e:a=e);l=t,I(i)}(),m=0}}function T(){var t=b.now(),e=t-v;g<e&&(y-=e,v=t)}function I(t){h||(d&&(d=clearTimeout(d)),24<t-m?(t<1/0&&(d=setTimeout(E,t-b.now()-y)),f&&(f=clearInterval(f))):(f||(v=b.now(),f=setInterval(T,g)),h=1,x(E)))}w.prototype=S.prototype={constructor:w,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?j():+n)+(null==e?0:+e),this._next||l===this||(l?l._next=this:a=this,l=this),this._call=t,this._time=n,I()},stop:function(){this._call&&(this._call=null,this._time=1/0,I())}};var A=function(e,n,t){var i=new w;return n=null==n?0:+n,i.restart(function(t){i.stop(),e(t+n)},n,t),i},C=p("start","end","interrupt"),k=[],D=0,L=2,R=function(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(o,s,a){var c,u=o.__transition;function l(t){var e,n,i,r;if(1!==a.state)return h();for(e in u)if((r=u[e]).name===a.name){if(3===r.state)return A(l);4===r.state?(r.state=6,r.timer.stop(),r.on.call("interrupt",o,o.__data__,r.index,r.group),delete u[e]):+e<s&&(r.state=6,r.timer.stop(),delete u[e])}if(A(function(){3===a.state&&(a.state=4,a.timer.restart(p,a.delay,a.time),p(t))}),a.state=L,a.on.call("start",o,o.__data__,a.index,a.group),a.state===L){for(a.state=3,c=new Array(i=a.tween.length),e=0,n=-1;e<i;++e)(r=a.tween[e].value.call(o,o.__data__,a.index,a.group))&&(c[++n]=r);c.length=n+1}}function p(t){for(var e=t<a.duration?a.ease.call(null,t/a.duration):(a.timer.restart(h),a.state=5,1),n=-1,i=c.length;++n<i;)c[n].call(null,e);5===a.state&&(a.on.call("end",o,o.__data__,a.index,a.group),h())}function h(){for(var t in a.state=6,a.timer.stop(),delete u[s],u)return;delete o.__transition}(u[s]=a).timer=S(function(t){a.state=1,a.timer.restart(l,a.delay,a.time),a.delay<=t&&l(t-a.delay)},0,a.time)}(t,n,{name:e,index:i,group:r,on:C,tween:k,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:D})};function P(t,e){var n=F(t,e);if(n.state>D)throw new Error("too late; already scheduled");return n}function M(t,e){var n=F(t,e);if(n.state>L)throw new Error("too late; already started");return n}function F(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var B=i("d3-interpolate");function N(t,e,n){var i=t._id;return t.each(function(){var t=M(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return F(t,i).value[e]}}var z=i("d3-color"),V=function(t,e){var n;return("number"==typeof e?B.interpolateNumber:e instanceof z.color?B.interpolateRgb:(n=Object(z.color)(e))?(e=n,B.interpolateRgb):B.interpolateString)(t,e)};var W=O.selection.prototype.constructor;var Y=0;function H(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function $(){return++Y}var G=O.selection.prototype;H.prototype=function(t){return Object(O.selection)().transition(t)}.prototype={constructor:H,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(O.selector)(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,c,u=i[s],l=u.length,p=o[s]=new Array(l),h=0;h<l;++h)(a=u[h])&&(c=t.call(a,a.__data__,h,u))&&("__data__"in a&&(c.__data__=a.__data__),p[h]=c,R(p[h],e,n,h,p,F(a,n)));return new H(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(O.selectorAll)(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var c,u=i[a],l=u.length,p=0;p<l;++p)if(c=u[p]){for(var h,d=t.call(c,c.__data__,p,u),f=F(c,n),g=0,v=d.length;g<v;++g)(h=d[g])&&R(h,e,n,g,d,f);o.push(d),s.push(c)}return new H(o,s,e,n)},filter:function(t){"function"!=typeof t&&(t=Object(O.matcher)(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,c=i[r]=[],u=0;u<a;++u)(o=s[u])&&t.call(o,o.__data__,u,s)&&c.push(o);return new H(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var c,u=e[a],l=n[a],p=u.length,h=s[a]=new Array(p),d=0;d<p;++d)(c=u[d]||l[d])&&(h[d]=c);for(;a<i;++a)s[a]=e[a];return new H(s,this._parents,this._name,this._id)},selection:function(){return new W(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=$(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],c=a.length,u=0;u<c;++u)if(s=a[u]){var l=F(s,e);R(s,t,n,u,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new H(i,this._parents,t,n)},call:G.call,nodes:G.nodes,node:G.node,size:G.size,empty:G.empty,each:G.each,on:function(t,e){var n,i,r,o,s,a,c=this._id;return arguments.length<2?F(this.node(),c).on.on(t):this.each((n=c,r=e,a=((i=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return 0<=e&&(t=t.slice(0,e)),!t||"start"===t})?P:M,function(){var t=a(this,n),e=t.on;e!==o&&(s=(o=e).copy()).on(i,r),t.on=s}))},attr:function(t,e){var n=Object(O.namespace)(t),i="transform"===n?B.interpolateTransformSvg:V;return this.attrTween(t,"function"==typeof e?(n.local?function(n,i,r){var o,s,a;return function(){var t,e=r(this);if(null!=e)return(t=this.getAttributeNS(n.space,n.local))===e?null:t===o&&e===s?a:a=i(o=t,s=e);this.removeAttributeNS(n.space,n.local)}}:function(n,i,r){var o,s,a;return function(){var t,e=r(this);if(null!=e)return(t=this.getAttribute(n))===e?null:t===o&&e===s?a:a=i(o=t,s=e);this.removeAttribute(n)}})(n,i,N(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(e,n,i){var r,o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===i?null:t===r?o:o=n(r=t,i)}}:function(e,n,i){var r,o;return function(){var t=this.getAttribute(e);return t===i?null:t===r?o:o=n(r=t,i)}})(n,i,e+""))},attrTween:function(t,e){var n="attr."+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;var i=Object(O.namespace)(t);return this.tween(n,(i.local?function(i,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttributeNS(i.space,i.local,n(t))}}return e._value=t,e}:function(i,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttribute(i,n(t))}}return e._value=t,e})(i,e))},style:function(t,e,n){var i,r,o,s,a,c,u,l,p,h,d,f,g,v,m,y,b,x="transform"==(t+="")?B.interpolateTransformCss:V;return null==e?this.styleTween(t,(g=t,v=x,function(){var t=Object(O.style)(this,g),e=(this.style.removeProperty(g),Object(O.style)(this,g));return t===e?null:t===m&&e===y?b:b=v(m=t,y=e)})).on("end.style."+t,(f=t,function(){this.style.removeProperty(f)})):this.styleTween(t,"function"==typeof e?(u=x,l=N(this,"style."+(c=t),e),function(){var t=Object(O.style)(this,c),e=l(this);return null==e&&(this.style.removeProperty(c),e=Object(O.style)(this,c)),t===e?null:t===p&&e===h?d:d=u(p=t,h=e)}):(i=t,r=x,o=e+"",function(){var t=Object(O.style)(this,i);return t===o?null:t===s?a:a=r(s=t,o)}),n)},styleTween:function(t,e,n){var i="style."+(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;return this.tween(i,function(i,t,r){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.style.setProperty(i,n(t),r)}}return e._value=t,e}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?(n=N(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n},remove:function(){return this.on("end.remove",(n=this._id,function(){var t=this.parentNode;for(var e in this.__transition)if(+e!==n)return;t&&t.removeChild(this)}));var n},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=F(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?function(r,o){var s,a;return function(){var t=M(this,r),e=t.tween;if(e!==s)for(var n=0,i=(a=s=e).length;n<i;++n)if(a[n].name===o){(a=a.slice()).splice(n,1);break}t.tween=a}}:function(o,s,a){var c,u;if("function"!=typeof a)throw new Error;return function(){var t=M(this,o),e=t.tween;if(e!==c){u=(c=e).slice();for(var n={name:s,value:a},i=0,r=u.length;i<r;++i)if(u[i].name===s){u[i]=n;break}i===r&&u.push(n)}t.tween=u}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){P(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){P(this,t).delay=e}})(e,t)):F(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){M(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){M(this,t).duration=e}})(e,t)):F(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){M(this,t).ease=e}}(e,t)):F(this.node(),e).ease}};(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Math.PI;(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158);var X=2*Math.PI,U=(function e(n,i){var r=Math.asin(1/(n=Math.max(1,n)))*(i/=X);function t(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/i)}return t.amplitude=function(t){return e(t,i*X)},t.period=function(t){return e(n,t)},t}(1,.3),function e(n,i){var r=Math.asin(1/(n=Math.max(1,n)))*(i/=X);function t(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/i)}return t.amplitude=function(t){return e(t,i*X)},t.period=function(t){return e(n,t)},t}(1,.3),function e(n,i){var r=Math.asin(1/(n=Math.max(1,n)))*(i/=X);function t(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/i):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/i))/2}return t.amplitude=function(t){return e(t,i*X)},t.period=function(t){return e(n,t)},t}(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 q(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return U.time=j(),U;return n}O.selection.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>L&&n.state<5,n.state=6,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}(this,t)})},O.selection.prototype.transition=function(t){var e,n;t instanceof H?(e=t._id,t=t._name):(e=$(),(n=U).time=j(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],c=a.length,u=0;u<c;++u)(s=a[u])&&R(s,t,e,u,a,n||q(s,e));return new H(i,this._parents,t,e)};var Z=i("@angular/animations"),K=i("./node_modules/@swimlane/ngx-charts/release/index.js"),J=i("d3-shape"),Q=i("./node_modules/dagre/index.js"),tt=i("rxjs"),et=i("./node_modules/transformation-matrix/build-umd/transformation-matrix.min.js"),nt={};var it,rt=this&&this.__extends||(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}it(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ot=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},st=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},at=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.nodes=[],t.links=[],t.activeEntries=[],t.orientation="LR",t.draggingEnabled=!0,t.panningEnabled=!0,t.enableZoom=!0,t.zoomSpeed=.1,t.minZoomLevel=.1,t.maxZoomLevel=4,t.autoZoom=!1,t.panOnZoom=!0,t.autoCenter=!1,t.activate=new r.EventEmitter,t.deactivate=new r.EventEmitter,t.subscriptions=[],t.margin=[0,0,0,0],t.results=[],t.isPanning=!1,t.isDragging=!1,t.initialized=!1,t.graphDims={width:0,height:0},t._oldLinks=[],t.transformationMatrix=Object(et.identity)(),t._touchLastX=null,t._touchLastY=null,t.groupResultsBy=function(t){return t.label},t}return rt(t,n),Object.defineProperty(t.prototype,"zoomLevel",{get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panOffsetX",{get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panOffsetY",{get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe(function(){t.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(function(){t.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(function(){t.zoomToFit()}))},t.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this);for(var t=0,e=this.subscriptions;t<e.length;t++){e[t].unsubscribe()}this.subscriptions=null},t.prototype.ngAfterViewInit=function(){var t=this;n.prototype.ngAfterViewInit.call(this),setTimeout(function(){return t.update()})},t.prototype.update=function(){var t=this;n.prototype.update.call(this),this.zone.run(function(){t.dims=Object(K.calculateViewDimensions)({width:t.width,height:t.height,margins:t.margin,showLegend:t.legend}),t.seriesDomain=t.getSeriesDomain(),t.setColors(),t.legendOptions=t.getLegendOptions(),t.createGraph(),t.updateTransform(),t.initialized=!0})},t.prototype.draw=function(){var o=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(function(t){var e,n=t.nativeElement,i=o._nodes.find(function(t){return t.id===n.id});try{e=n.getBBox()}catch(t){return}if(o.nodeHeight?i.height=o.nodeHeight:i.height=e.height,o.nodeMaxHeight&&(i.height=Math.max(i.height,o.nodeMaxHeight)),o.nodeMinHeight&&(i.height=Math.min(i.height,o.nodeMinHeight)),o.nodeWidth)i.width=o.nodeWidth;else if(n.getElementsByTagName("text").length){var r=void 0;try{r=n.getElementsByTagName("text")[0].getBBox()}catch(t){return}i.width=r.width+20}else i.width=e.width;o.nodeMaxWidth&&(i.width=Math.max(i.width,o.nodeMaxWidth)),o.nodeMinWidth&&(i.width=Math.min(i.width,o.nodeMinWidth))}),Q.layout(this.graph);var e={};this._nodes.map(function(t){(e[t.id]=t).options={color:o.colors.getColor(o.groupResultsBy(t)),transform:"translate("+(t.x-t.width/2||0)+", "+(t.y-t.height/2||0)+")"}});var c=[],t=function(t){var e=u.graph._edgeLabels[t],n=t.replace(/[^\w-]*/g,""),i=u._oldLinks.find(function(t){return""+t.source+t.target===n});i||(i=u._links.find(function(t){return""+t.source+t.target===n})),i.oldLine=i.line;var r=e.points,o=u.generateLine(r),s=Object.assign({},i);s.line=o;var a=(s.points=r)[Math.floor(r.length/2)];a&&(s.textTransform="translate("+(a.x||0)+","+(a.y||0)+")"),s.textAngle=0,s.oldLine||(s.oldLine=s.line),u.calcDominantBaseline(s),c.push(s)},u=this;for(var n in this.graph._edgeLabels)t(n);this._links=c,this._links&&(this._oldLinks=this._links.map(function(t){var e=Object.assign({},t);return e.oldLine=t.line,e})),this.graphDims.width=Math.max.apply(Math,this._nodes.map(function(t){return t.x+t.width})),this.graphDims.height=Math.max.apply(Math,this._nodes.map(function(t){return t.y+t.height})),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(function(){return o.redrawLines()}),this.cd.markForCheck()},t.prototype.redrawLines=function(n){var i=this;void 0===n&&(n=!0),this.linkElements.map(function(e){var t=i._links.find(function(t){return t.id===e.nativeElement.id});t&&(Object(O.select)(e.nativeElement).select(".line").attr("d",t.oldLine).transition().duration(n?500:0).attr("d",t.line),Object(O.select)(i.chartElement.nativeElement).select("#"+t.id).attr("d",t.oldTextPath).transition().duration(n?500:0).attr("d",t.textPath))})},t.prototype.createGraph=function(){var t=this;this.graph=new Q.graphlib.Graph,this.graph.setGraph({rankdir:this.orientation,marginx:20,marginy:20,edgesep:100,ranksep:100}),this.graph.setDefaultEdgeLabel(function(){return{}}),this._nodes=this.nodes.map(function(t){return Object.assign({},t)}),this._links=this.links.map(function(t){var e=Object.assign({},t);return e.id||(e.id=function t(){var e=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return nt[e="a"+e]?t():(nt[e]=!0,e)}()),e});for(var e=0,n=this._nodes;e<n.length;e++){var i=n[e];i.width=20,i.height=30,this.graph.setNode(i.id,i),i.options={color:this.colors.getColor(this.groupResultsBy(i)),transform:"translate( "+(i.x-i.width/2||0)+", "+(i.y-i.height/2||0)+")"}}for(var r=0,o=this._links;r<o.length;r++){var s=o[r];this.graph.setEdge(s.source,s.target)}requestAnimationFrame(function(){return t.draw()})},t.prototype.calcDominantBaseline=function(t){var e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.x<e.x?(t.dominantBaseline="text-before-edge",t.textPath=this.generateLine(t.points.slice().reverse())):(t.dominantBaseline="text-after-edge",t.textPath=t.line)},t.prototype.generateLine=function(t){return J.line().x(function(t){return t.x}).y(function(t){return t.y}).curve(this.curve)(t)},t.prototype.onZoom=function(t,e){var n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),i=this.zoomLevel*n;if(!(i<=this.minZoomLevel||i>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var r=t.clientX,o=t.clientY,s=this.chart.nativeElement.querySelector("svg"),a=s.querySelector("g.chart"),c=s.createSVGPoint();c.x=r,c.y=o;var u=c.matrixTransform(a.getScreenCTM().inverse());this.pan(u.x,u.y),this.zoom(n),this.pan(-u.x,-u.y)}else this.zoom(n)},t.prototype.pan=function(t,e){var n=this.zoomLevel;this.transformationMatrix=Object(et.transform)(this.transformationMatrix,Object(et.translate)(t/n,e/n)),this.updateTransform()},t.prototype.panTo=function(t,e){this.transformationMatrix.e=null==t||isNaN(t)?this.transformationMatrix.e:Number(t),this.transformationMatrix.f=null==e||isNaN(e)?this.transformationMatrix.f:Number(e),this.updateTransform()},t.prototype.zoom=function(t){this.transformationMatrix=Object(et.transform)(this.transformationMatrix,Object(et.scale)(t,t)),this.updateTransform()},t.prototype.zoomTo=function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.updateTransform()},t.prototype.onPan=function(t){this.pan(t.movementX,t.movementY)},t.prototype.onDrag=function(t){var a=this.draggingNode;a.x+=t.movementX/this.zoomLevel,a.y+=t.movementY/this.zoomLevel;var e=a.x-a.width/2,n=a.y-a.height/2;a.options.transform="translate("+e+", "+n+")";for(var i=function(e){if(e.target===a.id||e.source===a.id){var t=c._nodes.find(function(t){return t.id===e.source}),n=c._nodes.find(function(t){return t.id===e.target}),i=t.y<=n.y?-1:1,r={x:t.x,y:t.y-i*(t.height/2)},o={x:n.x,y:n.y+i*(n.height/2)};e.points=[r,o];var s=c.generateLine(e.points);c.calcDominantBaseline(e),e.oldLine=e.line,e.line=s}},c=this,r=0,o=this._links;r<o.length;r++){i(o[r])}this.redrawLines(!1)},t.prototype.updateTransform=function(){this.transform=Object(et.toSVG)(this.transformationMatrix)},t.prototype.onClick=function(t){this.select.emit(t)},t.prototype.onActivate=function(t){-1<this.activeEntries.indexOf(t)||(this.activeEntries=[t].concat(this.activeEntries),this.activate.emit({value:t,entries:this.activeEntries}))},t.prototype.onDeactivate=function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:t,entries:this.activeEntries})},t.prototype.getSeriesDomain=function(){var e=this;return this.nodes.map(function(t){return e.groupResultsBy(t)}).reduce(function(t,e){return t.includes(e)?t:t.concat([e])},[]).sort()},t.prototype.trackLinkBy=function(t,e){return e.id},t.prototype.trackNodeBy=function(t,e){return e.id},t.prototype.setColors=function(){this.colors=new K.ColorHelper(this.scheme,"ordinal",this.seriesDomain,this.customColors)},t.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}},t.prototype.onMouseMove=function(t){this.isPanning&&this.panningEnabled?this.onPan(t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)},t.prototype.onTouchStart=function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0},t.prototype.onTouchMove=function(t){var e=t;if(this.isPanning&&this.panningEnabled){var n=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY,r=n-this._touchLastX,o=i-this._touchLastY;this._touchLastX=n,this._touchLastY=i,this.pan(r,o)}},t.prototype.onTouchEnd=function(t){this.isPanning=!1},t.prototype.onMouseUp=function(t){this.isDragging=!1,this.isPanning=!1},t.prototype.onNodeMouseDown=function(t,e){this.isDragging=!0,this.draggingNode=e},t.prototype.center=function(){this.panTo(this.dims.width/2-this.graphDims.width*this.zoomLevel/2,this.dims.height/2-this.graphDims.height*this.zoomLevel/2)},t.prototype.zoomToFit=function(){var t=this.dims.height/this.graphDims.height,e=this.dims.width/this.graphDims.width,n=Math.min(t,e,1);n!==this.zoomLevel&&(this.zoomLevel=n,this.updateTransform())},ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"legend",void 0),ot([Object(r.Input)(),st("design:type",Array)],t.prototype,"nodes",void 0),ot([Object(r.Input)(),st("design:type",Array)],t.prototype,"links",void 0),ot([Object(r.Input)(),st("design:type",Array)],t.prototype,"activeEntries",void 0),ot([Object(r.Input)(),st("design:type",String)],t.prototype,"orientation",void 0),ot([Object(r.Input)(),st("design:type",Object)],t.prototype,"curve",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"draggingEnabled",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeHeight",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeMaxHeight",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeMinHeight",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeWidth",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeMinWidth",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"nodeMaxWidth",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"panningEnabled",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"enableZoom",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"zoomSpeed",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"minZoomLevel",void 0),ot([Object(r.Input)(),st("design:type",Number)],t.prototype,"maxZoomLevel",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"autoZoom",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"panOnZoom",void 0),ot([Object(r.Input)(),st("design:type",Boolean)],t.prototype,"autoCenter",void 0),ot([Object(r.Input)(),st("design:type",tt.Observable)],t.prototype,"update$",void 0),ot([Object(r.Input)(),st("design:type",tt.Observable)],t.prototype,"center$",void 0),ot([Object(r.Input)(),st("design:type",tt.Observable)],t.prototype,"zoomToFit$",void 0),ot([Object(r.Output)(),st("design:type",r.EventEmitter)],t.prototype,"activate",void 0),ot([Object(r.Output)(),st("design:type",r.EventEmitter)],t.prototype,"deactivate",void 0),ot([Object(r.ContentChild)("linkTemplate"),st("design:type",r.TemplateRef)],t.prototype,"linkTemplate",void 0),ot([Object(r.ContentChild)("nodeTemplate"),st("design:type",r.TemplateRef)],t.prototype,"nodeTemplate",void 0),ot([Object(r.ContentChild)("defsTemplate"),st("design:type",r.TemplateRef)],t.prototype,"defsTemplate",void 0),ot([Object(r.ViewChild)(K.ChartComponent,{read:r.ElementRef}),st("design:type",r.ElementRef)],t.prototype,"chart",void 0),ot([Object(r.ViewChildren)("nodeElement"),st("design:type",r.QueryList)],t.prototype,"nodeElements",void 0),ot([Object(r.ViewChildren)("linkElement"),st("design:type",r.QueryList)],t.prototype,"linkElements",void 0),ot([Object(r.Input)(),st("design:type",Function)],t.prototype,"groupResultsBy",void 0),ot([Object(r.Input)("zoomLevel"),st("design:type",Object),st("design:paramtypes",[Object])],t.prototype,"zoomLevel",null),ot([Object(r.Input)("panOffsetX"),st("design:type",Object),st("design:paramtypes",[Object])],t.prototype,"panOffsetX",null),ot([Object(r.Input)("panOffsetY"),st("design:type",Object),st("design:paramtypes",[Object])],t.prototype,"panOffsetY",null),ot([Object(r.HostListener)("document:mousemove",["$event"]),st("design:type",Function),st("design:paramtypes",[MouseEvent]),st("design:returntype",void 0)],t.prototype,"onMouseMove",null),ot([Object(r.HostListener)("document:touchmove",["$event"]),st("design:type",Function),st("design:paramtypes",[Object]),st("design:returntype",void 0)],t.prototype,"onTouchMove",null),ot([Object(r.HostListener)("document:mouseup"),st("design:type",Function),st("design:paramtypes",[MouseEvent]),st("design:returntype",void 0)],t.prototype,"onMouseUp",null),t=ot([Object(r.Component)({selector:"ngx-graph",styles:[i("./src/graph/graph.component.scss")],encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush,animations:[Object(Z.trigger)("link",[Object(Z.transition)("* => *",[Object(Z.animate)(500,Object(Z.style)({transform:"*"}))])])],template:'\n    <ngx-charts-chart\n      [view]="[width, height]"\n      [showLegend]="legend"\n      [legendOptions]="legendOptions"\n      (legendLabelClick)="onClick($event)"\n      (legendLabelActivate)="onActivate($event)"\n      (legendLabelDeactivate)="onDeactivate($event)"\n      mouseWheel\n      (mouseWheelUp)="onZoom($event, \'in\')"\n      (mouseWheelDown)="onZoom($event, \'out\')">\n      <svg:g\n        *ngIf="initialized"\n        [attr.transform]="transform"\n        (touchstart)="onTouchStart($event)"\n        (touchend)="onTouchEnd($event)"\n        class="graph chart">\n          <defs>\n            <ng-template *ngIf="defsTemplate" [ngTemplateOutlet]="defsTemplate">\n            </ng-template>\n            <svg:path\n              class="text-path"\n              *ngFor="let link of _links"\n              [attr.d]="link.textPath"\n              [attr.id]="link.id">\n            </svg:path>\n          </defs>\n          <svg:rect\n            class="panning-rect"\n            [attr.width]="dims.width * 100"\n            [attr.height]="dims.height * 100"\n            [attr.transform]="\'translate(\' + ((-dims.width || 0) * 50) +\',\' + ((-dims.height || 0) *50) + \')\' "\n            (mousedown)="isPanning = true" />\n          <svg:g class="links">\n            <svg:g\n              *ngFor="let link of _links; trackBy: trackLinkBy"\n              class="link-group"\n              #linkElement\n              [id]="link.id">\n              <ng-template\n                *ngIf="linkTemplate"\n                [ngTemplateOutlet]="linkTemplate"\n                [ngTemplateOutletContext]="{ $implicit: link }">\n              </ng-template>\n              <svg:path *ngIf="!linkTemplate" class="edge" [attr.d]="link.line" />\n            </svg:g>\n          </svg:g>\n          <svg:g class="nodes">\n            <svg:g\n              *ngFor="let node of _nodes; trackBy: trackNodeBy"\n              class="node-group"\n              #nodeElement\n              [id]="node.id"\n              [attr.transform]="node.options.transform"\n                (click)="onClick(node)" (mousedown)="onNodeMouseDown($event, node)">\n                <ng-template\n                  *ngIf="nodeTemplate"\n                  [ngTemplateOutlet]="nodeTemplate"\n                  [ngTemplateOutletContext]="{ $implicit: node }">\n                </ng-template>\n                <svg:circle\n                  *ngIf="!nodeTemplate"\n                  r="10"\n                  [attr.cx]="node.width / 2" [attr.cy]="node.height / 2"\n                  [attr.fill]="node.options.color"\n                />\n            </svg:g>\n          </svg:g>\n      </svg:g>\n  </ngx-charts-chart>\n  '})],t)}(K.BaseChartComponent),ct=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},ut=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lt=function(){function t(){this.mouseWheelUp=new r.EventEmitter,this.mouseWheelDown=new r.EventEmitter}return t.prototype.onMouseWheelChrome=function(t){this.mouseWheelFunc(t)},t.prototype.onMouseWheelFirefox=function(t){this.mouseWheelFunc(t)},t.prototype.onMouseWheelIE=function(t){this.mouseWheelFunc(t)},t.prototype.mouseWheelFunc=function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail));0<e?this.mouseWheelUp.emit(t):e<0&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()},ct([Object(r.Output)(),ut("design:type",Object)],t.prototype,"mouseWheelUp",void 0),ct([Object(r.Output)(),ut("design:type",Object)],t.prototype,"mouseWheelDown",void 0),ct([Object(r.HostListener)("mousewheel",["$event"]),ut("design:type",Function),ut("design:paramtypes",[Object]),ut("design:returntype",void 0)],t.prototype,"onMouseWheelChrome",null),ct([Object(r.HostListener)("DOMMouseScroll",["$event"]),ut("design:type",Function),ut("design:paramtypes",[Object]),ut("design:returntype",void 0)],t.prototype,"onMouseWheelFirefox",null),ct([Object(r.HostListener)("onmousewheel",["$event"]),ut("design:type",Function),ut("design:paramtypes",[Object]),ut("design:returntype",void 0)],t.prototype,"onMouseWheelIE",null),t=ct([Object(r.Directive)({selector:"[mouseWheel]"})],t)}(),pt=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},ht=function(){function t(){}return t=pt([Object(r.NgModule)({imports:[K.ChartCommonModule],declarations:[at,lt],exports:[at,lt]})],t)}(),dt=this&&this.__decorate||function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;0<=a;a--)(r=t[a])&&(s=(o<3?r(s):3<o?r(e,n,s):r(e,n))||s);return 3<o&&s&&Object.defineProperty(e,n,s),s},ft=function(){function t(){}return t=dt([Object(r.NgModule)({exports:[ht]})],t)}();i.d(e,"NgxGraphModule",function(){return ft})},"@angular/animations":function(t,e){t.exports=d},"@angular/common":function(t,n){t.exports=e},"@angular/core":function(t,e){t.exports=f},"@angular/platform-browser":function(t,e){t.exports=g},"d3-array":function(t,e){t.exports=h},"d3-brush":function(t,e){t.exports=i},"d3-color":function(t,e){t.exports=j},"d3-force":function(t,e){t.exports=k},"d3-format":function(t,e){t.exports=l},"d3-hierarchy":function(t,e){t.exports=m},"d3-interpolate":function(t,e){t.exports=n},"d3-scale":function(t,e){t.exports=o},"d3-selection":function(t,e){t.exports=p},"d3-shape":function(t,e){t.exports=q},"d3-time-format":function(t,e){t.exports=r},rxjs:function(t,e){t.exports=s}})});