From ac0d8de0dc8ba7b376a928680614a173f9009164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=EC=9A=B0?= Date: Fri, 12 Oct 2018 10:31:16 +0900 Subject: [PATCH] v3.4.0 --- dist/tui-chart-all.js | 455 ++++++- dist/tui-chart-all.min.js | 48 +- dist/tui-chart-polyfill.js | 455 ++++++- dist/tui-chart-polyfill.min.js | 40 +- dist/tui-chart.css | 4 +- dist/tui-chart.js | 455 ++++++- dist/tui-chart.min.css | 4 +- dist/tui-chart.min.js | 36 +- package-lock.json | 2098 ++++++++++++++++++++++++-------- package.json | 2 +- 10 files changed, 2859 insertions(+), 738 deletions(-) diff --git a/dist/tui-chart-all.js b/dist/tui-chart-all.js index 8ef387fc4..0a3d0161b 100644 --- a/dist/tui-chart-all.js +++ b/dist/tui-chart-all.js @@ -2,10 +2,10 @@ * tui-chart-all * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:40:22 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:29:38 GMT+0900 (KST)" */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') @@ -15871,6 +15871,7 @@ return /******/ (function(modules) { // webpackBootstrap beforeShowTooltip: true, afterShowTooltip: true, beforeHideTooltip: true, + changeCheckedLegends: true, zoom: true }, /** for radial */ @@ -21160,6 +21161,7 @@ return /******/ (function(modules) { // webpackBootstrap * RaphaelLineCharts is graph renderer for line chart. * @constructs RaphaelRadialLineSeries * @extends RaphaelLineTypeBase + * @ignore */ function RaphaelRadialLineSeries() { _classCallCheck(this, RaphaelRadialLineSeries); @@ -28541,6 +28543,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -28618,6 +28621,10 @@ return /******/ (function(modules) { // webpackBootstrap var _boundsAndScaleBuilder2 = _interopRequireDefault(_boundsAndScaleBuilder); + var _themeManager = __webpack_require__(361); + + var _themeManager2 = _interopRequireDefault(_themeManager); + var _predicate = __webpack_require__(342); var _predicate2 = _interopRequireDefault(_predicate); @@ -28652,6 +28659,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * theme * @type {object} + * @ignore */ this.theme = params.theme; @@ -28674,42 +28682,49 @@ return /******/ (function(modules) { // webpackBootstrap /** * whether chart has axes or not * @type {boolean} + * @ignore */ this.hasAxes = params.hasAxes; /** * whether vertical or not * @type {boolean} + * @ignore */ this.isVertical = !!params.isVertical; /** * data processor * @type {DataProcessor} + * @ignore */ this.dataProcessor = this._createDataProcessor(params); /** * event bus for transmitting message * @type {object} + * @ignore */ this.eventBus = new _tuiCodeSnippet2['default'].CustomEvents(); /** * previous xAxis data * @type {null|object} + * @ignore */ this.prevXAxisData = null; /** * component manager * @type {ComponentManager} + * @ignore */ this.componentManager = this._createComponentManager(); /** * Whether has right y axis or not. * @type {boolean} + * @ignore */ this.hasRightYAxis = _tuiCodeSnippet2['default'].isArray(this.options.yAxis) && this.options.yAxis.length > 1; @@ -28729,17 +28744,7 @@ return /******/ (function(modules) { // webpackBootstrap ChartBase.prototype._sendHostName = function _sendHostName() { - var _location = location, - hostname = _location.hostname; - - _tuiCodeSnippet2['default'].imagePing('https://www.google-analytics.com/collect', { - v: 1, - t: 'event', - tid: 'UA-115377265-9', - cid: hostname, - dp: hostname, - dh: 'chart' - }); + _tuiCodeSnippet2['default'].sendHostname('chart'); }; /** @@ -28916,6 +28921,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components. * @abstract + * @ignore */ @@ -28924,6 +28930,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Get scale option. * @abstract + * @ignore */ @@ -28990,6 +28997,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add data ratios. * @abstract + * @ignore */ @@ -28999,6 +29007,7 @@ return /******/ (function(modules) { // webpackBootstrap * Make chart ready for render, it should be invoked before render, rerender, resize and zoom. * @param {?boolean} addingDataMode - whether adding data mode or not * @returns {object} Bounds and scale data + * @ignore */ @@ -29017,6 +29026,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Render chart. * @param {HTMLElement} wrapper chart wrapper element + * @ignore */ @@ -29043,19 +29053,19 @@ return /******/ (function(modules) { // webpackBootstrap componentManager.render('render', boundsAndScale, { checkedLegends: seriesVisibilityMap }, container); - this.chartContainer = container; this.paper = raphaelPaper; }; /** - * Rerender. - * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * protectedRerender + * @param {{line: Array., column: Array.}} checkedLegends checked legends * @param {?object} rawData rawData + * @ignore */ - ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + ChartBase.prototype.protectedRerender = function protectedRerender(checkedLegends, rawData) { var dataProcessor = this.dataProcessor; @@ -29070,20 +29080,125 @@ return /******/ (function(modules) { // webpackBootstrap this.componentManager.render('rerender', boundsAndScale, { checkedLegends: checkedLegends }, this.chartContainer); }; + /** + * rerender + * @param {{column: Array., line: Array.}} checkedLegends data that whether series has checked or not + * @param {object} rawData rawData + * @api + * @deprecated + */ + + + ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + checkedLegends = checkedLegends || this.getCheckedLegend(); + rawData = rawData || this.dataProcessor.getOriginalRawData(); + + var seriesData = rawData.series; + + rawData.series = Object.keys(seriesData).reduce(function (result, item) { + var series = seriesData[item]; + var checkedInfo = checkedLegends[item]; + + result[item] = series.map(function (seriesItem, index) { + seriesItem.visible = checkedInfo[index]; + + return seriesItem; + }); + + return result; + }, {}); + + this.setData(rawData); + }; + + /** + * setData + * @param {object} rawData rawData + * @api + */ + + + ChartBase.prototype.setData = function setData() { + var rawData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + var data = this._initializeRawData(rawData); + var dataProcessor = this.dataProcessor; + var _options = this.options, + chartType = _options.chartType, + themeOptions = _options.theme; + + + dataProcessor.initData(data, true); + + var theme = _themeManager2['default'].get(themeOptions, chartType, data.series); + + this.theme = theme; + this.componentManager.presetForChangeData(theme); + this.protectedRerender(dataProcessor.getLegendVisibility()); + }; + + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @api + */ + + + ChartBase.prototype.getCheckedLegend = function getCheckedLegend() { + var componentManager = this.componentManager, + dataProcessor = this.dataProcessor; + + var hasLegendComponent = componentManager.has('legend'); + + return hasLegendComponent ? componentManager.get('legend').getCheckedIndexes() : dataProcessor.getLegendVisibility(); + }; + + /** + * initialize rawData + * @param {object} rawData rawData + * @returns {object} - remaked rawData + * @private + */ + + + ChartBase.prototype._initializeRawData = function _initializeRawData(rawData) { + var data = _objectUtil2['default'].deepCopy(rawData); + var _options2 = this.options, + chartType = _options2.chartType, + seriesOption = _options2.series; + + + if (chartType !== 'combo' && _tuiCodeSnippet2['default'].isArray(data.series)) { + var clonedSeries = data.series; + data.series = {}; + data.series[chartType] = clonedSeries; + } + + _rawDataHandler2['default'].updateRawSeriesDataByOptions(data, seriesOption); + + if (chartType === 'boxplot') { + _rawDataHandler2['default'].appendOutliersToSeriesData(data); + } + + return data; + }; + /** * On change checked legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds + * @ignore */ ChartBase.prototype.onChangeCheckedLegends = function onChangeCheckedLegends(checkedLegends, rawData, boundsParams) { - this.rerender(checkedLegends, rawData, boundsParams); + this.protectedRerender(checkedLegends, rawData, boundsParams); }; /** * Animate chart. + * @ignore */ @@ -29095,6 +29210,7 @@ return /******/ (function(modules) { // webpackBootstrap * Register of user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -29108,6 +29224,7 @@ return /******/ (function(modules) { // webpackBootstrap * Remove user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -29370,6 +29487,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} index - category index * @param {number} seriesIndex - series index * @returns {object} + * @private */ @@ -29728,14 +29846,13 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} name component name * @param {string} classType component factory name * @param {object} [params={}] optional params that for alternative charts + * @ignore */ ComponentManager.prototype.register = function register(name, classType) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var optionKey = void 0; - var index = params.index || 0; var componentFactory = COMPONENT_FACTORY_MAP[classType]; var componentType = componentFactory.componentType; @@ -29746,33 +29863,78 @@ return /******/ (function(modules) { // webpackBootstrap params.chartOptions = this.options; params.seriesTypes = this.seriesTypes; - if (componentType === 'axis') { - // Get theme and options by axis name - // As axis has 3 types(xAxis, yAxis, rightYAxis) - optionKey = name; - } else { - optionKey = componentType; - } + var optionKey = this._getOptionKey(componentType, name); - params.theme = this.theme[optionKey]; - params.options = this.options[optionKey]; + params.theme = this._makeTheme(optionKey, name); + params.options = this._makeOptions(optionKey, name, index); - if (!params.theme && optionKey === 'rightYAxis') { - params.theme = this.theme.yAxis; + params.dataProcessor = this.dataProcessor; + params.hasAxes = this.hasAxes; + params.isVertical = this.isVertical; + params.eventBus = this.eventBus; + + // alternative scale models for charts that do not use common scale models like maps + params.alternativeModel = this.alternativeModel; + + var component = componentFactory(params); + + // component creation can be refused by factory, according to option data + if (component) { + component.componentName = name; + component.componentType = componentType; + + this.components.push(component); + this.componentMap[name] = component; } + }; + + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ - if (!params.options && optionKey === 'rightYAxis') { - params.options = this.options.yAxis; + + ComponentManager.prototype.presetForChangeData = function presetForChangeData(theme) { + var _this = this; + + this.theme = theme; + this.components.forEach(function (component) { + if (component.presetForChangeData) { + var componentType = component.componentType, + componentName = component.componentName; + + var optionKey = _this._getOptionKey(componentType, componentName); + + component.presetForChangeData(_this._makeTheme(optionKey, componentName)); + } + }); + }; + + /** + * Make option + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @param {number} index index of chart for series option + * @returns {object} option + * @private + */ + + + ComponentManager.prototype._makeOptions = function _makeOptions(optionKey, name, index) { + var options = this.options[optionKey]; + + if (!options && optionKey === 'rightYAxis') { + options = this.options.yAxis; } if (optionKey === 'series') { this.seriesTypes.forEach(function (seriesType) { if (name.indexOf(seriesType) === 0) { - params.options = params.options[seriesType] || params.options; // For combo chart, options are set for each chart - params.theme = params.theme[seriesType]; // For combo, single chart, themes are set for each chart + options = options[seriesType] || options; // For combo chart, options are set for each chart - if (_tuiCodeSnippet2['default'].isArray(params.options)) { - params.options = params.options[index] || {}; + if (_tuiCodeSnippet2['default'].isArray(options)) { + options = options[index] || {}; } return false; @@ -29782,24 +29944,51 @@ return /******/ (function(modules) { // webpackBootstrap }); } - params.dataProcessor = this.dataProcessor; - params.hasAxes = this.hasAxes; - params.isVertical = this.isVertical; - params.eventBus = this.eventBus; + return options; + }; - // alternative scale models for charts that do not use common scale models like maps - params.alternativeModel = this.alternativeModel; + /** + * Make option key + * @param {string} type type of component + * @param {name} name name of component + * @returns {string} optionKey Key on which to create the option. + * @private + */ - var component = componentFactory(params); - // component creation can be refused by factory, according to option data - if (component) { - component.componentName = name; - component.componentType = componentType; + ComponentManager.prototype._getOptionKey = function _getOptionKey(type, name) { + return type === 'axis' ? name : type; + }; - this.components.push(component); - this.componentMap[name] = component; + /** + * Make theme + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @returns {object} theme + * @private + */ + + + ComponentManager.prototype._makeTheme = function _makeTheme(optionKey, name) { + var theme = this.theme[optionKey]; + + if (!theme && optionKey === 'rightYAxis') { + theme = this.theme.yAxis; } + + if (optionKey === 'series') { + this.seriesTypes.forEach(function (seriesType) { + if (name.indexOf(seriesType) === 0) { + theme = theme[seriesType]; // For combo, single chart, themes are set for each chart + + return false; + } + + return true; + }); + } + + return theme; }; /** @@ -29855,7 +30044,7 @@ return /******/ (function(modules) { // webpackBootstrap ComponentManager.prototype.render = function render(funcName, boundsAndScale, additionalData, container) { - var _this = this; + var _this2 = this; var elements = this.components.map(function (component) { var element = null; @@ -29863,8 +30052,8 @@ return /******/ (function(modules) { // webpackBootstrap if (component[funcName]) { var name = component.componentName; var type = component.componentType; - var paper = _this.drawingToolPicker.getPaper(container, component.drawingType); - var data = _this._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); + var paper = _this2.drawingToolPicker.getPaper(container, component.drawingType); + var data = _this2._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); var result = component[funcName](data); @@ -30853,6 +31042,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function Plot(params) { _classCallCheck(this, Plot); @@ -30917,6 +31107,19 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Plot.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + }; + /** * Render plot area. * @param {object} paper paper object @@ -31782,6 +31985,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} params.theme title theme * @param {object} params.options title options * @param {object} params.text title text content + * @ignore */ function Title(params) { _classCallCheck(this, Title); @@ -31982,6 +32186,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function RadialPlot(params) { _classCallCheck(this, RadialPlot); @@ -33964,6 +34169,27 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Legend.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + + this.legendModel = new _legendModel2['default']({ + theme: this.theme, + labels: this.dataProcessor.getLegendLabels(), + legendData: this.dataProcessor.getLegendData(), + seriesTypes: this.seriesTypes, + chartType: this.chartType + }); + }; + /** * Set data for rendering. * @param {{ @@ -34002,7 +34228,6 @@ return /******/ (function(modules) { // webpackBootstrap Legend.prototype.render = function render(data) { this._render(data); - this._listenEvents(); }; @@ -34125,6 +34350,16 @@ return /******/ (function(modules) { // webpackBootstrap this.eventBus.fire('changeCheckedLegends', this.legendModel.getCheckedIndexes()); }; + /** + * Fire changeCheckedLegends public event. + * @private + */ + + + Legend.prototype._fireChangeCheckedLegendsPublicEvent = function _fireChangeCheckedLegendsPublicEvent() { + this.eventBus.fire(PUBLIC_EVENT_PREFIX + 'changeCheckedLegends', this.legendModel.getCheckedIndexes()); + }; + /** * Fire selectLegend event. * @param {{chartType: string, index: number}} data data @@ -34201,6 +34436,17 @@ return /******/ (function(modules) { // webpackBootstrap return checkedIndexes; }; + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @ignore + */ + + + Legend.prototype.getCheckedIndexes = function getCheckedIndexes() { + return this.legendModel.getCheckedIndexes(); + }; + /** * Check legend. * @private @@ -34215,6 +34461,7 @@ return /******/ (function(modules) { // webpackBootstrap } this._fireChangeCheckedLegendsEvent(); + this._fireChangeCheckedLegendsPublicEvent(); if (selectedData) { this._fireSelectLegendEvent(selectedData); @@ -34643,10 +34890,14 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype._addSendingDatum = function _addSendingDatum(index) { var legendDatum = this.getDatum(index); - if (!this.checkedIndexesMap[legendDatum.chartType]) { - this.checkedIndexesMap[legendDatum.chartType] = []; + var chartType = legendDatum.chartType, + chartIndex = legendDatum.index; + + + if (!this.checkedIndexesMap[chartType]) { + this.checkedIndexesMap[chartType] = new Array(this.labels[chartType].length).fill(false); } - this.checkedIndexesMap[legendDatum.chartType][legendDatum.index] = true; + this.checkedIndexesMap[chartType][chartIndex] = true; }; /** @@ -34667,7 +34918,15 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.getCheckedIndexes = function getCheckedIndexes() { - return this.checkedIndexesMap; + var _this3 = this; + + return Object.keys(this.checkedIndexesMap).reduce(function (booleanizeObject, chartType) { + booleanizeObject[chartType] = Array.from(_this3.checkedIndexesMap[chartType], function (checked) { + return !!checked; + }); + + return booleanizeObject; + }, {}); }; /** @@ -34688,12 +34947,12 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.updateCheckedLegendsWith = function updateCheckedLegendsWith(indexes) { - var _this3 = this; + var _this4 = this; this._resetCheckedData(); indexes.forEach(function (index) { - _this3._updateCheckedIndex(index); - _this3._addSendingDatum(index); + _this4._updateCheckedIndex(index); + _this4._addSendingDatum(index); }); this._setData(); }; @@ -36052,6 +36311,20 @@ return /******/ (function(modules) { // webpackBootstrap this._attachToEventBus(); } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + TooltipBase.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + this.originalTheme = _objectUtil2['default'].deepCopy(theme); + }; + /** * Attach to event bus. * @private @@ -42139,7 +42412,6 @@ return /******/ (function(modules) { // webpackBootstrap * Theme * @type {object} */ - this.orgTheme = this.theme = params.theme; /** @@ -42262,6 +42534,23 @@ return /******/ (function(modules) { // webpackBootstrap return decorateFunc(targetLabel, labelPrefix, labelSuffix); }; + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Series.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.orgTheme; + + this.orgTheme = theme; + this.theme = theme; + if (this.chartType === 'treemap') { + this.boundMap = null; + } + }; + /** * Attach to event bus. * @private @@ -49077,16 +49366,24 @@ return /******/ (function(modules) { // webpackBootstrap /** * Initialize data. * @param {rawData} rawData raw data + * @param {boolean} originalChange whether the original has changed */ DataProcessor.prototype.initData = function initData(rawData) { + var originalChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + /** * raw data * @type {rawData} */ this.rawData = rawData; + if (originalChange) { + this.originalRawData = _objectUtil2['default'].deepCopy(rawData); + this.originalLegendData = null; + } + /** * categoriesMap * @type {null|object} @@ -49111,6 +49408,18 @@ return /******/ (function(modules) { // webpackBootstrap */ this.seriesDataModelMap = {}; + /** + * legendVisiblities + * @type {{column: Array., line: Array. | Array.}} + */ + this.legendVisibilities = null; + + /** + * zoomed raw data + * @type {object} zoomed raw data + */ + this.zoomedRawData = null; + /** * SeriesGroups * @type {Array.} @@ -50839,6 +51148,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} options - options * @param {Array.} formatFunctions - format functions * @param {boolean} isCoordinateType - whether coordinate type or not + * @private */ function SeriesDataModel(rawSeriesData, chartType, options, formatFunctions, isCoordinateType) { _classCallCheck(this, SeriesDataModel); @@ -52483,6 +52793,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} chartType - chart type * @param {object} options - options * @param {Array.} formatFunctions - format functions + * @private */ function SeriesDataModelForBoxplot(rawSeriesData, chartType, options, formatFunctions) { _classCallCheck(this, SeriesDataModelForBoxplot); @@ -57747,6 +58058,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -58186,7 +58498,7 @@ return /******/ (function(modules) { // webpackBootstrap } this.checkedLegends = checkedLegends; - chart.rerender(checkedLegends, rawData, boundsParams); + chart.protectedRerender(checkedLegends, rawData, boundsParams); if (!pastPaused) { setTimeout(function () { @@ -58345,6 +58657,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _areaChartSeries2['default']; @@ -58356,6 +58669,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -58369,6 +58683,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds * @override + * @ignore */ @@ -58381,6 +58696,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data ratios. * from axisTypeMixer * @override + * @ignore */ @@ -58410,6 +58726,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components * @override + * @ignore */ @@ -58433,6 +58750,7 @@ return /******/ (function(modules) { // webpackBootstrap * from lineTypeMixer * @returns {{xAxis: ?{valueType:string}, yAxis: ?(boolean|{valueType:string})}} * @override + * @ignore */ @@ -58520,6 +58838,7 @@ return /******/ (function(modules) { // webpackBootstrap * nnfrom chart/zoomMixer * @param {Array.} indexRange - index range for zoom * @override + * @ignore */ @@ -58533,6 +58852,7 @@ return /******/ (function(modules) { // webpackBootstrap * On reset zoom. * from chart/zoomMixer * @override + * @ignore */ @@ -58656,6 +58976,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -58670,7 +58991,7 @@ return /******/ (function(modules) { // webpackBootstrap this.chartTypes = typeData.chartTypes; this.seriesTypes = typeData.seriesTypes; - this.rerender(checkedLegends, rawData, typeData); + this.protectedRerender(checkedLegends, rawData, typeData); }; /** @@ -59108,6 +59429,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * yAxis options * @type {object} + * @ignore */ var _this = _possibleConstructorReturn(this, _ChartBase.call(this, { rawData: rawData, @@ -59134,6 +59456,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -59251,6 +59574,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -60703,6 +61027,7 @@ return /******/ (function(modules) { // webpackBootstrap * @constructs MapChartMapModel * @param {MapChartDataProcessor} dataProcessor Map chart data processor * @param {Array.<{name: string, path: string, labelCoordinate: ?{x: number, y:number}}>} rawMapData raw map data + * @ignore */ function MapChartMapModel(dataProcessor, rawMapData) { _classCallCheck(this, MapChartMapModel); @@ -61420,6 +61745,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _lineChartSeries2['default']; return _this; @@ -61569,6 +61895,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ diff --git a/dist/tui-chart-all.min.js b/dist/tui-chart-all.min.js index 06281c2d8..45fc31209 100644 --- a/dist/tui-chart-all.min.js +++ b/dist/tui-chart-all.min.js @@ -2,30 +2,30 @@ * tui-chart-all.min * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:40:45 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:00 GMT+0900 (KST)" */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.chart=e():(t.tui=t.tui||{},t.tui.chart=e())}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){i(2),t.exports=i(328)},,function(t,e,i){(function(t){"use strict";function e(t,e,i){t[e]||Object[n](t,e,{writable:!0,configurable:!0,value:i})}if(i(3),i(324),i(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,i){i(4),i(52),i(53),i(54),i(55),i(57),i(60),i(61),i(62),i(63),i(64),i(65),i(66),i(67),i(68),i(70),i(72),i(74),i(76),i(79),i(80),i(81),i(85),i(87),i(89),i(92),i(93),i(94),i(95),i(97),i(98),i(99),i(100),i(101),i(102),i(103),i(105),i(106),i(107),i(109),i(110),i(111),i(113),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(125),i(126),i(127),i(132),i(133),i(137),i(138),i(139),i(140),i(142),i(143),i(144),i(145),i(146),i(147),i(148),i(149),i(150),i(151),i(152),i(153),i(154),i(155),i(156),i(158),i(159),i(161),i(162),i(168),i(169),i(171),i(172),i(173),i(177),i(178),i(179),i(180),i(181),i(183),i(184),i(185),i(186),i(189),i(191),i(192),i(193),i(195),i(197),i(199),i(200),i(201),i(203),i(204),i(205),i(206),i(217),i(221),i(222),i(224),i(225),i(229),i(230),i(232),i(233),i(234),i(235),i(236),i(237),i(238),i(239),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250),i(252),i(253),i(254),i(255),i(256),i(258),i(259),i(260),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(271),i(272),i(274),i(275),i(276),i(277),i(280),i(281),i(283),i(284),i(285),i(286),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(297),i(299),i(300),i(301),i(302),i(303),i(304),i(305),i(306),i(307),i(308),i(309),i(311),i(312),i(313),i(314),i(315),i(316),i(317),i(318),i(319),i(320),i(321),i(322),i(323),t.exports=i(10)},function(t,e,i){"use strict";var n=i(5),r=i(6),o=i(7),a=i(9),s=i(19),u=i(23).KEY,l=i(8),c=i(24),h=i(26),f=i(20),p=i(27),d=i(28),y=i(29),g=i(30),m=i(45),v=i(13),_=i(14),x=i(33),b=i(17),T=i(18),E=i(46),A=i(49),S=i(51),w=i(12),D=i(31),M=S.f,C=w.f,L=A.f,P=n.Symbol,k=n.JSON,O=k&&k.stringify,R="prototype",I=p("_hidden"),B=p("toPrimitive"),N={}.propertyIsEnumerable,F=c("symbol-registry"),G=c("symbols"),H=c("op-symbols"),V=Object[R],j="function"==typeof P,z=n.QObject,W=!z||!z[R]||!z[R].findChild,Y=o&&l(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=M(V,e);n&&delete V[e],C(t,e,i),n&&t!==V&&C(V,e,n)}:C,U=function(t){var e=G[t]=E(P[R]);return e._k=t,e},X=j&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,i){return t===V&&Z(H,e,i),v(t),e=b(e,!0),v(i),r(G,e)?(i.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),i=E(i,{enumerable:T(0,!1)})):(r(t,I)||C(t,I,T(1,{})),t[I][e]=!0),Y(t,e,i)):C(t,e,i)},K=function(t,e){v(t);for(var i,n=g(e=x(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},q=function(t,e){return void 0===e?E(t):K(E(t),e)},J=function(t){var e=N.call(this,t=b(t,!0));return!(this===V&&r(G,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=b(e,!0),t!==V||!r(G,e)||r(H,e)){var i=M(t,e);return!i||!r(G,e)||r(t,I)&&t[I][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=L(x(t)),n=[],o=0;i.length>o;)r(G,e=i[o++])||e==I||e==u||n.push(e);return n},tt=function(t){for(var e,i=t===V,n=L(i?H:x(t)),o=[],a=0;n.length>a;)!r(G,e=n[a++])||i&&!r(V,e)||o.push(G[e]);return o};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),Y(this,t,T(1,i))};return o&&W&&Y(V,t,{configurable:!0,set:e}),U(t)},s(P[R],"toString",function(){return this._k}),S.f=Q,w.f=Z,i(50).f=A.f=$,i(44).f=J,i(43).f=tt,o&&!i(25)&&s(V,"propertyIsEnumerable",J,!0),d.f=function(t){return U(p(t))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)p(et[it++]);for(var nt=D(p.store),rt=0;nt.length>rt;)y(nt[rt++]);a(a.S+a.F*!j,"Symbol",{"for":function(t){return r(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),k&&a(a.S+a.F*(!j||l(function(){var t=P();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!X(e))return e}),n[1]=e,O.apply(k,n)}}),P[R][B]||i(11)(P[R],B,P[R].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){t.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,i){var n=i(5),r=i(10),o=i(11),a=i(19),s=i(21),u="prototype",l=function(t,e,i){var c,h,f,p,d=t&l.F,y=t&l.G,g=t&l.S,m=t&l.P,v=t&l.B,_=y?n:g?n[e]||(n[e]={}):(n[e]||{})[u],x=y?r:r[e]||(r[e]={}),b=x[u]||(x[u]={});y&&(i=e);for(c in i)h=!d&&_&&void 0!==_[c],f=(h?_:i)[c],p=v&&h?s(f,n):m&&"function"==typeof f?s(Function.call,f):f,_&&a(_,c,f,t&l.U),x[c]!=f&&o(x,c,p),m&&b[c]!=f&&(b[c]=f)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(12),r=i(18);t.exports=i(7)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(13),r=i(15),o=i(17),a=Object.defineProperty;e.f=i(7)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(s){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(14);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){t.exports=!i(7)&&!i(8)(function(){return 7!=Object.defineProperty(i(16)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(14),r=i(5).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(5),r=i(11),o=i(6),a=i(20)("src"),s="toString",u=Function[s],l=(""+u).split(s);i(10).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,i,s){var u="function"==typeof i;u&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(u&&(o(i,a)||r(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(20)("meta"),r=i(14),o=i(6),a=i(12).f,s=0,u=Object.isExtensible||function(){return!0},l=!i(8)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},p=function(t){return l&&d.NEED&&u(t)&&!o(t,n)&&c(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},function(t,e,i){var n=i(10),r=i(5),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,i){var n=i(12).f,r=i(6),o=i(27)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(24)("wks"),r=i(20),o=i(5).Symbol,a="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=n},function(t,e,i){e.f=i(27)},function(t,e,i){var n=i(5),r=i(10),o=i(25),a=i(28),s=i(12).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var n=i(31),r=i(43),o=i(44);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,i){var n=i(32),r=i(42);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){var n=i(6),r=i(33),o=i(37)(!1),a=i(41)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),u=0,l=[];for(i in s)i!=a&&n(s,i)&&l.push(i);for(;e.length>u;)n(s,i=e[u++])&&(~o(l,i)||l.push(i));return l}},function(t,e,i){var n=i(34),r=i(36);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(33),r=i(38),o=i(40);t.exports=function(t){return function(e,i,a){var s,u=n(e),l=r(u.length),c=o(a,l);if(t&&i!=i){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var n=i(39),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(39),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},function(t,e,i){var n=i(24)("keys"),r=i(20);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(35);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(13),r=i(47),o=i(42),a=i(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var t,e=i(16)("iframe"),n=o.length,r="<",a=">";for(e.style.display="none",i(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),l=t.F;n--;)delete l[u][o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[u]=n(t),i=new s,s[u]=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},function(t,e,i){var n=i(12),r=i(13),o=i(31);t.exports=i(7)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,u=0;s>u;)n.f(t,i=a[u++],e[i]);return t}},function(t,e,i){var n=i(5).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(33),r=i(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},function(t,e,i){var n=i(32),r=i(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(44),r=i(18),o=i(33),a=i(17),s=i(6),u=i(15),l=Object.getOwnPropertyDescriptor;e.f=i(7)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(i){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(9);n(n.S,"Object",{create:i(46)})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperty:i(12).f})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperties:i(47)})},function(t,e,i){var n=i(33),r=i(51).f;i(56)("getOwnPropertyDescriptor",function(){return function(t,e){return r(n(t),e)}})},function(t,e,i){var n=i(9),r=i(10),o=i(8);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},function(t,e,i){var n=i(58),r=i(59);i(56)("getPrototypeOf",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(36);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(6),r=i(58),o=i(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){var n=i(58),r=i(31);i(56)("keys",function(){return function(t){return r(n(t))}})},function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(49).f})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("freeze",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("seal",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("preventExtensions",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14);i(56)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(9);n(n.S+n.F,"Object",{assign:i(69)})},function(t,e,i){"use strict";var n=i(31),r=i(43),o=i(44),a=i(58),s=i(34),u=Object.assign;t.exports=!u||i(8)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=a(t),u=arguments.length,l=1,c=r.f,h=o.f;u>l;)for(var f,p=s(arguments[l++]),d=c?n(p).concat(c(p)):n(p),y=d.length,g=0;y>g;)h.call(p,f=d[g++])&&(i[f]=p[f]);return i}:u},function(t,e,i){var n=i(9);n(n.S,"Object",{is:i(71)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,i){var n=i(9);n(n.S,"Object",{setPrototypeOf:i(73).set})},function(t,e,i){var n=i(14),r=i(13),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i(21)(Function.call,i(51).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},function(t,e,i){"use strict";var n=i(75),r={};r[i(27)("toStringTag")]="z",r+""!="[object z]"&&i(19)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(35),r=i(27)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(9);n(n.P,"Function",{bind:i(77)})},function(t,e,i){"use strict";var n=i(22),r=i(14),o=i(78),a=[].slice,s={},u=function(t,e,i){if(!(e in s)){for(var n=[],r=0;r>>0||(a.test(i)?16:10))}:n},function(t,e,i){var n=i(9),r=i(36),o=i(8),a=i(84),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,i){var r={},s=o(function(){return!!a[t]()||u[t]()!=u}),l=r[t]=s?e(f):a[t];i&&(r[i]=l),n(n.P+n.F*s,"String",r)},f=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},function(t,e){t.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(9),r=i(86);n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},function(t,e,i){var n=i(5).parseFloat,r=i(83).trim;t.exports=1/n(i(84)+"-0")!==-(1/0)?function(t){var e=r(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){"use strict";var n=i(5),r=i(6),o=i(35),a=i(88),s=i(17),u=i(8),l=i(50).f,c=i(51).f,h=i(12).f,f=i(83).trim,p="Number",d=n[p],y=d,g=d.prototype,m=o(i(46)(g))==p,v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():f(e,3);var i,n,r,o=e.charCodeAt(0);if(43===o||45===o){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;lr)return NaN;return parseInt(u,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof d&&(m?u(function(){g.valueOf.call(i)}):o(i)!=p)?a(new y(_(e)),i,d):_(e)};for(var x,b=i(7)?l(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;b.length>T;T++)r(y,x=b[T])&&!r(d,x)&&h(d,x,c(y,x));d.prototype=g,g.constructor=d,i(19)(n,p,d)}},function(t,e,i){var n=i(14),r=i(73).set;t.exports=function(t,e,i){var o,a=e.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,i){"use strict";var n=i(9),r=i(39),o=i(90),a=i(91),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h="0",f=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=u(n/1e7)},p=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=u(i/t),i=i%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+a.call(h,7-i.length)+i}return e},y=function(t,e,i){return 0===e?i:e%2===1?y(t,e-1,i*t):y(t*t,e/2,i)},g=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(8)(function(){s.call({})})),"Number",{toFixed:function(t){var e,i,n,s,u=o(this,c),l=r(t),m="",v=h;if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=g(u*y(2,69,1))-69,i=e<0?u*y(2,-e,1):u/y(2,e,1),i*=4503599627370496,e=52-e,e>0){for(f(0,i),n=l;n>=7;)f(1e7,0),n-=7;for(f(y(10,n,1),0),n=e-1;n>=23;)p(1<<23),n-=23;p(1<0?(s=v.length,v=m+(s<=l?"0."+a.call(h,l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l))):v=m+v,v}})},function(t,e,i){var n=i(35);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){"use strict";var n=i(39),r=i(36);t.exports=function(t){var e=String(r(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},function(t,e,i){"use strict";var n=i(9),r=i(8),o=i(90),a=1..toPrecision;n(n.P+n.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(9),r=i(5).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{isInteger:i(96)})},function(t,e,i){var n=i(14),r=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&r(t)===t}},function(t,e,i){var n=i(9);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(9),r=i(96),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,i){var n=i(9);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(9);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(9),r=i(86);n(n.S+n.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,i){var n=i(9),r=i(82);n(n.S+n.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,i){var n=i(9),r=i(104),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var r=i(9),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(9),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(9),r=i(108);n(n.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,i){var n=i(9);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(9),r=Math.exp;n(n.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,i){var n=i(9),r=i(112);n(n.S+n.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||i(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(9);n(n.S,"Math",{fround:i(114)})},function(t,e,i){var n=i(108),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),u=r(2,-126),l=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,i,r=Math.abs(t),c=n(t);return rs||i!=i?c*(1/0):c*i)}},function(t,e,i){var n=i(9),r=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,o=0,a=0,s=arguments.length,u=0;a0?(n=i/u,o+=n*n):o+=i;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,i){var n=i(9),r=Math.imul;n(n.S+n.F*i(8)(function(){return r(4294967295,5)!=-5||2!=r.length}),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,a=i&r;return 0|o*a+((i&n>>>16)*a+o*(i&r>>>16)<<16>>>0)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log1p:i(104)})},function(t,e,i){var n=i(9);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(9);n(n.S,"Math",{sign:i(108)})},function(t,e,i){var n=i(9),r=i(112),o=Math.exp;n(n.S+n.F*i(8)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(9),r=i(112),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=r(t=+t),i=r(-t);return e==1/0?1:i==1/0?-1:(e-i)/(o(t)+o(-t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(9),r=i(40),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(9),r=i(33),o=i(38);n(n.S,"String",{raw:function(t){for(var e=r(t.raw),i=o(e.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(39),r=i(36);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,i){"use strict";var n=i(25),r=i(9),o=i(19),a=i(11),s=i(130),u=i(131),l=i(26),c=i(59),h=i(27)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",y="values",g=function(){return this};t.exports=function(t,e,i,m,v,_,x){u(i,e,m);var b,T,E,A=function(t){if(!f&&t in M)return M[t];switch(t){case d:return function(){return new i(this,t)};case y:return function(){return new i(this,t)}}return function(){return new i(this,t)}},S=e+" Iterator",w=v==y,D=!1,M=t.prototype,C=M[h]||M[p]||v&&M[v],L=C||A(v),P=v?w?A("entries"):L:void 0,k="Array"==e?M.entries||C:C;if(k&&(E=c(k.call(new t)),E!==Object.prototype&&E.next&&(l(E,S,!0),n||"function"==typeof E[h]||a(E,h,g))),w&&C&&C.name!==y&&(D=!0,L=function(){return C.call(this)}),n&&!x||!f&&!D&&M[h]||a(M,h,L),s[e]=L,s[S]=g,v)if(b={values:w?L:A(y),keys:_?L:A(d),entries:P},x)for(T in b)T in M||o(M,T,b[T]);else r(r.P+r.F*(f||D),e,b);return b}},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(46),r=i(18),o=i(26),a={};i(11)(a,i(27)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},function(t,e,i){"use strict";var n=i(9),r=i(128)(!1);n(n.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(9),r=i(38),o=i(134),a="endsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{endsWith:function(t){var e=o(this,t,a),i=arguments.length>1?arguments[1]:void 0,n=r(e.length),u=void 0===i?n:Math.min(r(i),n),l=String(t);return s?s.call(e,l,u):e.slice(u-l.length,u)===l}})},function(t,e,i){var n=i(135),r=i(36);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},function(t,e,i){var n=i(14),r=i(35),o=i(27)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,i){var n=i(27)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(r){}}return!0}},function(t,e,i){"use strict";var n=i(9),r=i(134),o="includes";n(n.P+n.F*i(136)(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(9);n(n.P,"String",{repeat:i(91)})},function(t,e,i){"use strict";var n=i(9),r=i(38),o=i(134),a="startsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{startsWith:function(t){var e=o(this,t,a),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){"use strict";i(141)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){var n=i(9),r=i(8),o=i(36),a=/"/g,s=function(t,e,i,n){var r=String(o(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";i(141)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){"use strict";i(141)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){"use strict";i(141)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){"use strict";i(141)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){"use strict";i(141)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){"use strict";i(141)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){"use strict";i(141)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){"use strict";i(141)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){"use strict";i(141)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){"use strict";i(141)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){"use strict";i(141)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){"use strict";i(141)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(9);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17);n(n.P+n.F*i(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),i=o(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(9),r=i(157);n(n.P+n.F*(Date.prototype.toISOString!==r),"Date",{ -toISOString:r})},function(t,e,i){"use strict";var n=i(8),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}:o},function(t,e,i){var n=Date.prototype,r="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=r&&i(19)(n,o,function(){var t=s.call(this);return t===t?a.call(this):r})},function(t,e,i){var n=i(27)("toPrimitive"),r=Date.prototype;n in r||i(11)(r,n,i(160))},function(t,e,i){"use strict";var n=i(13),r=i(17),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return r(n(this),t!=o)}},function(t,e,i){var n=i(9);n(n.S,"Array",{isArray:i(45)})},function(t,e,i){"use strict";var n=i(21),r=i(9),o=i(58),a=i(163),s=i(164),u=i(38),l=i(165),c=i(166);r(r.S+r.F*!i(167)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,r,h,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,g=void 0!==y,m=0,v=c(f);if(g&&(y=n(y,d>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(e=u(f.length),i=new p(e);e>m;m++)l(i,m,g?y(f[m],m):f[m]);else for(h=v.call(f),i=new p;!(r=h.next()).done;m++)l(i,m,g?a(h,y,[r.value,m],!0):r.value);return i.length=m,i}})},function(t,e,i){var n=i(13);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(o){var a=t["return"];throw void 0!==a&&n(a.call(t)),o}}},function(t,e,i){var n=i(130),r=i(27)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},function(t,e,i){"use strict";var n=i(12),r=i(18);t.exports=function(t,e,i){e in t?n.f(t,e,r(0,i)):t[e]=i}},function(t,e,i){var n=i(75),r=i(27)("iterator"),o=i(130);t.exports=i(10).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},function(t,e,i){var n=i(27)("iterator"),r=!1;try{var o=[7][n]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:i=!0}},o[n]=function(){return a},t(o)}catch(s){}return i}},function(t,e,i){"use strict";var n=i(9),r=i(165);n(n.S+n.F*i(8)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)r(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(9),r=i(33),o=[].join;n(n.P+n.F*(i(34)!=Object||!i(170)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(8);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){"use strict";var n=i(9),r=i(48),o=i(35),a=i(40),s=i(38),u=[].slice;n(n.P+n.F*i(8)(function(){r&&u.call(r)}),"Array",{slice:function(t,e){var i=s(this.length),n=o(this);if(e=void 0===e?i:e,"Array"==n)return u.call(this,t,e);for(var r=a(t,i),l=a(e,i),c=s(l-r),h=new Array(c),f=0;fb;b++)if((f||b in v)&&(y=v[b],g=_(y,b,m),t))if(i)T[b]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:T.push(y)}else if(c)return!1;return h?-1:l||c?c:T}}},function(t,e,i){var n=i(176);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(14),r=i(45),o=i(27)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(9),r=i(174)(1);n(n.P+n.F*!i(170)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(2);n(n.P+n.F*!i(170)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(3);n(n.P+n.F*!i(170)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(4);n(n.P+n.F*!i(170)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(182);n(n.P+n.F*!i(170)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){var n=i(22),r=i(58),o=i(34),a=i(38);t.exports=function(t,e,i,s,u){n(e);var l=r(t),c=o(l),h=a(l.length),f=u?h-1:0,p=u?-1:1;if(i<2)for(;;){if(f in c){s=c[f],f+=p;break}if(f+=p,u?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:h>f;f+=p)f in c&&(s=e(s,c[f],f,l));return s}},function(t,e,i){"use strict";var n=i(9),r=i(182);n(n.P+n.F*!i(170)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(9),r=i(37)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!i(170)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(33),o=i(39),a=i(38),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(u||!i(170)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=r(this),i=a(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(9);n(n.P,"Array",{copyWithin:i(187)}),i(188)("copyWithin")},function(t,e,i){"use strict";var n=i(58),r=i(40),o=i(38);t.exports=[].copyWithin||function(t,e){var i=n(this),a=o(i.length),s=r(t,a),u=r(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:r(l,a))-u,a-s),h=1;for(u0;)u in i?i[s]=i[u]:delete i[s],s+=h,u+=h;return i}},function(t,e,i){var n=i(27)("unscopables"),r=Array.prototype;void 0==r[n]&&i(11)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,i){var n=i(9);n(n.P,"Array",{fill:i(190)}),i(188)("fill")},function(t,e,i){"use strict";var n=i(58),r=i(40),o=i(38);t.exports=function(t){for(var e=n(this),i=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:r(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){"use strict";var n=i(9),r=i(174)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(o)},function(t,e,i){"use strict";var n=i(9),r=i(174)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(o)},function(t,e,i){i(194)("Array")},function(t,e,i){"use strict";var n=i(5),r=i(12),o=i(7),a=i(27)("species");t.exports=function(t){var e=n[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(188),r=i(196),o=i(130),a=i(33);t.exports=i(129)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(5),r=i(88),o=i(12).f,a=i(50).f,s=i(135),u=i(198),l=n.RegExp,c=l,h=l.prototype,f=/a/g,p=/a/g,d=new l(f)!==f;if(i(7)&&(!d||i(8)(function(){return p[i(27)("match")]=!1,l(f)!=f||l(p)==p||"/a/i"!=l(f,"i")}))){l=function(t,e){var i=this instanceof l,n=s(t),o=void 0===e;return!i&&n&&t.constructor===l&&o?t:r(d?new c(n&&!o?t.source:t,e):c((n=t instanceof l)?t.source:t,n&&o?u.call(t):e),i?this:h,l)};for(var y=(function(t){t in l||o(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}),g=a(c),m=0;g.length>m;)y(g[m++]);h.constructor=l,l.prototype=h,i(19)(n,"RegExp",l)}i(194)("RegExp")},function(t,e,i){"use strict";var n=i(13);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){"use strict";i(200);var n=i(13),r=i(198),o=i(7),a="toString",s=/./[a],u=function(t){i(19)(RegExp.prototype,a,t,!0)};i(8)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(t,e,i){i(7)&&"g"!=/./g.flags&&i(12).f(RegExp.prototype,"flags",{configurable:!0,get:i(198)})},function(t,e,i){i(202)("match",1,function(t,e,i){return[function(i){"use strict";var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){"use strict";var n=i(11),r=i(19),o=i(8),a=i(36),s=i(27);t.exports=function(t,e,i){var u=s(t),l=i(a,u,""[t]),c=l[0],h=l[1];o(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(r(String.prototype,t,c),n(RegExp.prototype,u,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,i){i(202)("replace",2,function(t,e,i){return[function(n,r){"use strict";var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},i]})},function(t,e,i){i(202)("search",1,function(t,e,i){return[function(i){"use strict";var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){i(202)("split",2,function(t,e,n){"use strict";var r=i(135),o=n,a=[].push,s="split",u="length",l="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];n=function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return o.call(i,t,e);var n,s,h,f,p,d=[],y=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,y+"g");for(c||(n=new RegExp("^"+v.source+"$(?!\\s)",y));(s=v.exec(i))&&(h=s.index+s[0][u],!(h>g&&(d.push(i.slice(g,s.index)),!c&&s[u]>1&&s[0].replace(n,function(){for(p=1;p1&&s.index=m)));)v[l]===s.index&&v[l]++;return g===i[u]?!f&&v.test("")||d.push(""):d.push(i.slice(g)),d[u]>m?d.slice(0,m):d}}else"0"[s](void 0,0)[u]&&(n=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},n]})},function(t,e,i){"use strict";var n,r,o,a,s=i(25),u=i(5),l=i(21),c=i(75),h=i(9),f=i(14),p=i(22),d=i(207),y=i(208),g=i(209),m=i(210).set,v=i(211)(),_=i(212),x=i(213),b=i(214),T=i(215),E="Promise",A=u.TypeError,S=u.process,w=S&&S.versions,D=w&&w.v8||"",M=u[E],C="process"==c(S),L=function(){},P=r=_.f,k=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[i(27)("species")]=function(t){t(L,L)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==D.indexOf("6.6")&&b.indexOf("Chrome/66")===-1}catch(n){}}(),O=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var i=t._c;v(function(){for(var n=t._v,r=1==t._s,o=0,a=function(e){var i,o,a,s=r?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(r||(2==t._h&&N(t),t._h=1),s===!0?i=n:(c&&c.enter(),i=s(n),c&&(c.exit(),a=!0)),i===e.promise?l(A("Promise-chain cycle")):(o=O(i))?o.call(i,u,l):u(i)):l(n)}catch(h){c&&!a&&c.exit(),l(h)}};i.length>o;)a(i[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){m.call(u,function(){var e,i,n,r=t._v,o=B(t);if(o&&(e=x(function(){C?S.emit("unhandledRejection",r,t):(i=u.onunhandledrejection)?i({promise:t,reason:r}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=C||B(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,function(){var e;C?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},G=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw A("Promise can't be resolved itself");(e=O(t))?v(function(){var n={_w:i,_d:!1};try{e.call(t,l(G,n,1),l(F,n,1))}catch(r){F.call(n,r)}}):(i._v=t,i._s=1,R(i,!1))}catch(n){F.call({_w:i,_d:!1},n)}}};k||(M=function(t){d(this,M,E,"_h"),p(t),n.call(this);try{t(l(G,this,1),l(F,this,1))}catch(e){F.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(216)(M.prototype,{then:function(t,e){var i=P(g(this,M));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?S.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&R(this,!1),i.promise},"catch":function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=l(G,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===M||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!k,{Promise:M}),i(26)(M,E),i(194)(E),a=i(10)[E],h(h.S+h.F*!k,E,{reject:function(t){var e=P(this),i=e.reject;return i(t),e.promise}}),h(h.S+h.F*(s||!k),E,{resolve:function(t){return T(s&&this===a?M:this,t)}}),h(h.S+h.F*!(k&&i(167)(function(t){M.all(t)["catch"](L)})),E,{all:function(t){var e=this,i=P(e),n=i.resolve,r=i.reject,o=x(function(){var i=[],o=0,a=1;y(t,!1,function(t){var s=o++,u=!1;i.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,i[s]=t,--a||n(i))},r)}),--a||n(i)});return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=P(e),n=i.reject,r=x(function(){y(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(21),r=i(163),o=i(164),a=i(13),s=i(38),u=i(166),l={},c={},e=t.exports=function(t,e,i,h,f){var p,d,y,g,m=f?function(){return t}:u(t),v=n(i,h,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=s(t.length);p>_;_++)if(g=e?v(a(d=t[_])[0],d[1]):v(t[_]),g===l||g===c)return g}else for(y=m.call(t);!(d=y.next()).done;)if(g=r(y,v,d.value,e),g===l||g===c)return g};e.BREAK=l,e.RETURN=c},function(t,e,i){var n=i(13),r=i(22),o=i(27)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||void 0==(i=n(a)[o])?e:r(i)}},function(t,e,i){var n,r,o,a=i(21),s=i(78),u=i(48),l=i(16),c=i(5),h=c.process,f=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,y=c.Dispatch,g=0,m={},v="onreadystatechange",_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},n(g),g},p=function(t){delete m[t]},"process"==i(35)(h)?n=function(t){h.nextTick(a(_,t,1))}:y&&y.now?n=function(t){y.now(a(_,t,1))}:d?(r=new d,o=r.port2,r.port1.onmessage=x,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",x,!1)):n=v in l("script")?function(t){u.appendChild(l("script"))[v]=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,i){var n=i(5),r=i(210).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==i(35)(a);t.exports=function(){var t,e,i,l=function(){var n,r;for(u&&(n=a.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(o){throw t?i():e=void 0,o}}e=void 0,n&&n.enter()};if(u)i=function(){a.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);i=function(){c.then(l)}}else i=function(){r.call(n,l)};else{var h=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),i=function(){f.data=h=!h}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},function(t,e,i){"use strict";function n(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=r(e),this.reject=r(i)}var r=i(22);t.exports.f=function(t){return new n(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},function(t,e,i){var n=i(5),r=n.navigator;t.exports=r&&r.userAgent||""},function(t,e,i){var n=i(13),r=i(14),o=i(212);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t),a=i.resolve;return a(e),i.promise}},function(t,e,i){var n=i(19);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},function(t,e,i){"use strict";var n=i(218),r=i(219),o="Map";t.exports=i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(r(this,o),t);return e&&e.v},set:function(t,e){return n.def(r(this,o),0===t?0:t,e)}},n,!0)},function(t,e,i){"use strict";var n=i(12).f,r=i(46),o=i(216),a=i(21),s=i(207),u=i(208),l=i(129),c=i(196),h=i(194),f=i(7),p=i(23).fastKey,d=i(219),y=f?"_s":"size",g=function(t,e){var i,n=p(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var c=t(function(t,n){s(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[y]=0,void 0!=n&&u(n,i,t[l],t)});return o(c.prototype,{clear:function(){for(var t=d(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[y]=0},"delete":function(t){var i=d(this,e),n=g(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[y]--}return!!n},forEach:function(t){d(this,e);for(var i,n=a(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!g(d(this,e),t)}}),f&&n(c.prototype,"size",{get:function(){return d(this,e)[y]}}),c},def:function(t,e,i){var n,r,o=g(t,e);return o?o.v=i:(t._l=o={i:r=p(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[y]++,"F"!==r&&(t._i[r]=o)),t},getEntry:g,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=d(t,e),this._k=i,this._l=void 0},function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?"keys"==e?c(0,i.k):"values"==e?c(0,i.v):c(0,[i.k,i.v]):(t._t=void 0,c(1))},i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){"use strict";var n=i(5),r=i(9),o=i(19),a=i(216),s=i(23),u=i(208),l=i(207),c=i(14),h=i(8),f=i(167),p=i(26),d=i(88);t.exports=function(t,e,i,y,g,m){var v=n[t],_=v,x=g?"set":"add",b=_&&_.prototype,T={},E=function(t){var e=b[t];o(b,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof _&&(m||b.forEach&&!h(function(){(new _).entries().next()}))){var A=new _,S=A[x](m?{}:-0,1)!=A,w=h(function(){A.has(1)}),D=f(function(t){new _(t)}),M=!m&&h(function(){for(var t=new _,e=5;e--;)t[x](e,e);return!t.has(-0)});D||(_=e(function(e,i){l(e,_,t);var n=d(new v,e,_);return void 0!=i&&u(i,g,n[x],n),n}),_.prototype=b,b.constructor=_),(w||M)&&(E("delete"),E("has"),g&&E("get")),(M||S)&&E(x),m&&b.clear&&delete b.clear}else _=y.getConstructor(e,t,g,x),a(_.prototype,i),s.NEED=!0;return p(_,t),T[t]=_,r(r.G+r.W+r.F*(_!=v),T),m||y.setStrong(_,t,g),_}},function(t,e,i){"use strict";var n=i(218),r=i(219),o="Set";t.exports=i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,o),t=0===t?0:t,t)}},n)},function(t,e,i){"use strict";var n,r=i(174)(0),o=i(19),a=i(23),s=i(69),u=i(223),l=i(14),c=i(8),h=i(219),f="WeakMap",p=a.getWeak,d=Object.isExtensible,y=u.ufstore,g={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(l(t)){var e=p(t);return e===!0?y(h(this,f)).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(h(this,f),t,e)}},_=t.exports=i(220)(f,m,v,u,!0,!0);c(function(){return 7!=(new _).set((Object.freeze||Object)(g),7).get(g)})&&(n=u.getConstructor(m,f),s(n.prototype,v),a.NEED=!0,r(["delete","has","get","set"],function(t){var e=_.prototype,i=e[t];o(e,t,function(e,r){if(l(e)&&!d(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return i.call(this,e,r)})}))},function(t,e,i){"use strict";var n=i(216),r=i(23).getWeak,o=i(13),a=i(14),s=i(207),u=i(208),l=i(174),c=i(6),h=i(219),f=l(5),p=l(6),d=0,y=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return f(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var i=m(this,t);i?i[1]=e:this.a.push([t,e])},"delete":function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,o){var l=t(function(t,n){s(t,l,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=n&&u(n,i,t[o],t)});return n(l.prototype,{"delete":function(t){if(!a(t))return!1;var i=r(t);return i===!0?y(h(this,e))["delete"](t):i&&c(i,this._i)&&delete i[this._i]},has:function(t){if(!a(t))return!1;var i=r(t);return i===!0?y(h(this,e)).has(t):i&&c(i,this._i)}}),l},def:function(t,e,i){var n=r(o(e),!0);return n===!0?y(t).set(e,i):n[t._i]=i,t},ufstore:y}},function(t,e,i){"use strict";var n=i(223),r=i(219),o="WeakSet";i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,o),t,!0)}},n,!1,!0)},function(t,e,i){"use strict";var n=i(9),r=i(226),o=i(227),a=i(13),s=i(40),u=i(38),l=i(14),c=i(5).ArrayBuffer,h=i(209),f=o.ArrayBuffer,p=o.DataView,d=r.ABV&&c.isView,y=f.prototype.slice,g=r.VIEW,m="ArrayBuffer";n(n.G+n.W+n.F*(c!==f),{ArrayBuffer:f}),n(n.S+n.F*!r.CONSTR,m,{isView:function(t){return d&&d(t)||l(t)&&g in t}}),n(n.P+n.U+n.F*i(8)(function(){return!new f(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var i=a(this).byteLength,n=s(t,i),r=s(void 0===e?i:e,i),o=new(h(this,f))(u(r-n)),l=new p(this),c=new p(o),d=0;n>1,c=23===e?V(2,-24)-V(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for(t=H(t),t!=t||t===F?(r=t!=t?1:0,n=u):(n=j(z(t)/W),t*(o=V(2,-n))<1&&(n--,o*=2),t+=n+l>=1?c/o:c*V(2,1-l),t*o>=2&&(n++,o/=2),n+l>=u?(r=0,n=u):n+l>=1?(r=(t*o-1)*V(2,e),n+=l):(r=t*V(2,l-1)*V(2,e),n=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*f,a}function r(t,e,i){var n,r=8*i-e-1,o=(1<>1,s=r-7,u=i-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=e;s>0;n=256*n+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:l?-F:F;n+=V(2,e),c-=a}return(l?-1:1)*n*V(2,c-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function c(t){return n(t,23,4)}function h(t,e,i){w(t[P],e,{get:function(){return this[i]}})}function f(t,e,i,n){var r=+i,o=A(r);if(o+e>t[K])throw N(O);var a=t[Z]._b,s=o+t[q],u=a.slice(s,s+e);return n?u:u.reverse()}function p(t,e,i,n,r,o){var a=+i,s=A(a);if(s+e>t[K])throw N(O);for(var u=t[Z]._b,l=s+t[q],c=n(+r),h=0;htt;)(J=$[tt++])in R||v(R,J,G[J]);g||(Q.constructor=R)}var et=new I(new R(2)),it=I[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||_(I[P],{setInt8:function(t,e){it.call(this,t,e<<24>>24)},setUint8:function(t,e){it.call(this,t,e<<24>>24)}},!0)}else R=function(t){b(this,R,C);var e=A(t);this._b=D.call(new Array(e),0),this[K]=e},I=function(t,e,i){b(this,I,L),b(t,R,L);var n=t[K],r=T(e);if(r<0||r>n)throw N("Wrong offset!");if(i=void 0===i?n-r:E(i),r+i>n)throw N(k);this[Z]=t,this[q]=r,this[K]=i},y&&(h(R,U,"_l"),h(I,Y,"_b"),h(I,U,"_l"),h(I,X,"_o")),_(I[P],{getInt8:function(t){return f(this,1,t)[0]<<24>>24},getUint8:function(t){return f(this,1,t)[0]},getInt16:function(t){var e=f(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=f(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(f(this,4,t,arguments[1]))},getUint32:function(t){return o(f(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return r(f(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return r(f(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){p(this,1,t,a,e)},setUint8:function(t,e){p(this,1,t,a,e)},setInt16:function(t,e){p(this,2,t,s,e,arguments[2])},setUint16:function(t,e){p(this,2,t,s,e,arguments[2])},setInt32:function(t,e){p(this,4,t,u,e,arguments[2])},setUint32:function(t,e){p(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){p(this,4,t,c,e,arguments[2])},setFloat64:function(t,e){p(this,8,t,l,e,arguments[2])}});M(R,C),M(I,L),v(I[P],m.VIEW,!0),e[C]=R,e[L]=I},function(t,e,i){var n=i(39),r=i(38);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(9);n(n.G+n.W+n.F*!i(226).ABV,{DataView:i(227).DataView})},function(t,e,i){i(231)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){"use strict";if(i(7)){var n=i(25),r=i(5),o=i(8),a=i(9),s=i(226),u=i(227),l=i(21),c=i(207),h=i(18),f=i(11),p=i(216),d=i(39),y=i(38),g=i(228),m=i(40),v=i(17),_=i(6),x=i(75),b=i(14),T=i(58),E=i(164),A=i(46),S=i(59),w=i(50).f,D=i(166),M=i(20),C=i(27),L=i(174),P=i(37),k=i(209),O=i(195),R=i(130),I=i(167),B=i(194),N=i(190),F=i(187),G=i(12),H=i(51),V=G.f,j=H.f,z=r.RangeError,W=r.TypeError,Y=r.Uint8Array,U="ArrayBuffer",X="Shared"+U,Z="BYTES_PER_ELEMENT",K="prototype",q=Array[K],J=u.ArrayBuffer,Q=u.DataView,$=L(0),tt=L(2),et=L(3),it=L(4),nt=L(5),rt=L(6),ot=P(!0),at=P(!1),st=O.values,ut=O.keys,lt=O.entries,ct=q.lastIndexOf,ht=q.reduce,ft=q.reduceRight,pt=q.join,dt=q.sort,yt=q.slice,gt=q.toString,mt=q.toLocaleString,vt=C("iterator"),_t=C("toStringTag"),xt=M("typed_constructor"),bt=M("def_constructor"),Tt=s.CONSTR,Et=s.TYPED,At=s.VIEW,St="Wrong length!",wt=L(1,function(t,e){return Pt(k(t,t[bt]),e)}),Dt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Mt=!!Y&&!!Y[K].set&&o(function(){new Y(1).set({})}),Ct=function(t,e){var i=d(t);if(i<0||i%e)throw z("Wrong offset!");return i},Lt=function(t){if(b(t)&&Et in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(b(t)&&xt in t))throw W("It is not a typed array constructor!");return new t(e)},kt=function(t,e){return Ot(k(t,t[bt]),e)},Ot=function(t,e){for(var i=0,n=e.length,r=Pt(t,n);n>i;)r[i]=e[i++];return r},Rt=function(t,e,i){V(t,e,{get:function(){return this._d[i]}})},It=function(t){var e,i,n,r,o,a,s=T(t),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,f=D(s);if(void 0!=f&&!E(f)){for(a=f.call(s),n=[],e=0;!(o=a.next()).done;e++)n.push(o.value);s=n}for(h&&u>2&&(c=l(c,arguments[2],2)),e=0,i=y(s.length),r=Pt(this,i);i>e;e++)r[e]=h?c(s[e],e):s[e];return r},Bt=function(){for(var t=0,e=arguments.length,i=Pt(this,e);e>t;)i[t]=arguments[t++];return i},Nt=!!Y&&o(function(){mt.call(new Y(1))}),Ft=function(){return mt.apply(Nt?yt.call(Lt(this)):Lt(this),arguments)},Gt={copyWithin:function(t,e){return F.call(Lt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Lt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Lt(this),arguments)},filter:function(t){return kt(this,tt(Lt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(Lt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Lt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Lt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Lt(this),arguments)},lastIndexOf:function(t){return ct.apply(Lt(this),arguments)},map:function(t){return wt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(Lt(this),arguments)},reduceRight:function(t){return ft.apply(Lt(this),arguments)},reverse:function(){for(var t,e=this,i=Lt(e).length,n=Math.floor(i/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return dt.call(Lt(this),t)},subarray:function(t,e){var i=Lt(this),n=i.length,r=m(t,n);return new(k(i,i[bt]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,y((void 0===e?n:m(e,n))-r))}},Ht=function(t,e){return kt(this,yt.call(Lt(this),t,e))},Vt=function(t){Lt(this);var e=Ct(arguments[1],1),i=this.length,n=T(t),r=y(n.length),o=0;if(r+e>i)throw z(St);for(;o255?255:255&n),r.v[p](i*e+r.o,n,Dt)},C=function(t,e){V(t,e,{get:function(){return D(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};_?(d=i(function(t,i,n,r){c(t,d,l,"_d");var o,a,s,u,h=0,p=0;if(b(i)){if(!(i instanceof J||(u=x(i))==U||u==X))return Et in i?Ot(d,i):It.call(d,i);o=i,p=Ct(n,e);var m=i.byteLength;if(void 0===r){if(m%e)throw z(St);if(a=m-p,a<0)throw z(St)}else if(a=y(r)*e,a+p>m)throw z(St);s=a/e}else s=g(i),a=s*e,o=new J(a);for(f(t,"_d",{b:o,o:p,l:a,e:s,v:new Q(o)});h=i.length)return{value:void 0,done:!0};while(!((t=i[e._i++])in e._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,i){function n(t,e){var i,s,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(i=r.f(t,e))?a(i,"value")?i.value:void 0!==i.get?i.get.call(c):void 0:u(s=o(t))?n(s,e,c):void 0}var r=i(51),o=i(59),a=i(6),s=i(9),u=i(14),l=i(13);s(s.S,"Reflect",{get:n})},function(t,e,i){var n=i(51),r=i(9),o=i(13);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,i){var n=i(9),r=i(59),o=i(13);n(n.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(9),r=i(13),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{ownKeys:i(251)})},function(t,e,i){var n=i(50),r=i(43),o=i(13),a=i(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(o(t)),i=r.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(9),r=i(13),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(e){return!1}}})},function(t,e,i){function n(t,e,i){var u,f,p=arguments.length<4?t:arguments[3],d=o.f(c(t),e);if(!d){if(h(f=a(t)))return n(f,e,i,p);d=l(0)}if(s(d,"value")){if(d.writable===!1||!h(p))return!1;if(u=o.f(p,e)){if(u.get||u.set||u.writable===!1)return!1;u.value=i,r.f(p,e,u)}else r.f(p,e,l(0,i));return!0}return void 0!==d.set&&(d.set.call(p,i),!0)}var r=i(12),o=i(51),a=i(59),s=i(6),u=i(9),l=i(18),c=i(13),h=i(14);u(u.S,"Reflect",{set:n})},function(t,e,i){var n=i(9),r=i(73);r&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(i){return!1}}})},function(t,e,i){"use strict";var n=i(9),r=i(37)(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)("includes")},function(t,e,i){"use strict";var n=i(9),r=i(257),o=i(58),a=i(38),s=i(22),u=i(175);n(n.P,"Array",{flatMap:function(t){var e,i,n=o(this);return s(t),e=a(n.length),i=u(n,0),r(i,n,n,e,0,1,t,arguments[1]),i}}),i(188)("flatMap")},function(t,e,i){"use strict";function n(t,e,i,l,c,h,f,p){for(var d,y,g=c,m=0,v=!!f&&s(f,p,3);m0)g=n(t,e,d,a(d.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=d}g++}m++}return g}var r=i(45),o=i(14),a=i(38),s=i(21),u=i(27)("isConcatSpreadable");t.exports=n},function(t,e,i){"use strict";var n=i(9),r=i(257),o=i(58),a=i(38),s=i(39),u=i(175);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),i=a(e.length),n=u(e,0);return r(n,e,e,i,0,void 0===t?1:s(t)),n}}),i(188)("flatten")},function(t,e,i){"use strict";var n=i(9),r=i(128)(!0);n(n.P,"String",{at:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(9),r=i(261),o=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){var n=i(38),r=i(91),o=i(36);t.exports=function(t,e,i,a){var s=String(o(t)),u=s.length,l=void 0===i?" ":String(i),c=n(e);if(c<=u||""==l)return s;var h=c-u,f=r.call(l,Math.ceil(h/l.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},function(t,e,i){"use strict";var n=i(9),r=i(261),o=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){"use strict";i(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,i){"use strict";i(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,i){"use strict";var n=i(9),r=i(36),o=i(38),a=i(135),s=i(198),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};i(131)(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(r(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in u?String(t.flags):s.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=o(t.lastIndex),new l(n,e)}})},function(t,e,i){i(29)("asyncIterator")},function(t,e,i){i(29)("observable")},function(t,e,i){var n=i(9),r=i(251),o=i(33),a=i(51),s=i(165);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),u=a.f,l=r(n),c={},h=0;l.length>h;)i=u(n,e=l[h++]),void 0!==i&&s(c,e,i);return c}})},function(t,e,i){var n=i(9),r=i(270)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},function(t,e,i){var n=i(31),r=i(33),o=i(44).f;t.exports=function(t){return function(e){for(var i,a=r(e),s=n(a),u=s.length,l=0,c=[];u>l;)o.call(a,i=s[l++])&&c.push(t?[i,a[i]]:a[i]);return c}}},function(t,e,i){var n=i(9),r=i(270)(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineGetter__:function(t,e){a.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";t.exports=i(25)||!i(8)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(5)[t]})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineSetter__:function(t,e){a.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupGetter__:function(t){var e,i=r(this),n=o(t,!0);do if(e=s(i,n))return e.get;while(i=a(i))}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupSetter__:function(t){var e,i=r(this),n=o(t,!0);do if(e=s(i,n))return e.set;while(i=a(i))}})},function(t,e,i){var n=i(9);n(n.P+n.R,"Map",{toJSON:i(278)("Map")})},function(t,e,i){var n=i(75),r=i(279);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,i){var n=i(208);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},function(t,e,i){var n=i(9);n(n.P+n.R,"Set",{toJSON:i(278)("Set")})},function(t,e,i){i(282)("Map")},function(t,e,i){"use strict";var n=i(9);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,i){i(282)("Set")},function(t,e,i){i(282)("WeakMap")},function(t,e,i){i(282)("WeakSet")},function(t,e,i){i(287)("Map")},function(t,e,i){"use strict";var n=i(9),r=i(22),o=i(21),a=i(208);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,u=arguments[1];return r(this),e=void 0!==u,e&&r(u),void 0==t?new this:(i=[],e?(n=0,s=o(u,arguments[2],2),a(t,!1,function(t){i.push(s(t,n++))})):a(t,!1,i.push,i),new this(i))}})}},function(t,e,i){i(287)("Set")},function(t,e,i){i(287)("WeakMap")},function(t,e,i){i(287)("WeakSet")},function(t,e,i){var n=i(9);n(n.G,{global:i(5)})},function(t,e,i){var n=i(9);n(n.S,"System",{global:i(5)})},function(t,e,i){var n=i(9),r=i(35);n(n.S,"Error",{isError:function(t){return"Error"===r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,i){var n=i(9),r=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*r}})},function(t,e,i){var n=i(9),r=i(298),o=i(114);n(n.S,"Math",{fscale:function(t,e,i,n,a){return o(r(t,e,i,n,a))}})},function(t,e){t.exports=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-(1/0)?t:(t-e)*(r-n)/(i-e)+n}},function(t,e,i){var n=i(9);n(n.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=e>>>0,a=i>>>0;return o+(n>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=e>>>0,a=i>>>0;return o-(n>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,a=r&i,s=n>>16,u=r>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>16)+((o*u>>>0)+(l&i)>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,i){var n=i(9),r=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*r}})},function(t,e,i){var n=i(9);n(n.S,"Math",{scale:i(298)})},function(t,e,i){var n=i(9);n(n.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,a=r&i,s=n>>>16,u=r>>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>>16)+((o*u>>>0)+(l&i)>>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,i){"use strict";var n=i(9),r=i(10),o=i(5),a=i(209),s=i(215);n(n.P+n.R,"Promise",{"finally":function(t){var e=a(this,r.Promise||o.Promise),i="function"==typeof t;return this.then(i?function(i){return s(e,t()).then(function(){return i})}:t,i?function(i){return s(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var n=i(9),r=i(212),o=i(213);n(n.S,"Promise",{"try":function(t){var e=r.f(this),i=o(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){var n=i(310),r=i(13),o=n.key,a=n.set;n.exp({defineMetadata:function(t,e,i,n){a(t,e,r(i),o(n))}})},function(t,e,i){var n=i(217),r=i(9),o=i(24)("metadata"),a=o.store||(o.store=new(i(222))),s=function(t,e,i){var r=a.get(t);if(!r){if(!i)return;a.set(t,r=new n)}var o=r.get(e);if(!o){if(!i)return;r.set(e,o=new n)}return o},u=function(t,e,i){var n=s(e,i,!1);return void 0!==n&&n.has(t)},l=function(t,e,i){var n=s(e,i,!1);return void 0===n?void 0:n.get(t)},c=function(t,e,i,n){s(i,n,!0).set(t,e)},h=function(t,e){var i=s(t,e,!1),n=[];return i&&i.forEach(function(t,e){n.push(e)}),n},f=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){r(r.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:h,key:f,exp:p}},function(t,e,i){var n=i(310),r=i(13),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:o(arguments[2]),n=a(r(e),i,!1);if(void 0===n||!n["delete"](t))return!1;if(n.size)return!0;var u=s.get(e);return u["delete"](i),!!u.size||s["delete"](e)}})},function(t,e,i){var n=i(310),r=i(13),o=i(59),a=n.has,s=n.get,u=n.key,l=function(t,e,i){var n=a(t,e,i);if(n)return s(t,e,i);var r=o(e);return null!==r?l(t,r,i):void 0};n.exp({getMetadata:function(t,e){return l(t,r(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,i){var n=i(221),r=i(279),o=i(310),a=i(13),s=i(59),u=o.keys,l=o.key,c=function(t,e){var i=u(t,e),o=s(t);if(null===o)return i;var a=c(o,e);return a.length?i.length?r(new n(i.concat(a))):a:i};o.exp({getMetadataKeys:function(t){return c(a(t),arguments.length<2?void 0:l(arguments[1]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,i){var n=i(310),r=i(13),o=i(59),a=n.has,s=n.key,u=function(t,e,i){var n=a(t,e,i);if(n)return!0;var r=o(e);return null!==r&&u(t,r,i)};n.exp({hasMetadata:function(t,e){return u(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=i(22),a=n.key,s=n.set;n.exp({metadata:function(t,e){return function(i,n){s(t,e,(void 0!==n?r:o)(i),a(n))}}})},function(t,e,i){var n=i(9),r=i(211)(),o=i(5).process,a="process"==i(35)(o);n(n.G,{asap:function(t){var e=a&&o.domain;r(e?e.bind(t):t)}})},function(t,e,i){"use strict";var n=i(9),r=i(5),o=i(10),a=i(211)(),s=i(27)("observable"),u=i(22),l=i(13),c=i(207),h=i(216),f=i(11),p=i(208),d=p.RETURN,y=function(t){return null==t?void 0:u(t)},g=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},v=function(t){m(t)||(t._o=void 0,g(t))},_=function(t,e){l(t),this._c=void 0,this._o=t,t=new x(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:u(i),this._c=i)}catch(r){return void t.error(r)}m(this)&&g(this)};_.prototype=h({},{unsubscribe:function(){v(this)}});var x=function(t){this._s=t};x.prototype=h({},{next:function(t){var e=this._s;if(!m(e)){var i=e._o;try{var n=y(i.next);if(n)return n.call(i,t)}catch(r){try{v(e)}finally{throw r}}}},error:function(t){var e=this._s;if(m(e))throw t;var i=e._o;e._o=void 0;try{var n=y(i.error);if(!n)throw t;t=n.call(i,t)}catch(r){try{g(e)}finally{throw r}}return g(e),t},complete:function(t){var e=this._s;if(!m(e)){var i=e._o;e._o=void 0;try{var n=y(i.complete);t=n?n.call(i,t):void 0}catch(r){try{g(e)}finally{throw r}}return g(e),t}}});var b=function(t){c(this,b,"Observable","_f")._f=u(t)};h(b.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)(function(i,n){u(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(i){n(i),r.unsubscribe()}},error:n,complete:i})})}}),h(b,{from:function(t){var e="function"==typeof this?this:b,i=y(l(t)[s]);if(i){var n=l(i.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var i=!1;return a(function(){if(!i){try{if(p(t,!1,function(t){if(e.next(t),i)return d})===d)return}catch(n){if(i)throw n;return void e.error(n)}e.complete()}}),function(){i=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t2,r=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};r(r.G+r.B+r.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(t,e,i){var n=i(9),r=i(210);n(n.G+n.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,i){for(var n=i(195),r=i(31),o=i(19),a=i(5),s=i(11),u=i(130),l=i(27),c=l("iterator"),h=l("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=r(p),y=0;y=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var a=v.call(r,"catchLoc"),s=v.call(r,"finallyLoc");if(a&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),f(i),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;f(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:d(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=g),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}())},function(t,e,i){i(326),t.exports=i(10).RegExp.escape},function(t,e,i){var n=i(9),r=i(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return r(t)}})},function(t,e){t.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(329),o=i(357),a=n(o),s=i(334),u=n(s),l=i(337),c=n(l),h=i(465),f=n(h);i(474),a["default"].registerPlugin("Raphael",r.pluginRaphael,r.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=c["default"],a["default"].colorutil=f["default"],t.exports=a["default"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),r=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),o=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),r.setAttribute("in","flood"),r.setAttribute("result","mask"),r.setAttribute("in2","SourceGraphic"),r.setAttribute("operator","in"),o.setAttribute("in","mask"),o.setAttribute("result","dilated"),o.setAttribute("operator","dilate"),o.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(r),e.appendChild(o),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function o(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),n=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),r=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),n.setAttributeNS(null,"result","blurOut"),n.setAttributeNS(null,"in","offOut"),n.setAttributeNS(null,"stdDeviation","2"),r.setAttributeNS(null,"in","SourceGraphic"),r.setAttributeNS(null,"in2","blurOut"),r.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(r),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(330),s=n(a),u=i(331),l=n(u),c=i(338),h=n(c),f=i(339),p=n(f),d=i(340),y=n(d),g=i(343),m=n(g),v=i(345),_=n(v),x=i(346),b=n(x),T=i(347),E=n(T),A=i(348),S=n(A),w=i(349),D=n(w),M=i(350),C=n(M),L=i(352),P=n(L),k=i(353),O=n(k),R=i(354),I=n(R),B=i(355),N=n(B),F=i(356),G=n(F);e.pluginRaphael={bar:l["default"],boxplot:h["default"],bullet:p["default"],column:l["default"],line:y["default"],area:m["default"],pie:_["default"],bubble:E["default"],scatter:E["default"],heatmap:S["default"],treemap:S["default"],map:D["default"],radial:b["default"],legend:C["default"],mapLegend:P["default"],circleLegend:O["default"],radialPlot:G["default"],title:I["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),n=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(r(i),o(i)),i.pushDownBackgroundToBottom=function(){n.toBack()},i.changeChartBackgroundColor=function(t){n.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){n.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){n.attr({width:t,height:e})},n.attr({fill:"#fff","stroke-width":0}),i}},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n,r;n=[i(1),i(3),i(4)],r=function(t){return t}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(2)],r=function(t){function e(i){if(e.is(i,"function"))return _?i():t.on("raphael.DOMload",i);if(e.is(i,U))return e._engine.create[M](e,i.splice(0,3+e.is(i[0],W))).add(i);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var r=n.pop();return _?r.call(e._engine.create[M](e,n)):t.on("raphael.DOMload",function(){r.call(e._engine.create[M](e,n))})}return e._engine.create[M](e,arguments)}function i(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[A](n)&&(e[n]=i(t[n]));return e}function n(t,e){for(var i=0,n=t.length;i=1e3&&delete s[u.shift()],u.push(a),s[a]=t[M](e,o),i?i(s[a]):s[a])}return r}function o(){return this.hex}function a(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function s(t,e,i,n,r){var o=-3*e+9*i-9*n+3*r,a=t*o+6*e-12*i+6*n;return t*a-3*e+3*i}function u(t,e,i,n,r,o,a,u,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,y=0;yd;)f/=2,p+=(cG(r,a)||G(e,n)G(o,s))){var u=(t*n-e*i)*(r-a)-(t-i)*(r*s-o*a),l=(t*n-e*i)*(o-s)-(e-n)*(r*s-o*a),c=(t-i)*(o-s)-(e-n)*(r-a);if(c){var h=u/c,f=l/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+H(t,i).toFixed(2)||p>+G(t,i).toFixed(2)||p<+H(r,a).toFixed(2)||p>+G(r,a).toFixed(2)||d<+H(e,n).toFixed(2)||d>+G(e,n).toFixed(2)||d<+H(o,s).toFixed(2)||d>+G(o,s).toFixed(2)))return{x:h,y:f}}}}function h(t,i,n){var r=e.bezierBBox(t),o=e.bezierBBox(i);if(!e.isBBoxIntersect(r,o))return n?0:[];for(var a=u.apply(0,t),s=u.apply(0,i),l=G(~~(a/5),1),h=G(~~(s/5),1),f=[],p=[],d={},y=n?0:[],g=0;g=0&&w<=1.001&&D>=0&&D<=1.001&&(n?y++:y.push({x:S.x,y:S.y,t1:H(w,1),t2:H(D,1)}))}}return y}function f(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,o,a,s,u,l,c,f,p,d,y=n?0:[],g=0,m=t.length;gn)return n;for(;io?i=r:n=r,r=(n-i)/2+i}return r}var l=3*e,c=3*(n-e)-l,h=1-l-c,f=3*i,p=3*(r-i)-f,d=1-f-p;return s(t,1/(200*o))}function g(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[A](r)&&(n[Q(r)]=t[r],i.push(Q(r)));i.sort(ct)}this.anim=n,this.top=i[i.length-1],this.percents=i}function m(i,n,r,o,a,s){r=Q(r);var u,l,c,h,f,d,g=i.ms,m={},v={},_={};if(o)for(T=0,E=oe.length;To*i.top){r=i.percents[T],f=i.percents[T-1]||0,g=g/i.top*(r-f),h=i.percents[T+1],u=i.anim[r];break}o&&n.attr(i.anim[i.percents[T]])}if(u){if(l)l.initstatus=o,l.start=new Date-l.ms*o;else{for(var S in u)if(u[A](S)&&(it[A](S)||n.paper.customAttributes[A](S)))switch(m[S]=n.attr(S),null==m[S]&&(m[S]=et[S]),v[S]=u[S],it[S]){case W:_[S]=(v[S]-m[S])/g;break;case"colour":m[S]=e.getRGB(m[S]);var w=e.getRGB(v[S]);_[S]={r:(w.r-m[S].r)/g,g:(w.g-m[S].g)/g,b:(w.b-m[S].b)/g};break;case"path":var D=Rt(m[S],v[S]),M=D[1];for(m[S]=D[0],_[S]=[],T=0,E=m[S].length;T',gt=mt.firstChild,gt.style.behavior="url(#default#VML)",!gt||"object"!=typeof gt.adj)return e.type=P;mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=D,e.fn=x=D.prototype=e.prototype,e._id=0,e._oid=0,e.is=function(t,e){return e=N.call(e),"finite"==e?!K[A](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||X.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,o,a){if(null==o){var s=t-n,u=i-r;return s||u?(180+180*F.atan2(-u,-s)/z+360)%360:0}return e.angle(t,i,o,a)-e.angle(n,r,o,a)},e.rad=function(t){return t%360*z/180},e.deg=function(t){return Math.round(180*t/z%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,U)){for(var r=t.length;r--;)if(V(t[r]-i)<=n)return t[r]}else{t=+t;var o=i%t;if(ot-n)return i-o+t}return i};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*F.random()|0,i="x"==t?e:3&e|8;return i.toString(16)});e.setWindow=function(i){t("raphael.setWindow",e,S.win,i),S.win=i,S.doc=S.win.document,e._engine.initWin&&e._engine.initWin(S.win)};var vt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var o=new ActiveXObject("htmlfile");o.write(""),o.close(),i=o.body}catch(a){i=createPopup().document.body}var s=i.createTextRange();vt=r(function(t){try{i.style.color=O(t).replace(n,P);var e=s.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(r){return"none"}})}else{var u=S.doc.createElement("i");u.title="Raphaël Colour Picker",u.style.display="none",S.doc.body.appendChild(u),vt=r(function(t){return u.style.color=t,S.doc.defaultView.getComputedStyle(u,P).getPropertyValue("color")})}return vt(t)},_t=function(){return"hsb("+[this.h,this.s,this.b]+")"},xt=function(){return"hsl("+[this.h,this.s,this.l]+")"},bt=function(){return this.hex},Tt=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,Y)){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},Et=function(t,i,n,r){t*=255,i*=255,n*=255;var o={r:t,g:i,b:n,hex:e.rgb(t,i,n),toString:bt};return e.is(r,"finite")&&(o.opacity=r),o};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=bt,t},e.hsb2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),t*=360;var r,o,a,s,u;return t=t%360/60,u=i*e,s=u*(1-V(t%2-1)),r=o=a=i-u,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],Et(r,o,a,n)},e.hsl2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var r,o,a,s,u;return t=t%360/60,u=2*e*(i<.5?i:1-i),s=u*(1-V(t%2-1)),r=o=a=i-u/2,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],Et(r,o,a,n)},e.rgb2hsb=function(t,e,i){i=Tt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a;return o=G(t,e,i),a=o-H(t,e,i),n=0==a?null:o==t?(e-i)/a:o==e?(i-t)/a+2:(t-e)/a+4,n=(n+360)%6*60/360,r=0==a?0:a/o,{h:n,s:r,b:o,toString:_t}},e.rgb2hsl=function(t,e,i){i=Tt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a,s,u;return a=G(t,e,i),s=H(t,e,i),u=a-s,n=0==u?null:a==t?(e-i)/u:a==e?(i-t)/u+2:(t-e)/u+4,n=(n+360)%6*60/360,o=(a+s)/2,r=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:n,s:r,l:o,toString:xt}},e._path2string=function(){return this.join(",").replace(ot,"$1")};e._preload=function(t,e){var i=S.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,S.doc.body.removeChild(this)},i.onerror=function(){S.doc.body.removeChild(this)},S.doc.body.appendChild(i),i.src=t};e.getRGB=r(function(t){if(!t||(t=O(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(rt[A](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=vt(t));var i,n,r,a,s,u,l=t.match(Z);return l?(l[2]&&(r=$(l[2].substring(5),16),n=$(l[2].substring(3,5),16),i=$(l[2].substring(1,3),16)),l[3]&&(r=$((s=l[3].charAt(3))+s,16),n=$((s=l[3].charAt(2))+s,16),i=$((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),l[5]?(u=l[5][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsb2rgb(i,n,r,a)):l[6]?(u=l[6][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsl2rgb(i,n,r,a)):(l={r:i,g:n,b:r,toString:o},l.hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(a,"finite")&&(l.opacity=a),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},e),e.hsb=r(function(t,i,n){return e.hsb2rgb(t,i,n).hex}),e.hsl=r(function(t,i,n){return e.hsl2rgb(t,i,n).hex}),e.rgb=r(function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=At(t);if(i.arr)return wt(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,U)&&e.is(t[0],U)&&(r=wt(t)),r.length||O(t).replace(at,function(t,e,i){var o=[],a=e.toLowerCase();if(i.replace(ut,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(r.push([e][C](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][C](o));else for(;o.length>=n[a]&&(r.push([e][C](o.splice(0,n[a]))),n[a]););}),r.toString=e._path2string,i.arr=wt(r),r},e.parseTransformString=r(function(t){if(!t)return null;var i=[];return e.is(t,U)&&e.is(t[0],U)&&(i=wt(t)),i.length||O(t).replace(st,function(t,e,n){var r=[];N.call(e);n.replace(ut,function(t,e){e&&r.push(+e)}),i.push([e][C](r))}),i.toString=e._path2string,i});var At=function(t){var e=At.ps=At.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[A](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};e.findDotsAtSegment=function(t,e,i,n,r,o,a,s,u){var l=1-u,c=j(l,3),h=j(l,2),f=u*u,p=f*u,d=c*t+3*h*u*i+3*l*u*u*r+p*a,y=c*e+3*h*u*n+3*l*u*u*o+p*s,g=t+2*u*(i-t)+f*(r-2*i+t),m=e+2*u*(n-e)+f*(o-2*n+e),v=i+2*u*(r-i)+f*(a-2*r+i),_=n+2*u*(o-n)+f*(s-2*o+n),x=l*t+u*i,b=l*e+u*n,T=l*r+u*a,E=l*o+u*s,A=90-180*F.atan2(g-v,m-_)/z;return(g>v||m<_)&&(A+=180),{x:d,y:y,m:{x:g,y:m},n:{x:v,y:_},start:{x:x,y:b},end:{x:T,y:E},alpha:A}},e.bezierBBox=function(t,i,n,r,o,a,s,u){e.is(t,"array")||(t=[t,i,n,r,o,a,s,u]);var l=Ot.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.xi.x||i.xt.x)&&(t.yi.y||i.yt.y)},e.pathIntersection=function(t,e){return f(t,e)},e.pathIntersectionNumber=function(t,e){return f(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&f(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var St=e.pathBBox=function(t){var e=At(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Rt(t);for(var n,r=0,o=0,a=[],s=[],u=0,l=t.length;u1&&(v=F.sqrt(v),i*=v,n*=v);var _=i*i,x=n*n,b=(a==s?-1:1)*F.sqrt(V((_*x-_*m*m-x*g*g)/(_*m*m+x*g*g))),T=b*i*m/n+(t+u)/2,E=b*-n*g/i+(e+l)/2,A=F.asin(((e-E)/n).toFixed(9)),S=F.asin(((l-E)/n).toFixed(9));A=tS&&(A-=2*z),!s&&S>A&&(S-=2*z)}var w=S-A;if(V(w)>f){var D=S,M=u,L=l;S=A+f*(s&&S>A?1:-1),u=T+i*F.cos(S),l=E+n*F.sin(S),d=Pt(u,l,i,n,o,0,s,M,L,[S,D,T,E])}w=S-A;var P=F.cos(A),k=F.sin(A),O=F.cos(S),I=F.sin(S),B=F.tan(w/4),N=4/3*i*B,G=4/3*n*B,H=[t,e],j=[t+N*k,e-G*P],W=[u+N*I,l-G*O],Y=[u,l];if(j[0]=2*H[0]-j[0],j[1]=2*H[1]-j[1],c)return[j,W,Y][C](d);d=[j,W,Y][C](d).join()[R](",");for(var U=[],X=0,Z=d.length;X"1e12"&&(f=.5),V(p)>"1e12"&&(p=.5),f>0&&f<1&&(u=kt(t,e,i,n,r,o,a,s,f),y.push(u.x),d.push(u.y)),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),y.push(u.x),d.push(u.y)),l=o-2*n+e-(s-2*o+n),c=2*(n-e)-2*(o-n),h=e-n,f=(-c+F.sqrt(c*c-4*l*h))/2/l,p=(-c-F.sqrt(c*c-4*l*h))/2/l,V(f)>"1e12"&&(f=.5),V(p)>"1e12"&&(p=.5),f>0&&f<1&&(u=kt(t,e,i,n,r,o,a,s,f),y.push(u.x),d.push(u.y)),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),y.push(u.x),d.push(u.y)),{min:{x:H[M](0,y),y:H[M](0,d)},max:{x:G[M](0,y),y:G[M](0,d)}}}),Rt=e._path2curve=r(function(t,e){var i=!e&&At(t);if(!e&&i.curve)return wt(i.curve);for(var n=Mt(t),r=e&&Mt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,i){var n,r,o={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in o)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][C](Pt[M](0,[e.x,e.y][C](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][C](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][C](Lt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][C](Lt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][C](Ct(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][C](Ct(e.x,e.y,t[1],e.y));break;case"V":t=["C"][C](Ct(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][C](Ct(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",r&&(h[e]="A"),t.splice(e++,0,["C"][C](i.splice(0,6)));t.splice(e,1),y=G(n.length,r&&r.length||0)}},l=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],y=G(n.length,r&&r.length||0))},c=[],h=[],f="",p="",d=0,y=G(n.length,r&&r.length||0);dr){if(i&&!f.start){if(c=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-p),h+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],o)return h;f.start=h,h=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,u[5],u[6]].join(),p+=l,a=+u[5],s=+u[6];continue}if(!t&&!i)return c=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-p),{x:c.x,y:c.y,alpha:c.alpha}}p+=l,a=+u[5],s=+u[6]}h+=u.shift()+u}return f.end=h,c=t?p:i?f:e.findDotsAtSegment(a,s,u[0],u[1],u[2],u[3],u[4],u[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ie=te(),ne=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ie,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},Kt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Kt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},Kt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Kt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var re=e.easing_formulas={linear:function(t){return t},"<":function(t){return j(t,1.7)},">":function(t){return j(t,.48)},"<>":function(t){var e=.48-t/1.04,i=F.sqrt(.1734+e*e),n=i-e,r=j(V(n),1/3)*(n<0?-1:1),o=-i-e,a=j(V(o),1/3)*(o<0?-1:1),s=r+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:j(2,-10*t)*F.sin((t-.075)*(2*z)/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return t<1/n?e=i*t*t:t<2/n?(t-=1.5/n,e=i*t*t+.75):t<2.5/n?(t-=2.25/n,e=i*t*t+.9375):(t-=2.625/n,e=i*t*t+.984375),e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var oe=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var i=+new Date,n=0;n1&&!r.next){for(a in f)f[A](a)&&(y[a]=r.totalOrigin[a]);r.el.attr(y),m(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&m(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}oe.length&&ae(se)},ue=function(t){return t>255?255:t<0?0:t};Kt.animateWith=function(t,i,n,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var u=n instanceof g?n:e.animation(n,r,o,a);m(u,s,u.percents[0],null,s.attr());for(var l=0,c=oe.length;lu&&(u=c)}u+="%",!t[u].callback&&(t[u].callback=r)}return new g(t,i)},Kt.animate=function(t,i,n,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof g?t:e.animation(t,i,n,r);return m(a,o,a.percents[0],null,o.attr()),o},Kt.setTime=function(t,e){return t&&null!=e&&this.status(t,H(e,t.ms)/t.ms),this},Kt.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return m(t,this,-1,H(e,1)),this;for(i=oe.length;o.5)-1;u(f-.5,2)+u(p-.5,2)>.25&&(p=o.sqrt(.25-u(f-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return h}),r=r.split(/\s*\-\s*/),"linear"==l){var x=r.shift();if(x=-n(x),isNaN(x))return null;var b=[0,0,o.cos(t.rad(x)),o.sin(t.rad(x))],T=1/(a(s(b[2]),s(b[3]))||1);b[2]*=T,b[3]*=T,b[2]<0&&(b[0]=-b[2],b[2]=0),b[3]<0&&(b[1]=-b[3],b[3]=0)}var E=t._parseDots(r);if(!E)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(y.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){v=g(l+"Gradient",{id:c}),e.gradient=v,g(v,"radial"==l?{fx:f,fy:p}:{x1:b[0],y1:b[1],x2:b[2],y2:b[3],gradientTransform:e.matrix.invert()}),y.defs.appendChild(v);for(var A=0,S=E.length;A1?O.opacity/100:O.opacity});case"stroke":O=t.getRGB(y),u.setAttribute(d,O.hex),"stroke"==d&&O[e]("opacity")&&g(u,{"stroke-opacity":O.opacity>1?O.opacity/100:O.opacity}),"stroke"==d&&n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=i(y).charAt())&&m(n,y);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&g(u,{"stroke-opacity":y>1?y/100:y});case"fill-opacity":if(c.gradient){R=t._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,h)),R&&(I=R.getElementsByTagName("stop"),g(I[I.length-1],{"stop-opacity":y}));break}default:"font-size"==d&&(y=r(y,10)+"px");var B=d.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});u.style[B]=y,n._.dirty=1,u.setAttribute(d,y)}}w(n,o),u.style.visibility=f},S=1.2,w=function(n,o){if("text"==n.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=n.attrs,s=n.node,u=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,h).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,c=i(o.text).split("\n"),f=[],p=0,d=c.length;p"));var K=U.getBoundingClientRect();v.W=f.w=(K.right-K.left)/X,v.H=f.h=(K.bottom-K.top)/X,v.X=f.x,v.Y=f.y+v.H/2,("x"in u||"y"in u)&&(v.path.v=t.format("m{0},{1}l{2},{1}",o(f.x*x),o(f.y*x),o(f.x*x)+1));for(var q=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,Q=q.length;J.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),l=e+p+i),d}),o=o.split(/\s*\-\s*/),"linear"==u){var c=o.shift();if(c=-n(c),isNaN(c))return null}var h=t._parseDots(o);if(!h)return null;if(e=e.shape||e.node,h.length){e.removeChild(a),a.on=!0,a.method="none",a.color=h[0].color,a.color2=h[h.length-1].color;for(var f=[],y=0,g=h.length;y')}}catch(i){P=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,o=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var s=new t._Paper,u=s.canvas=t._g.doc.createElement("div"),l=u.style;return o=o||0,a=a||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*x+p+1e3*x,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",u.appendChild(s.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(u),l.left=o+"px",l.top=a+"px",l.position="absolute"):i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=d,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var k=t.st;for(var O in L)L[e](O)&&!k[e](O)&&(k[O]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(O))}}.apply(e,n),!(void 0!==r&&(t.exports=r))}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),f=700,p=1,d=.3,y=.2,g=8,m=2,v=.4,_=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,r=e.seriesDataModel,o=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=r,this.chartType=o,this.paper.setStart(),this.options=a,this.theme=n,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var n=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return n.node.setAttribute("class","auto-shape-rendering"),n},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=t.map(function(t,r){return t.map(function(t,o){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(r,o),s=n?i[r]:i[o],u=e._renderBar(t.start,s);return{rect:u,color:s,bound:t.end,item:a,groupIndex:r,index:o,isRange:a.isRange}})});return r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var n=i.value,r=null;if("bar"===e||n>=0||i.isRange){var o=l["default"].extend({},t.leftTop);o.left-="column"===e||n<0?1:0,r=s["default"].makeLinePath(o,t.rightTop).join(" ")}return r},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),r={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return l["default"].filter(r,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,n){var r=this._makeBorderLinesPaths(t,i,n),a={};return Object.entries(r).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];a[n]=s["default"].renderLine(self.paper,r,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=l["default"].map(t,function(t,n){return l["default"].map(t,function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,self.chartType,o)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-m/2,y:e.height?e.top:e.top-m/2,width:e.width?e.width:m,height:e.height?e.height:m,opacity:e.height&&e.width?1:v},f,">")},t.prototype._animateBorders=function(t,e,i,n){var r=this._makeBorderLinesPaths(e,i,n);l["default"].forEach(t,function(t,e){t.animate({path:r[e]},f,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,n,r){var o=i[n]&&i[n][r];t&&(e._animateRect(t.rect,t.bound),o&&e._animateBorders(o,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},f))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+g,height:i.height+g,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,r=t.groupBounds;this.groupBounds=r,this.paper.setSize(n.width,n.height),s["default"].forEach2dArray(this.groupBars,function(t,n,o){if(t){var a=i[n]&&i[n][o],u=r[n][o].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=h["default"].color(e.color),n=this.theme.selectionColor,r=n||s["default"].makeChangedLuminanceColor(i.hex,y),o=this.theme.borderColor;if(o){var a=h["default"].color(o);o=s["default"].makeChangedLuminanceColor(a.hex,y)}this._changeBarColor(t,r,o)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){ -var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(n,r,o){if(n){var a=e[r]&&e[r][o],s=i||t===o?p:d;n.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o=r||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o},u=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var o=e[n][r],l=s["default"].renderText(t,o.end,i.end,a),c=l.node.style;if(c.userSelect="none",c.cursor="default",u.push(l),o.start){var h=s["default"].renderText(t,o.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",u.push(h)}})}),u},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var o=i(333),a=n(o),s=i(334),u=n(s),l=i(330),c=n(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],r=[e.left,e.top],o=i%2/2;return n.forEach(function(t,e){t===r[e]&&(n[e]=r[e]=Math.round(t)-o)}),["M"].concat(n,["L"],r)},renderLine:function(t,e,i,n){var r=t.path([e]),o={stroke:i,"stroke-width":a["default"].isUndefined(n)?2:n,"stroke-linecap":"butt"};return"transparent"===i&&(o.stroke="#fff",o["stroke-opacity"]=0),r.attr(o).node.setAttribute("class","auto-shape-rendering"),r},getEllipsisText:function(t,e,i){for(var n=t.split(""),r=n.length,o=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*o,u=0;u=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var r=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return n&&(n["dominant-baseline"]?r.node.setAttribute("dominant-baseline",n["dominant-baseline"]):r.node.setAttribute("dominant-baseline","central"),r.attr(n)),r},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var r=t.circle(e.left,e.top,i);return n&&r.attr(n),r},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),r=n+n*e;return r=Math.round(Math.min(Math.max(0,r),255)).toString(16),u["default"].formatToZeroFill(r,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var n=(0,c["default"])(document.body,100,100),r=n.text(0,0,t).attr({"font-size":e,"font-family":i}),o=r.getBBox();return r.remove(),n.remove(),{width:o.width,height:o.height}},animateOpacity:function(t,e,i,n){var o=r(n)?n:600,a=r(e)?e:0,s=r(i)?i:1,u=c["default"].animation({opacity:s},o);t.attr({opacity:a}),t.animate(u)}}},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="dist",e(0)}([function(t,e,i){"use strict";var n={},r=i(1),o=r.extend;o(n,r),o(n,i(3)),o(n,i(2)),o(n,i(4)),o(n,i(5)),o(n,i(6)),o(n,i(7)),o(n,i(8)),o(n,i(9)),n.browser=i(10),n.popup=i(11),n.formatDate=i(12),n.defineClass=i(13),n.defineModule=i(14),n.defineNamespace=i(15),n.CustomEvents=i(16),n.Enum=i(17),n.ExMap=i(18),n.HashMap=i(20),n.Map=i(19),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i,n,r,o,a=Object.prototype.hasOwnProperty;for(r=1,o=arguments.length;r-1||f.inArray(e,r)>-1)return!1;for(i in e){if(e.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1;if(typeof e[i]!=typeof t[i])return!1}for(i in t){if(e.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1;if(typeof e[i]!=typeof t[i])return!1;if("object"==typeof t[i]||"function"==typeof t[i]){if(n.push(t),r.push(e),!l(t[i],e[i]))return!1;n.pop(),r.pop()}else if(t[i]!==e[i])return!1}return!0}function c(t,e){for(var i=arguments,n=i[0],r=1,o=i.length;r=0&&n","'":"'"," ":" "};return t.replace(/&|<|>|"|'| /g,function(t){return e[t]?e[t]:t})}function r(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})}function o(t){return/[<>&"']/.test(t)}function a(t,e){for(var i,n,r=0,o=t.length,a={};r1}),a=u.keys(a).sort(),i=a.join("")}var s=i(4),u=i(1);t.exports={decodeHTMLEntity:n,encodeHTMLEntity:r,hasEncodableString:o,getDuplicatedChar:a}},function(t,e){"use strict";function i(t,e){function i(){r=a.call(arguments),window.clearTimeout(n),n=window.setTimeout(function(){t.apply(null,r)},e)}var n,r;return e=e||0,i}function n(){return Number(new Date)}function r(t,e){function i(){return l=a.call(arguments),c?(h(l),void(c=!1)):(u=o.timestamp(),r=r||u,s(l),void(u-r>=e&&h(l)))}function n(){c=!0,r=null}var r,s,u,l,c=!0,h=function(e){t.apply(null,e),r=null};return e=e||0,s=o.debounce(h,e),i.reset=n,i}var o={},a=Array.prototype.slice;o.timestamp=n,o.debounce=i,o.throttle=r,t.exports=o},function(t,e,i){"use strict";function n(t){var e="https://www.google-analytics.com/collect",i=location.hostname,n="event",o="UA-115377265-9";(s.isUndefined(window.tui)||window.tui.usageStatistics!==!1)&&setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||r(e,{v:1,t:n,tid:o,cid:i,dp:i,dh:t})},1e3)}function r(t,e){var i=a.map(o.keys(e),function(t,i){var n=0===i?"":"&";return n+t+"="+e[t]}).join(""),n=document.createElement("img");return n.src=t+"?"+i,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}var o=i(1),a=i(4),s=i(2);t.exports={imagePing:r,sendHostname:n}},function(t,e){"use strict";var i,n,r={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0},o=window.navigator,a=o.appName.replace(/\s/g,"_"),s=o.userAgent,u=/MSIE\s([0-9]+[.0-9]*)/,l=/Trident.*rv:11\./,c=/Edge\/(\d+)\./,h={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},f={Microsoft_Internet_Explorer:function(){var t=s.match(u);t?(r.msie=!0,r.version=parseFloat(t[1])):r.others=!0},Netscape:function(){var t=!1;if(l.exec(s))r.msie=!0,r.version=11,t=!0;else if(c.exec(s))r.edge=!0,r.version=s.match(c)[1],t=!0;else for(i in h)if(h.hasOwnProperty(i)&&(n=s.match(h[i]),n&&n.length>1)){r[i]=t=!0,r.version=parseFloat(n[1]||0);break}t||(r.others=!0)}},p=f[a];p&&f[a](),t.exports=r},function(t,e,i){"use strict";function n(){this.openedPopup={},this.closeWithParentPopup={},this.postBridgeUrl=""}var r=i(4),o=i(2),a=i(5),s=i(10),u=i(1),l=0;n.prototype.getPopupList=function(t){var e;return e=o.isExisty(t)?this.openedPopup[t]:this.openedPopup},n.prototype.openPopup=function(t,e){var i,n,r;if(e=u.extend({popupName:"popup_"+l+"_"+Number(new Date),popupOptionStr:"",useReload:!0,closeWithParent:!0,method:"get",param:{}},e||{}),e.method=e.method.toUpperCase(),this.postBridgeUrl=e.postBridgeUrl||this.postBridgeUrl,r="POST"===e.method&&e.param&&s.msie&&11===s.version,!o.isExisty(t))throw new Error("Popup#open() need popup url.");l+=1,e.param&&("GET"===e.method?t=t+(/\?/.test(t)?"&":"?")+this._parameterize(e.param):"POST"===e.method&&(r||(n=this.createForm(t,e.param,e.method,e.popupName),t="about:blank"))),i=this.openedPopup[e.popupName],o.isExisty(i)?i.closed?this.openedPopup[e.popupName]=i=this._open(r,e.param,t,e.popupName,e.popupOptionStr):(e.useReload&&i.location.replace(t),i.focus()):this.openedPopup[e.popupName]=i=this._open(r,e.param,t,e.popupName,e.popupOptionStr),this.closeWithParentPopup[e.popupName]=e.closeWithParent,(!i||i.closed||o.isUndefined(i.closed))&&alert("please enable popup windows for this website"),e.param&&"POST"===e.method&&!r&&(i&&n.submit(),n.parentNode&&n.parentNode.removeChild(n)),window.onunload=a.bind(this.closeAllPopup,this)},n.prototype.close=function(t,e){var i=e||window;t=!!o.isExisty(t)&&t,t&&(window.onunload=null),i.closed||(i.opener=window.location.href,i.close())},n.prototype.closeAllPopup=function(t){var e=o.isExisty(t);r.forEachOwnProperties(this.openedPopup,function(t,i){(e&&this.closeWithParentPopup[i]||!e)&&this.close(!1,t)},this)},n.prototype.focus=function(t){this.getPopupList(t).focus()},n.prototype.parseQuery=function(){var t,e,i={};return t=window.location.search.substr(1),r.forEachArray(t.split("&"),function(t){e=t.split("="),i[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}),i},n.prototype.createForm=function(t,e,i,n,o){var a,s=document.createElement("form");return o=o||document.body,s.method=i||"POST",s.action=t||"",s.target=n||"",s.style.display="none",r.forEachOwnProperties(e,function(t,e){a=document.createElement("input"),a.name=e,a.type="hidden",a.value=t,s.appendChild(a)}),o.appendChild(s),s},n.prototype._parameterize=function(t){var e=[];return r.forEachOwnProperties(t,function(t,i){e.push(encodeURIComponent(i)+"="+encodeURIComponent(t))}),e.join("&")},n.prototype._open=function(t,e,i,n,r){var o;return t?(o=window.open(this.postBridgeUrl,n,r),setTimeout(function(){o.redirect(i,e)},100)):o=window.open(i,n,r),o},t.exports=new n},function(t,e,i){"use strict";function n(t,e,i){var n,r,o,a;return t=Number(t),e=Number(e),i=Number(i),n=t>-1&&t<100||t>1969&&t<2070,r=e>0&&e<13,!(!n||!r)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),o=i>0&&i<=a)}function r(t,e,i){var r,u,l,h=a.pick(i,"meridiemSet","AM")||"AM",f=a.pick(i,"meridiemSet","PM")||"PM";return u=o.isDate(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute},!!n(u.year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(r=u.hour>11?f:h,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=r),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):c[t](u)||""}))}var o=i(2),a=i(1),s=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,u=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],l=[0,31,28,31,30,31,30,31,31,30,31,30,31],c={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return u[Number(t.month)].substr(0,3)},MMMM:function(t){return u[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return c.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return c.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return c.YY(t)},YYYY:function(t){var e="20",i=t.year;return i>69&&i<100&&(e="19"),Number(i)<100?e+String(i):i},yyyy:function(t){return c.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return c.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return c.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=r},function(t,e,i){"use strict";function n(t,e){var i;return e||(e=t,t=null),i=e.init||function(){},t&&r(i,t),e.hasOwnProperty("static")&&(o(i,e["static"]),delete e["static"]),o(i.prototype,e),i}var r=i(6).inherit,o=i(1).extend;t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=e||{};return o.isFunction(i[a])&&i[a](),r(t,i)}var r=i(15),o=i(2),a="initialize";t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n,a,s,u;return n=t.split("."),n.unshift(window),a=r.reduce(n,function(t,e){return t[e]=t[e]||{},t[e]}),i?(u=n.pop(),s=o.pick.apply(null,n),a=s[u]=e):o.extend(a,e),a}var r=i(4),o=i(1);t.exports=n},function(t,e,i){"use strict";function n(){this.events=null,this.contexts=null}var r=i(4),o=i(2),a=i(1),s=/\s+/g;n.mixin=function(t){a.extend(t.prototype,n.prototype)},n.prototype._getHandlerItem=function(t,e){var i={handler:t};return e&&(i.context=e),i},n.prototype._safeEvent=function(t){var e,i=this.events;return i||(i=this.events={}),t&&(e=i[t],e||(e=[],i[t]=e),i=e),i},n.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},n.prototype._indexOfContext=function(t){for(var e=this._safeContext(),i=0;e[i];){if(t===e[i][0])return i;i+=1}return-1},n.prototype._memorizeContext=function(t){var e,i;o.isExisty(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1?e[i][1]+=1:e.push([t,1]))},n.prototype._forgetContext=function(t){var e,i;o.isExisty(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1&&(e[i][1]-=1,e[i][1]<=0&&e.splice(i,1)))},n.prototype._bindEvent=function(t,e,i){var n=this._safeEvent(t);this._memorizeContext(i),n.push(this._getHandlerItem(e,i))},n.prototype.on=function(t,e,i){var n=this;o.isString(t)?(t=t.split(s),r.forEach(t,function(t){n._bindEvent(t,e,i)})):o.isObject(t)&&(i=e,r.forEach(t,function(t,e){n.on(e,t,i)}))},n.prototype.once=function(t,e,i){function n(){e.apply(i,arguments),a.off(t,n,i)}var a=this;return o.isObject(t)?(i=e,void r.forEach(t,function(t,e){a.once(e,t,i)})):void this.on(t,n,i)},n.prototype._spliceMatches=function(t,e){var i,n=0;if(o.isArray(t))for(i=t.length;n0},n.prototype.getListenerLength=function(t){var e=this._safeEvent(t);return e.length},t.exports=n},function(t,e,i){"use strict";function n(t){t&&this.set.apply(this,arguments)}var r=i(4),o=i(2),a=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}(),s=0;n.prototype.set=function(t){var e=this;o.isArray(t)||(t=r.toArray(arguments)),r.forEach(t,function(t){e._addItem(t)})},n.prototype.getName=function(t){var e,i=this;return r.forEach(this,function(n,r){if(i._isEnumItem(r)&&t===n)return e=r,!1}),e},n.prototype._addItem=function(t){var e;this.hasOwnProperty(t)||(e=this._makeEnumValue(),a?Object.defineProperty(this,t,{enumerable:!0,configurable:!1,writable:!1,value:e}):this[t]=e)},n.prototype._makeEnumValue=function(){var t;return t=s,s+=1,t},n.prototype._isEnumItem=function(t){return o.isNumber(this[t])},t.exports=n},function(t,e,i){"use strict";function n(t){this._map=new o(t),this.size=this._map.size}var r=i(4),o=i(19),a=["get","has","forEach","keys","values","entries"],s=["delete","clear"];r.forEachArray(a,function(t){n.prototype[t]=function(){return this._map[t].apply(this._map,arguments)}}),r.forEachArray(s,function(t){n.prototype[t]=function(){var e=this._map[t].apply(this._map,arguments);return this.size=this._map.size,e}}),n.prototype.set=function(){return this._map.set.apply(this._map,arguments),this.size=this._map.size,this},n.prototype.setObject=function(t){r.forEachOwnProperties(t,function(t,e){this.set(e,t)},this)},n.prototype.deleteByKeys=function(t){r.forEachArray(t,function(t){this["delete"](t)},this)},n.prototype.merge=function(t){t.forEach(function(t,e){this.set(e,t)},this)},n.prototype.filter=function(t){var e=new n;return this.forEach(function(i,n){t(i,n)&&e.set(n,i)}),e},t.exports=n},function(t,e,i){"use strict";function n(t,e){this._keys=t,this._valueGetter=e,this._length=this._keys.length,this._index=-1,this._done=!1}function r(t){this._valuesForString={},this._valuesForIndex={},this._keys=[],t&&this._setInitData(t),this.size=0}var o=i(4),a=i(2),s=i(3),u=i(10),l=i(5),c={},h={};n.prototype.next=function(){var t={};do this._index+=1;while(a.isUndefined(this._keys[this._index])&&this._index=this._length?t.done=!0:(t.done=!1,t.value=this._valueGetter(this._keys[this._index],this._index)),t},r.prototype._setInitData=function(t){if(!a.isArray(t))throw new Error("Only Array is supported.");o.forEachArray(t,function(t){this.set(t[0],t[1])},this)},r.prototype._isNaN=function(t){return"number"==typeof t&&t!==t},r.prototype._getKeyIndex=function(t){var e,i=-1;return a.isString(t)?(e=this._valuesForString[t],e&&(i=e.keyIndex)):i=s.inArray(t,this._keys),i},r.prototype._getOriginKey=function(t){var e=t;return t===c?e=void 0:t===h&&(e=NaN),e},r.prototype._getUniqueKey=function(t){var e=t;return a.isUndefined(t)?e=c:this._isNaN(t)&&(e=h),e},r.prototype._getValueObject=function(t,e){return a.isString(t)?this._valuesForString[t]:(a.isUndefined(e)&&(e=this._getKeyIndex(t)),e>=0?this._valuesForIndex[e]:void 0)},r.prototype._getOriginValue=function(t,e){return this._getValueObject(t,e).origin},r.prototype._getKeyValuePair=function(t,e){return[this._getOriginKey(t),this._getOriginValue(t,e)]},r.prototype._createValueObject=function(t,e){return{keyIndex:e,origin:t}},r.prototype.set=function(t,e){var i,n=this._getUniqueKey(t),r=this._getKeyIndex(n);return r<0&&(r=this._keys.push(n)-1,this.size+=1),i=this._createValueObject(e,r),a.isString(t)?this._valuesForString[t]=i:this._valuesForIndex[r]=i,this},r.prototype.get=function(t){var e=this._getUniqueKey(t),i=this._getValueObject(e);return i&&i.origin},r.prototype.keys=function(){return new n(this._keys,l.bind(this._getOriginKey,this))},r.prototype.values=function(){return new n(this._keys,l.bind(this._getOriginValue,this))},r.prototype.entries=function(){return new n(this._keys,l.bind(this._getKeyValuePair,this))},r.prototype.has=function(t){return!!this._getValueObject(t)},r.prototype["delete"]=function(t){var e;a.isString(t)?this._valuesForString[t]&&(e=this._valuesForString[t].keyIndex,delete this._valuesForString[t]):(e=this._getKeyIndex(t),e>=0&&delete this._valuesForIndex[e]),e>=0&&(delete this._keys[e],this.size-=1)},r.prototype.forEach=function(t,e){e=e||this,o.forEachArray(this._keys,function(i){a.isUndefined(i)||t.call(e,this._getValueObject(i).origin,i,this)},this)},r.prototype.clear=function(){r.call(this)},function(){window.Map&&(u.firefox&&u.version>=37||u.chrome&&u.version>=42)&&(r=window.Map)}(),t.exports=r},function(t,e,i){"use strict";function n(t){this.length=0,t&&this.setObject(t)}var r=i(4),o=i(2),a="å";n.prototype.set=function(t,e){2===arguments.length?this.setKeyValue(t,e):this.setObject(t)},n.prototype.setKeyValue=function(t,e){this.has(t)||(this.length+=1),this[this.encodeKey(t)]=e},n.prototype.setObject=function(t){var e=this;r.forEachOwnProperties(t,function(t,i){e.setKeyValue(i,t)})},n.prototype.merge=function(t){var e=this;t.each(function(t,i){e.setKeyValue(i,t)})},n.prototype.encodeKey=function(t){return a+t},n.prototype.decodeKey=function(t){var e=t.split(a);return e[e.length-1]},n.prototype.get=function(t){return this[this.encodeKey(t)]},n.prototype.has=function(t){return this.hasOwnProperty(this.encodeKey(t))},n.prototype.remove=function(t){return arguments.length>1&&(t=r.toArray(arguments)),o.isArray(t)?this.removeByKeyArray(t):this.removeByKey(t)},n.prototype.removeByKey=function(t){var e=this.has(t)?this.get(t):null;return null!==e&&(delete this[this.encodeKey(t)],this.length-=1),e},n.prototype.removeByKeyArray=function(t){var e=[],i=this;return r.forEach(t,function(t){e.push(i.removeByKey(t))}),e},n.prototype.removeAll=function(){var t=this;this.each(function(e,i){t.remove(i)})},n.prototype.each=function(t){var e,i=this;r.forEachOwnProperties(this,function(n,r){if(r.charAt(0)===a&&(e=t(n,i.decodeKey(r))),e===!1)return e})},n.prototype.keys=function(){var t=[],e=this;return this.each(function(i,n){t.push(e.decodeKey(n))}),t},n.prototype.find=function(t){var e=[];return this.each(function(i,n){t(i,n)&&e.push(i)}),e},n.prototype.toArray=function(){var t=[];return this.each(function(e){t.push(e)}),t},t.exports=n}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return d["default"].forEach(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),r&&(t.style.fontWeight=r),o&&(t.style.cssText+=o)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),r=this.sizeCache[n];if(!r){var o=this._createSizeCheckEl(),a=o.firstChild;a.innerHTML=t,this._addCssStyle(o,e),document.body.appendChild(o),r=a[i],document.body.removeChild(o),this.sizeCache[n]=r}return r},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=c["default"].create("DIV","tui-chart-size-check-element"),e=c["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var r=d["default"].map(t,function(t){return i(t,e)});n=f["default"].max(r)}return n},getRenderedLabelsMaxWidth:function(t,e){var i=d["default"].bind(this.getRenderedLabelWidth,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},getRenderedLabelsMaxHeight:function(t,e){var i=d["default"].bind(this.getRenderedLabelHeight,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,r=e.height,o=void 0===r?0:r;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",o,"px")].join(";")},renderPosition:function(t,e){d["default"].isUndefined(e)||d["default"].forEachArray(["top","bottom","left","right"],function(i){var n=e[i];d["default"].isNumber(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=x.makeFontCssText(e),r=c["default"].create("DIV",i);return r.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),r.style.cssText=n,r},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,o=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(r(i||[]));return d["default"].reduce(l,function(t,e){return e(t,u,a,o,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,r=i.areaType,o=i.valueType;return e&&e.length?d["default"].map(t,function(t){return x.formatValue({value:t,formatFunctions:e,chartType:n,areaType:r,valueType:o})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=d["default"].isDate(t)?t:new Date(t);return d["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return d["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-o,s=Math.min(a/t,1);e(s),1===s?(delete r.id,i&&i()):r.id=requestAnimationFrame(n)}var r={},o=(new Date).getTime();return r.id=requestAnimationFrame(n),r},isOldBrowser:function(){return g},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var c;s=t.split("").reverse(),u=s.length-1,s=d["default"].map(s,function(t,n){var r=[t];return n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?d["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=m?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=v+_;return _+=1,t}};g?(x.makeOpacityCssText=function(t){var e="";if(d["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},x.setOpacity=function(t,e){var i=a(e);o(t,function(t){t.style.filter=i})}):(x.makeOpacityCssText=function(t){var e="";return d["default"].isExisty(t)&&(e=";opacity:"+t),e},x.setOpacity=function(t,e){o(t,function(t){t.style.opacity=e})}),e["default"]=x},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,r=void 0;return r=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=o,n=t)})}else n=Math.max.apply(Math,r(t));return n}function s(t,e,i){var n=!1;return p["default"].forEach(t,function(r,o){return e.call(i,r,o,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return p["default"].forEach(t,function(r,o){return e.call(i,r,o,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var r=[];if(p["default"].isBoolean(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var o=void 0;p["default"].forEachArray(t,function(e,a){e=i.call(n,e,a,t),a&&o===e||r.push(e),o=e})}else p["default"].forEachArray(t,function(e,o){e=i.call(n,e,o,t),p["default"].inArray(e,r)===-1&&r.push(e)});return r}function c(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n0?1:-1,a=t.left,u=t.width,c=u/4,f="M"+(a+c)+","+t.top+"H"+(a+3*c),p=h["default"].oneLineTrim(s,a+2*c,t.top,t.top+Math.abs(r)*o),d=l["default"].renderLine(n,f,i,x),y=l["default"].renderLine(n,p,i,T),g=[];return d.attr({opacity:0}),y.attr({opacity:0}),g.push(d),g.push(y),g},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),r.push(a)}),r},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=l["default"].renderLine(this.paper,i,"#ffffff",b);return n.attr({opacity:0}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),r.push(a)}),r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var r=this,o=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(o).forEach(function(t){var i=a(t,2),n=i[0],o=i[1];s[n]=l["default"].renderLine(r.paper,o,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,e.chartType,o)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},g,">")},t.prototype.animate=function(t){var e=this,i=y["default"].animation({opacity:1},g);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(g))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},g))},t.prototype.showAnimation=function(t){p["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var r=i[e][n].end;t.bound=r,l["default"].updateRectBound(t.rect,r)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=y["default"].color(e.color),n=this.theme.selectionColor,r=l["default"].makeChangedLuminanceColor,o=n||r(i.hex,_),a=this.theme.borderColor;if(a){var s=y["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,_)}this._changeBoxColor(t,o,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=p["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,n,r){if(i){var o=e||t===r?m:v;i.rect.attr({"stroke-opacity":o})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,n,r){var o=e||t===r?m:v;i.attr({"stroke-opacity":o})}),l["default"].forEach2dArray(this.groupMedians,function(i,n,r){var o=e||t===r?m:v;i.attr({"stroke-opacity":o})})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var s=e[n][r],u=l["default"].renderText(t,s.end,i.end,o);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var c=l["default"].renderText(t,s.start,i.start,o);c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("filter","url(#glow)"),a.push(c)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),o=t.rect(e.left,e.top,i.width,i.height);return o.id=n+"_rect",r.id=n,r.appendChild(o.node),t.defs.appendChild(r),o}e.__esModule=!0;var a=i(332),s=n(a),u=i(335),l=n(u),c=i(333),h=n(c),f=i(334),p=n(f),d=h["default"].browser,y=d.msie&&d.version<=8,g=700,m=700,v=1,_=.3,x=20,b=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},m))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,r=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,r),this.paper.setSize(n,r)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=p["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=h["default"].isNull(t);this.groupBars.forEach(function(n,r){var o=i||t===r?v:_;e.groupBars[r].attr({"fill-opacity":o}),e.groupLabels[r].attr({opacity:o}),e.groupLabels[r].forEach(function(t){t.attr({opacity:o})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=this,o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=r._renderLabel(t,e[n][u],o,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var r=s["default"].renderText(t,e,n,i),o=r.node,a=o.style;return a.userSelect="none",a.cursor="default",o.setAttribute("filter","url(#glow)"),r},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],r=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var o=n[n.length-1],a=0;a<=r;a+=1)n.push(o);return n})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),f=n(h),p=1,d=.3,y=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=e.options,a=e.position,s=r.colors,u=o.showDot?1:0,l=o.spline,c=this.lineWidth=f["default"].isNumber(o.pointWidth)?o.pointWidth:this.lineWidth,h=this.makeBorderStyle(r.dot.strokeColor,u,r.dot.strokeWidth),p=this.makeOutDotStyle(u,h),d=void 0;return d=l?this._getSplineLinesPath(n,o.connectNulls):this._getLinesPath(n,o.connectNulls),this.paper=t,this.theme=r,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,d,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),o.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=s,this.borderStyle=h,this.outDotStyle=p,this.groupPositions=n,this.groupPaths=d,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,r){var o=i[r]||"transparent",a=c["default"].renderLine(t,e.join(" "),o,n);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){t.endDot&&e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=this,i=f["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,r){var o=t===r,a=i||o?p:d,s=e.groupDots[r];n.attr({"stroke-opacity":a}),o&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(o[0]="M"),o},t.prototype._getAnchor=function(t,e,i,n){var r=(e.left-t.left)/2,o=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],r=void 0,o=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var c=s(t,1),h=c[0],f=h;o=t.length,a=f,r=t[o-1],u=t.slice(1).slice(0,o-2),l=u.map(function(n,r){var o=t[r+2],s=i._getAnchor(a,n,o,e);return a=n,Math.abs(s.y1-h.top)>Math.abs(h.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-o.top)>Math.abs(o.top-n.top)&&(s.y2=n.top),h=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([r.left,r.top,r.left,r.top]),l.unshift(["M",f.left,f.top,"C",f.left,f.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),r=[];return n.forEach(function(t){r=r.concat(t)}),e.isBeConnected&&(r[0]=r[0].slice(3)),r},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&m["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,n){var r=this.theme&&this.theme.dot||{dot:{}},o=void 0;if(e){var a=t.circle(e.left,e.top,m["default"].isUndefined(r.radius)?b:r.radius),s={fill:r.fillColor||i,"fill-opacity":m["default"].isNumber(n)?n:r.fillOpacity,stroke:r.strokeColor||i,"stroke-opacity":m["default"].isNumber(n)?n:r.strokeOpacity,"stroke-width":r.strokeWidth};a.attr(s),o={dot:a,color:i}}return o},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,r){var o=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:o.renderDot(t,e,s,n)};if(o.hasRangeData){var a=m["default"].extend({},e);a.top=a.startTop,i.startDot=o.renderDot(t,a,s,n)}return r&&(r.push(i.endDot.dot),i.startDot&&r.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!m["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===S||n)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===w&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===S?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),r=this.groupLines?this.groupLines[e]:this.groupAreas[e],o=void 0,a=void 0;if(n){if("area"===this.chartType){var s=r;a=s.startLine,r=s.line,o=5,this._updateAreaOpacity(S)}else o=this.lineWidth;this._updateLineStrokeOpacity(S,r),this._updateLineStrokeWidth(r,o),a&&this._updateLineStrokeWidth(a,o),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=p["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=y["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],r=this.outDotStyle;n&&!m["default"].isUndefined(i)&&(r=m["default"].extend({r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]})),t.attr(r),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],r=this._findDotItem(n,e),o=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(r){if(o=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=o;s=l.startLine,o=l.line,this._updateAreaOpacity(w)}else a=this.lineWidth;u&&!m["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(w,o),this._updateLineStrokeWidth(o,a),s&&this._updateLineStrokeWidth(s,a),r&&(this._hideDot(r.endDot.dot,i,u),r.startDot&&this._hideDot(r.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!m["default"].isNull(this.selectedLegendIndex),n=this.dotOpacity,r=this._getPivotGroupDots();r&&r[t]&&r[t].forEach(function(t,r){var o=n;o&&i&&e.selectedLegendIndex!==r&&(o=E),t.endDot&&e._hideDot(t.endDot.dot,r,o),t.startDot&&e._hideDot(t.startDot.dot,r,o)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=m["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,r=this.position,o=this._getClipRectId(),s=this.clipRect;!_&&n&&(s?s.attr({width:0,height:n.height}):(s=a(i,r,n,o),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+o+")")}),s.animate({width:n.width},x,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,T);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=h["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(337),s=n(a),u={isBarChart:function(t){return t===o["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===o["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===o["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===o["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===o["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isPercentStack(e);return i&&n},isComboChart:function(t){return t===o["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===o["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===o["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===o["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===o["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===o["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===o["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(o["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===o["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===o["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===o["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===o["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===o["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===o["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===o["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===o["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===o["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===o["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&v["default"].print(_,"warn"):d["default"].isUndefined(t)||v["default"].print(_,"error"),e},e}(c["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),f=180,p=360,d=.01,y=Math.PI/f,g=700,m=1,v=.3,_=.2,x="overlay",b=20,T=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.paper=t;var r=o(e.options.radiusRange,1);return this.holeRatio=r[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,r){var o=n*y,a=r*y,s=t+i*Math.sin(o),u=e-i*Math.cos(o),l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=r-n>f?1:0,p=["M",t,e,"L",s,u,"A",i,i,0,h,1,l,c,"Z"];return{path:p}},t.prototype._makeDonutSectorPath=function(t,e,i,n,r,o){var a=n*y,s=r*y,u=o||i*this.holeRatio,l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=t+u*Math.sin(a),p=e-u*Math.cos(a),d=t+i*Math.sin(s),g=e-i*Math.cos(s),m=t+u*Math.sin(s),v=e-u*Math.cos(s),_=r-n>f?1:0,x=["M",l,c,"A",i,i,0,_,1,d,g,"L",m,v,"A",u,u,0,_,0,h,p,"Z"];return{path:x}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",x),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var r=this,o=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,c=e[u],h=r._renderSector({paper:r.paper,circleBound:o,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});h.node.setAttribute("class","auto-shape-rendering"),h.data("index",u),h.data("legendIndex",u+i),h.data("chartType",r.chartType),s.push({sector:h,color:c,angles:t.angles.end,ratio:l}),n.push(h)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],r=n.angles.startAngle,o=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,r,o,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=[i.cx,i.cy,i.r],r=0;this.sectorInfos.forEach(function(t){var i=t.angles,o={fill:t.color},a=g*t.ratio;0===i.startAngle&&i.endAngle===p&&(i.endAngle=p-d),o[e]=n.concat([i.startAngle,i.endAngle]);var s=h["default"].animation(o,a,">");t.sector.animate(s.delay(r)),r+=a}),t&&setTimeout(t,r)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=h["default"].color(e.color),n=s["default"].makeChangedLuminanceColor(i.hex,_),r=this.selectionColor||n;e.sector.attr({fill:r})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,n){var r=e||t===n?m:v;i.sector.attr({"fill-opacity":r})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,r){var o=void 0;t.colors&&(n.fill=t.colors[r]),i&&(o=s["default"].renderText(t.paper,i,t.labels[r],n),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(o),t.labelSet.push(o)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),f=n(h),p=1,d=.3,y=6,g=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=y,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=r.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,c=this._getLinesPath(n),h=this.makeBorderStyle(r.strokeColor,a,r.strokeWidth),f=this.makeOutDotStyle(a,h),p=t.set(),d=this.lineWidth=l?l:this.lineWidth,y=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=r,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,c,o,p)),this.groupLines=this._renderLines(t,c,o,d,p),this.groupDots=this._renderDots(t,y,o,a,p),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=o,this.borderStyle=h,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=a,this.isShowArea=u,p},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,r){return e.map(function(e,o){var a=i[o]||"transparent",s=c["default"].renderLine(t,e.join(" "),a,n);return r.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var r=this;return e.map(function(e,o){var a=i[o]||"transparent",s=c["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":r.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){ -e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=f["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var r=e||t===n?p:d;i.attr({"stroke-opacity":r})})},e}(u["default"]);e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(332),a=n(o),s=i(333),u=n(s),l=i(330),c=n(l),h=700,f=.8,p=1,d=.8,y=.3,g=.2,m=2,v=20,_=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":p,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,r){return n.map(function(n,o){var s=null;if(n){var u=i[o],l=a["default"].renderCircle(e.paper,n,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",r),l.data("index",o),s={circle:l,color:u,bound:n}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:f},h,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,r){var o=n[i][r];t&&(t.bound=o,e._updatePosition(t.circle,o))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+m,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=y;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=d),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;u["default"].isUndefined(n);){var r=i.getElementByPoint(t.left,t.top);r?r.attrs.opacity>y?n=r:(e.push(r),r.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),r=[{},i,n,{left:t.left-v,top:t.top-v}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,r),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],r=c["default"].color(n.color),o=this.theme.selectionColor,s=o||a["default"].makeChangedLuminanceColor(r.hex,g);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,n,r){if(i){var o=e||t===r?d:y;i.circle.attr({opacity:o})}})},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(332),a=n(o),s=i(333),u=n(s),l=i(342),c=n(l),h=100,f=0,p=4,d=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?p:f},t.prototype._renderBoxes=function(t,e,i,n){var r=this,o=c["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(o&&!r.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);r._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,o){var a=null,s=t.depth,u=r.colorSpectrum?0:r._getStrokeWidth(s===e),l=r.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=o;var c=r._getBound(t);if(c){var h=r._getColor(t,e);a={rect:r._renderRect(c,h,u,l),seriesItem:t,color:h},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,r){var o=n.depth;o===e?n.fillOpacity=1:o===e+1?n.fillOpacity=.05*r:o")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var r=e._getBound(t.seriesItem,i,n);r&&a["default"].updateRectBound(t.rect,r)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,s){var u=a["default"].renderText(t,e[n][s].end,i,o);u.node.style.userSelect="none",u.node.style.cursor="default",r.push(u)})}),this.labelSet=r,r},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var s=a["default"].renderText(t,e[n],i,o);s.node.style.userSelect="none",s.node.style.cursor="default",r.push(s)}}),this.labelSet=r,r},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){f["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(332),c=n(l),h=i(336),f=n(h),p=i(334),d=n(p),y=i(333),g=n(y),m=g["default"].browser,v=m.msie&&m.version<=8,_="gray",x=100,b="tui-chart-series-group",T="#eee",E=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),v||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,r=t.layout.position,o=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?o.getColor(u):T,f=c["default"].renderArea(n,l,{fill:h,opacity:1,stroke:_,"stroke-width":.2,"stroke-opacity":1,transform:d["default"].oneLineTrim(s,e,e,r.left/e,r.top/e)});return f.data("index",a),i.push(f),{sector:f,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!g["default"].isUndefined(i)&&this.sectors[i];return n&&!g["default"].isUndefined(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,x,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:_,"stroke-width":.2},x,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,r){var o=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=o.numberOfItems?o.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},c=r.width-this.dimension.width,h=r.height-this.dimension.height,f=l.e/l.a,p=l.f/l.d,d=-c/l.a,y=-h/l.d;u.scale(t,t,e.left*i-f*t,e.top*i-p*t);var g=u.e/u.a+f,m=u.f/u.d+p;g>=0?u.e=-f*u.a:g=0?u.f=-p*u.a:m=0&&r>0?e.e=0:o<0&&o<-n/i.a&&r<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,r=e.f/e.d,o=r+i.f/i.d;o>=0&&r>0?e.f=0:o<0&&o<-n/i.d&&r<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:d["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},r=t.set();return e.forEach(function(e){var i=e.position,o=c["default"].renderText(t,i,e.name||e.code,n);r.push(o),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(o.node)}),r},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=r(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(335),l=n(u),c=i(332),h=n(c),f=i(337),p=n(f),d=i(334),y=n(d),g=i(351),m=n(g),v=i(333),_=n(v),x=.5,b=8,T=10,E=T/2,A=3,S=function(){function t(){o(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,r){var o=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,c=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,f=n.left+e._calculateSingleLegendWidth(a,o),p=f>=e.paper.width;e.isHorizontal&&p&&(n.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:c.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:o,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[r]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,r=this.paper.height,o=t;if(!this.isHorizontal&&n+2*i>r){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=r-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);o=t.slice((e-1)*u,e*u)}return o},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=_["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),S.click(function(){i._currentPageCounti&&(n=i),n+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return h["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,r={left:t.left,top:t.top+this._legendItemHeight/2},o={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?x:1,"text-anchor":"start"},a=h["default"].renderText(this.paper,r,e.labelText,o);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,r=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,o=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=y["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+r,a,a,o,o),l=this.paper.set(),c=this.paper.rect(n,r,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(c.node.setAttribute("class","auto-shape-rendering"),l.push(c),e.isChecked){var h=this.paper.path(u).attr({stroke:"#555","stroke-width":2});h.node.setAttribute("class","auto-shape-rendering"),l.push(h)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=h["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?x:1}):(n=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?x:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";_["default"].isNull(i)||_["default"].isUndefined(i)?e.attr(n,1):_["default"].isUndefined(i)||(_["default"].isNumber(t)&&i!==t?e.attr(n,x):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:p["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(333),o=n(r),a=i(337),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var r=(e-t)/20;return i.max=e+r+n,e/6>t?i.min=n:i.min=t-r+n,i},makeTickPixelPositions:function(t,e,i,n){var r=[];return i=i||0,e>0&&(r=o["default"].range(0,e).map(function(n){var r=0===n?0:n/(e-1);return r*t+i}),r[r.length-1]-=1),n&&r.push(n),r},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),r=Math.round(t.max*i),a=o["default"].range(n,r+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=o["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=o["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},c=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},h=function(){for(var t=arguments.length,e=Array(t),i=0;ic.dimension[e]+d},g=void 0;n.forEach(function(n){var s="M";n+=r,y(n)||(o?a?(s+=p+","+(f+n),s+="H"+(p+5),s+="M"+h+","+(f+n),s+="H"+(h-5)):u?(s+=p+","+(f+n),s+="H"+(p+5)):(s+=h+","+(f+n),s+="H"+(h-5)):(s+=p+n+","+f,s+="V"+(f+5)),isNaN(n)||(g=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(g),e.ticks.push(g)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,r=i.dimension,o=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),c=1-l/(u+l),h="M",f=n.top,p=s+r.width;if(a){var d=f;p+=t.seriesDimension.width*c,h+=p+","+d;var y=f+e;h+="V"+y}else{h+=s,f-=t.seriesDimension.height*c,h+=","+f+"H";var g=s+e;h+=g}t.set.push(o.path(h).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,r=n.position,o=r.top,a=r.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,c=t.additionalSize,h=t.isPositionRight,f=t.isCenter,p=t.isVertical,d=t.tickColor,y=t.seriesDimension,g=e,m=s.height+o,v=a+s.width,_="M",x=void 0,b=void 0;h?(_+=a+","+o,_+="V"+m):p?(x=o,u&&(v+=y.width/2),_+=v+","+x,f?(_+="V"+m,_+="M"+a+","+x,_+="V"+m):(b=o+g,_+="V"+b)):_=this._makeNormalTickPath(_,{isNotDividedXAxis:l,baseTop:o,baseLeft:a,additionalSize:c,isNegativeStandard:u,seriesDimension:y,lineSize:g}),t.set.push(i.path(_).attr({"stroke-width":1,stroke:d,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,r=e.theme,u=e.additionalWidth,l=e.otherSideDimension,c=e.areaSize,h=e.tickCount,p=e.layout,d=o(n,r),y=a(n,r),g=p.dimension.height,m=p.dimension.width,v=p.position.top,_=p.position.left+u,x=y/2-l.width,b={top:v+g-d/2,left:_+(x<0?0:x)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=_+m/2):i.isDiverging||(b.top=v-d/2-f):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=_+c/2:i.isDiverging&&!i.isYAxisCenter?b.left=_+m/2:i.isColumnType&&(b.left=_+m/(h-1)/2)),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(337),l=n(u),c=8,h=3,f=function(){function t(){r(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=o(e,1),n=o(i[0],1),r=n[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=I["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=O["default"].deepCopy(e),"combo"!==n){var r=e.series;e.series={},e.series[n]=r}i=i?O["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var o=C["default"].get(i.theme,n,e.series),a=S["default"].get(i.chartType,e,o,i);return a.render(t),a.animateChart(),a}function o(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function c(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_SCATTER)}function h(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function f(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function p(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_COMBO)}function d(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_PIE)}function y(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_MAP)}function g(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_RADIAL)}function m(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function v(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BULLET)}function _(t,e){C["default"].register(t,e)}function x(t,e){P["default"].register(t,e)}function b(t,e,i){D["default"].register(t,e),N["default"].addRendererType(t,i)}var T=i(335),E=n(T),A=i(358),S=n(A),w=i(360),D=n(w),M=i(361),C=n(M),L=i(363),P=n(L),k=i(364),O=n(k),R=i(365),I=n(R),B=i(366),N=n(B);i(367),i(368),i(473),t.exports={barChart:o,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:c,heatmapChart:h,treemapChart:f,comboChart:p,pieChart:d,mapChart:y,radialChart:g,boxplotChart:m,bulletChart:v,registerTheme:_,registerMap:x,registerPlugin:b}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(359),s=n(a),u=i(342),l=n(u),c={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[o["default"].CHART_TYPE_COLUMN]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[o["default"].CHART_TYPE_LINE]&&n[o["default"].CHART_TYPE_SCATTER]?i=o["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[o["default"].CHART_TYPE_AREA]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_LINE_AREA_COMBO:n[o["default"].CHART_TYPE_PIE]&&(i=o["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var r=this._findKey(t,e),o=c[r];if(!o)throw new Error("Not exist "+t+" chart.");return new o(e,i,n)},register:function(t,e){c[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(337),c=n(l),h=i(333),f=n(h);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=c["default"].unique(i);e&&(n=n.slice(0,2));var r=n.filter(function(t){return!!t});return r.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var o=r(n,2),a=o[0],s=o[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];e[o]?e[o].length&&(i.series[o]=a.filter(function(t,i){return e[o][i]})):i.series[o]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a={};e["default"]={get:function(t,e){var i=a[t||o["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var r=new n;return r},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(362),c=n(l),h=i(333),f=n(h),p={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),p[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var o=r(n,2),a=o[0],s=o[1],u=t[a];(u||0===u)&&(f["default"].isArray(u)?e[a]=u.slice():f["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){f["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var r=this,o={};return e=e||{},t.forEach(function(t){var a=e[t]||r._pickValidTheme(e,n);f["default"].keys(a).length?(o[t]=JSON.parse(JSON.stringify(c["default"][n])),r._overwriteTheme(a,o[t])):o[t]=JSON.parse(JSON.stringify(i))}),o},_makeEachSeriesColors:function(t,e,i){for(var n=[],r=t.length,o=i||0,a=0;a=r&&(o=0);return n},_setSeriesColors:function(t,e,i,n){var r=this,o=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(o=i[t].colors,s=!0):(o=i.colors||c["default"].series.colors,s=!1),a=r._getSeriesThemeColorCount(n[t]),e[t].colors=r._makeEachSeriesColors(o,a,!s&&u),s||(u=(a+u)%o.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,n){var r=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(r=JSON.parse(JSON.stringify(c["default"])),this._overwriteTheme(e,r)):r=JSON.parse(JSON.stringify(e)),r.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,r.yAxis,"yAxis"),r.series=this._createComponentThemeWithSeriesName(i,e.series,r.series,"series"),this._setSeriesColors(i,r.series,e.series,n),r},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return f["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),f["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;f["default"].forEach(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i){var n=p[t];if(!n)throw new Error("Not exist "+t+" theme.");var r=this._pickSeriesNames(e,i),o=this._initTheme(t,n,r,i);return this._inheritThemeFont(o,r),this._copySeriesColorThemeToOther(o),o}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",r="lighter",o="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:o,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:o},title:{fontSize:18,fontFamily:o,color:i,fontWeight:r},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:o,color:"#888"}},series:{label:{fontSize:11,fontFamily:o,color:i,fontWeight:r},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:r}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(333),a=n(o),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=u(o)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function o(t){var e=[];if(t){var i=[],n=c["default"].toArray(t.getElementsByTagName("TR"));c["default"].forEach(n,function(t,e){var n=0===e?"TH":"TD",r=c["default"].toArray(t.getElementsByTagName(n)),o=c["default"].pluck(r,"innerText");i.push(o)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){var t=location,e=t.hostname;A["default"].imagePing("https://www.google-analytics.com/collect",{v:1,t:"event",tid:"UA-115377265-9",cid:e,dp:e,dh:"chart"})},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){A["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=A["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;A["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=v["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||c["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return x["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null, -prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=d["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,r=n.getLegendVisibility(),o=f["default"].filterCheckedRawData(n.rawData,r),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(o),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),g["default"].renderFontFamily(e,this.theme.chart.fontFamily),d["default"].append(t,e);var u=this.readyForRender();g["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:r},e),this.chartContainer=e,this.paper=s},t.prototype.rerender=function(t,e){var i=this.dataProcessor;e||(e=f["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.onChangeCheckedLegends=function(t,e,i){this.rerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var r=this.readyForRender(),o=r.dimensionMap.chart;g["default"].renderDimension(this.chartContainer,o),this.paper.resizeBackground(o.width,o.height),this.componentManager.render("resize",r,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,r=-1,o=0;o=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(336),l=n(u),c=i(372),h=n(c),f=i(373),p=n(f),d=i(374),y=n(d),g=i(375),m=n(g),v=i(377),_=n(v),x=i(366),b=n(x),T=i(383),E=n(T),A=i(385),S=n(A),w=i(386),D=n(w),M=i(387),C=n(M),L=i(393),P=n(L),k=i(395),O=n(k),R=i(396),I=n(R),B=i(400),N=n(B),F=i(407),G=n(F),H=i(411),V=n(H),j=i(412),z=n(j),W=i(414),Y=n(W),U=i(415),X=n(U),Z=i(416),K=n(Z),q=i(418),J=n(q),Q=i(419),$=n(Q),tt=i(420),et=n(tt),it=i(421),nt=n(it),rt=i(422),ot=n(rt),at=i(424),st=n(at),ut=i(425),lt=n(ut),ct=i(426),ht=n(ct),ft=i(333),pt=n(ft),dt={axis:h["default"],plot:p["default"],radialPlot:m["default"],legend:E["default"],spectrumLegend:S["default"],circleLegend:D["default"],tooltip:C["default"],groupTooltip:P["default"],mapChartTooltip:O["default"],mapChartEventDetector:I["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:z["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:nt["default"],treemapSeries:ot["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:ht["default"],chartExportMenu:_["default"],title:y["default"]},yt=function(){function t(e){r(this,t);var i=e.options.chart,n=pt["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,o=pt["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:n,height:o}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,n){return t=t||this.options[e],t=pt["default"].isArray(t)?t[n]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,r=i.index||0,o=dt[e],a=o.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes,n="axis"===a?t:a,i.theme=this.theme[n],i.options=this.options[n],i.theme||"rightYAxis"!==n||(i.theme=this.theme.yAxis),i.options||"rightYAxis"!==n||(i.options=this.options.yAxis),"series"===n&&this.seriesTypes.forEach(function(e){return 0!==t.indexOf(e)||(i.options=i.options[e]||i.options,i.theme=i.theme[e],pt["default"].isArray(i.options)&&(i.options=i.options[r]||{}),!1)}),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=o(i);s&&(s.componentName=t,s.componentType=a,this.components.push(s),this.componentMap[t]=s)},t.prototype._makeDataForRendering=function(t,e,i,n,r){var o=Object.assign({paper:i},r);return n&&(Object.assign(o,n),o.layout={dimension:o.dimensionMap[t]||o.dimensionMap[e],position:o.positionMap[t]||o.positionMap[e]}),o},t.prototype.render=function(t,e,i,n){var r=this,o=this.components.map(function(o){var a=null;if(o[t]){var s=o.componentName,u=o.componentType,l=r.drawingToolPicker.getPaper(n,o.drawingType),c=r._makeDataForRendering(s,u,l,e,i),h=o[t](c);h&&!h.paper&&(a=h)}return a});n&&l["default"].append(n,o)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];return e[r]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,r=this.isYAxis&&this.data.aligned,o=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&o&&o.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},c=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),r||this._renderTickArea(t,e,n),a&&s&&!c&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,o)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,r=i.labels,o=Math.round(e/2),a=e-o-1,s=parseInt(n/2,10)+1,u=r.slice(0,s),l=r.slice(s-1,n),c=o/s,h=o+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=c,this._renderChildContainers(o,s,u,0),this._renderChildContainers(a+1,s,l,h)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,r=n.positionRatio,o=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;r&&(l=u*r),this._renderChildContainers(u,o,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,r=i.isCenter,o=t.width;this.isLabelAxis=e,n?(this.containerWidth=o+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),o=this.containerWidth):(o+=r?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,r=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=r[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,r=this.dataProcessor.getOption("yAxis"),o=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:o.diverging,isYAxisCenter:r&&"center"===r.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var r=this.theme.tickColor,o=this.data,a=o.remainLastBlockInterval,s=o.sizeRatio,u=void 0===s?1:s,l=o.tickCount,c=o.isPositionRight,f=a?t:0,p=this.isYAxis,d=this.data.options,y=d.isCenter,g=d.divided,m=h["default"].makeTickPixelPositions(t*u,e,0,f),v=this.paperAdditionalHeight+1,_=this.paperAdditionalWidth,x=f?l+1:l;m.length=x,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:m,isVertical:p,isCenter:y,isDivided:g,additionalSize:n,additionalWidth:_,additionalHeight:v,otherSideDimension:this._getOtherSideDimension(),isPositionRight:c,tickColor:r,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var r=this.data,o=r.sizeRatio,a=void 0===o?1:o,s=r.remainLastBlockInterval,u=s?t:0,l=h["default"].makeTickPixelPositions(t*a,e,0,u),c=l[1]-l[0];this._renderLabels(l,i,c,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,c=i/v,h=this.layout.position,f=h.top,p=h.left,d=f+_,y=p,g=this.options.labelMargin||0;t.forEach(function(t,h){var f=t+(n||0),p={};a?(p.top=f+l,p.left=i+g):(p.top=d+g,p.left=y+f+c),o.renderRotatedLabel({degree:u,labelText:e[h],paper:r.paper,positionTopAndLeft:p,set:r.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,c=this.layout,h=this.data.isPositionRight,f=this.theme.label,p=this.options,d=p.labelMargin,g=void 0===d?0:d,m=p.pointOnColumn,v=p.isCenter,_=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),x=_&&m,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var p=u+n,d=i/2,m=r._isOverLapXAxisLabel(e[l],u,t[l+1]),T={};p<0||!a&&b&&m||(T=a?r._getYAxisLabelPosition(c,{labelPosition:p,isCategoryLabel:s,halfLabelDistance:d,isPositionRight:h}):r._getXAxisLabelPosition(c,{labelMargin:g,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,f),labelPosition:p,isCategoryLabel:s,isLineTypeChart:_,isPointOnColumn:x,halfLabelDistance:d}),T.top=Math.round(T.top),T.left=Math.round(T.left),o.renderLabel({isPositionRight:h,isVertical:a,isCenter:v,labelSize:i,labelText:e[l],paper:r.paper,positionTopAndLeft:T,set:r.axisSet,theme:f}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=y["default"].getRenderedLabelWidth(t);return!m["default"].isUndefined(i)&&i-e=0&&ne;var n=i.findAbsoluteCategoryIndex(t),r=i.findAbsoluteCategoryIndex(e);return n>=0&&n>r},t.prototype._renderOptionalLine=function(t,e,i,n){var r=this._createOptionalLinePositionMap(n,t,e),o=void 0;return r.start>=0&&r.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,o=this._renderLine(r.start+this.layout.position.left,i)),o},t.prototype._makeOptionalBand=function(t,e,i,n){var r=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return r._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(o),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var o=t.start>=0&&t.start<=e,a=void 0;if(o&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=r._renderBand(t.start+r.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,r,i,o);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,r,i,o);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+r.dimension.height),n=e.paper.path(i);n.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.left,u=a.top,l=n[1]-n[0];n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+r.dimension.width),a=e.paper.path(n);a.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=p["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),r=t-n,o=p["default"].makeTickPixelPositions(n,e),a=p["default"].makeTickPixelPositions(r,e,n+i);return o.pop(),a.shift(),o.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=p["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,r){e._animateItemForAddingData(i,t,function(t){n[r].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,r){var o=t.getBBox();o.x-e.tickSize0&&f<180?"end":f>180&&f<360?"start":"middle",u.push({left:p.x,top:i-p.y,anchor:d})}return u}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(376),l=n(u),c=i(351),h=n(c),f=i(335),p=n(f),d=i(360),y=n(d),g=i(333),m=n(g),v=p["default"].COMPONENT_TYPE_RAPHAEL,_=p["default"].RADIAL_PLOT_PADDING,x=p["default"].RADIAL_MARGIN_FOR_CATEGORY,b=p["default"].RADIAL_CATEGORY_PADDING,T=function(){function t(e){r(this,t),this.className="tui-chart-plot-area",this.options=m["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=y["default"].get(v,"radialPlot"),this.drawingType=v}return t.prototype._renderPlotArea=function(t,e,i,n){var r={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(r)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,a=n.top,s=i.width,u=i.height;s=s-_-x,u=u-_-x;var l=h["default"].sum([s/2,_/2,x/2,r]),c=u/2-_/2-x/2-a,f=t.yAxis.tickCount,p=t.xAxis.labels.length;return o({width:s,height:u,centerX:l,centerY:c,angleStepCount:p,stepCount:f})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,o=n.top,s=i.width,u=i.height;s=s-_-b,u=u-_-b;var l=h["default"].sum([s/2,_/2,b/2,r]),c=u/2-_/2-b/2-o,f=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:c,angleStepCount:f})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,r=t.yAxis.labels,o=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";r=o+"~"+a}i.push(r)}return i}function l(t,e){for(var i=[],n=0;n",A["default"].forEach(t,function(t,r){var o=0!==i||0===r?' class="number"':"",a="<"+n+o+">"+t+"";e+=a}),e+=""}),e+=""}function d(t){var e=T["default"].oneLineTrim(g,p(t));return e}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,r=e.itemDelimiter,o=void 0===r?",":r,a=t.length-1,s="";return A["default"].forEachArray(t,function(t,e){var i=t.length-1;A["default"].forEachArray(t,function(t,e){var n=A["default"].isNumber(t)?t:'"'+t+'"';s+=n,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),m=i(380),v=n(m),_=i(335),x=n(_),b=i(334),T=n(b),E=i(333),A=n(E),S={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},w={xls:d,csv:y},D=[].concat(o(x["default"].DATA_EXTENSIONS)),M={downloadData:function(t,e,i,n){var r=a(i),o=S[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=w[e](r,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=S[e]+s),v["default"].execDownload(t,e,s,o)},_isNeedDataEncodeing:function(){var t=A["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return D}};Object.assign(M,{_makeCsvBodyWithRawData:y,_makeXlsBodyWithRawData:d,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:c,_get2DArrayFromHeatmapRawData:f,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=h["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function o(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),r=[],o=0;o0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();m["default"].CustomEvents.mixin(T),o.componentType="legend",o.Legend=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;n=o?n.substr(0,4):String(r);var a=n+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function o(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,o=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return y["default"].isArray(t.colors)});return u.forEach(function(t){o=o.concat(t.colors)}),a="map"===e?h["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||p["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=r),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=o,a(t)}e.__esModule=!0,e["default"]=o;var a=i(388),s=n(a),u=i(393),l=n(u),c=i(395),h=n(c),f=i(342),p=n(f),d=i(333),y=n(d);o.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(390),h=n(c),f=i(335),p=n(f),d=i(342),y=n(d),g=i(391),m=n(g),v=i(333),_=n(v),x="#aaa",b=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(_["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=m["default"].tplDefault;return y["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):y["default"].isPieChart(this.chartType)||y["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=m["default"].tplPieChart:this.dataProcessor.coordinateType?e=m["default"].tplCoordinatetypeChart:y["default"].isBulletChart(this.chartType)?e=m["default"].tplBulletChartDefault:y["default"].isHeatmapChart(this.chartType)&&(e=m["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=m["default"].tplBoxplotChartDefault;return _["default"].isNumber(t.outlierIndex)&&(e=m["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),r=this._findTooltipColor(t,e,n);return y["default"].isBoxplotChart(this.chartType)&&_["default"].isNumber(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(r=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.chartType=this.chartType,n.cssText="background-color: "+r,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return y["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},_["default"].pick(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=y["default"].isBarTypeChart(this.chartType),r=y["default"].isBoxplotChart(this.chartType),o=(n||r)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return y["default"].isBulletChart(this.chartType)?s=a:y["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),o?x:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=p["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var r=n.chartType,o=n.label,a=_["default"].extend({chartType:r,legend:o,legendIndex:i, -index:t.groupIndex},e);return y["default"].isBoxplotChart(r)&&_["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,r=this.labelFormatter,o={legend:t,label:n||(i.label?i.label:""),category:e};return r&&(o=r(i,o,"")),o.category=e,_["default"].extend(o,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=y["default"].isTreemapChart(this.chartType),n={},r={};return _["default"].isArray(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,o){o=o||t.chartType;var a=y["default"].isBulletChart(o),s=e.map(function(e,r){var s=t.dataProcessor.makeTooltipCategory(i,r,t.isVertical),u=a?i:r;return e?t._makeTooltipDatum(n[o][u],s,e):null});r[o]||(r[o]=[]),r[o].push(s)},i),r},e}(l["default"]);h["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(333),a=n(o),s=i(330),u=n(s),l=i(364),c=n(l),h=i(335),f=n(h),p=i(336),d=n(p),y=i(342),g=n(y),m=i(334),v=n(m),_=function(){function t(e){r(this,t);var i=g["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=c["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?f["default"].TOOLTIP_PIE_ANIMATION_TIME:f["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=f["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?r-=o+a:e.indexOf("center")>-1&&o?r-=o/2:r+=a,r},_makeTopPositionOfNotBarChart:function(t,e,i,n){var r=t,o=i||0;return e.indexOf("bottom")>-1?r+=o+n:e.indexOf("middle")>-1&&o?r+=o/2:r-=o+s["default"].TOOLTIP_GAP,r},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,r=t.alignOption,o=void 0===r?"":r,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,c=e.left-this.layout.position.left+i.left,h=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(c,o,a,u),top:this._makeTopPositionOfNotBarChart(h,o,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},o["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=t.alignOption,a=void 0===o?"":o,s=r.height-(i.height||0),u=r.width,l=i.left+i.width+n.left-e.left,c=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(c,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=p["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-r.width)/2+n.left-e.left,top:i.top+i.height/2-o+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,r=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",r=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",r=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:r})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,r=e.positionType,o=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(o.groupIndex,o.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var c=e.dimension[n],h=i[n],f=t[r]+(h+c)*u;t[r]=f}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),r=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},c=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,r)||c!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,c),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,r),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,r),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(r,e.silent),h["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var f=this._makeTooltipPosition(o["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,f,i),this.eventBus.fire("hoverSeries",r,e.chartType),this._fireAfterShowTooltipPublicEvent(r,{element:t,position:f},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){h["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,r=this._getIndexesCustomAttribute(t),o=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(o)?(this.eventBus.fire("hoverOffSeries",r,o),this._fireBeforeHideTooltipPublicEvent(r,a),this._executeHidingTooltip(t)):o&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",r,o),this._isChangedIndexes(this.prevIndexes,r)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(r,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){o["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(392),o=n(r),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
',HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:o["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:o["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:o["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:o["default"].template(a.HTML_GROUP),tplGroupType:o["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:o["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:o["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:o["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:o["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:o["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:o["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:o["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),r=e[0],o=e[1],a=new RegExp("{{\\s*"+r+"\\s*}}","g");n=n.replace(a,String(o).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new L(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(394),h=n(c),f=i(335),p=n(f),d=i(336),y=n(d),g=i(334),m=n(g),v=i(362),_=n(v),x=i(391),b=n(x),T=i(333),E=n(T),A=i(342),S=n(A),w=p["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,D=p["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,M=p["default"].SERIES_EXPAND_SIZE,C=p["default"].PUBLIC_EVENT_PREFIX,L=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevIndex=null,n.isBullet=S["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var r=b["default"].tplGroupItem,o=b["default"].tplGroupCssText,a=S["default"].isBarTypeChart(this.chartType),s=S["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,n),c=void 0,h=e.map(function(t,e){var i=t.type,n="data"!==i&&c!==i,a="";return c=i,t.value?(n&&(a=b["default"].tplGroupType({type:i})),a+=r(E["default"].extend({cssText:o({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:h})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=w:this.options.align=D)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new h["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var r=e.originalTheme[n].colors;r.forEach(function(e,r){var o=t[n]||t;o[r]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var r=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:r}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),r=void 0,o=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=_["default"].series.colors.slice(0,n.length);return E["default"].pluck(n,"chartType").map(function(e){o!==e&&(r=t[e]?t[e].colors:a,i=0),o=e;var n=r[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,r=this.suffix;return t.map(function(t,o){var a={value:t.label,type:t.type,suffix:r,legend:""},s=void 0;return i.isBullet?s=n.getLegendItem(e):(s=n.getLegendItem(o),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=y["default"].create("DIV","tui-chart-group-tooltip-sector");y["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start,top:M}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:M,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,r){var o=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(m["default"].renderDimension(o,s.dimension),m["default"].renderPosition(o,s.position),y["default"].addClass(o,"show")),r&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();y["default"].hasClass(e,"show")?y["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),y["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),r=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,r,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:r},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(C+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(C+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),y["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(C+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=function(){function t(e,i,n,o){r(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=o,this.positions={},this._setData(e,i,n,o)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var r=this._makeVerticalData(t,e,n.align),o=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=r,this.subData=o):(this.mainData=o,this.subData=r),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,r=9,o=5,s=n?r:o,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var r=void 0;return t<-n.areaPosition&&(r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(r,i,n)>0?-n.areaPosition:r),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var r=this._makePositionValueDiff(t,i,n);if(r>0){var o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});o<-n.areaPosition?t-=r:t=o}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,r=this.subData,o=this.positions[i];return o||(o={},o[n.positionType]=this._makeMainPositionValue(t,e,n),o[r.positionType]=this._makeSubPositionValue(t,r),this.positions[i]=o),o},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new v(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(389),h=n(c),f=i(390),p=n(f),d=i(391),y=n(d),g=i(333),m=n(g),v=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return y["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=m["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(h["default"]);p["default"].mixin(v),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e); -}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),f=i(382),p=n(f),d=i(336),y=n(d),g=i(334),m=n(g),v=i(333),_=n(v),x=function(t){function e(i){r(this,e);var n=o(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=h["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){m["default"].renderDimension(t,this.layout.dimension),m["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,y["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||y["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*h["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),_["default"].browser.firefox?p["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):p["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(398),a=n(o),s=i(399),u=n(s),l=i(335),c=n(l),h=i(382),f=n(h),p=i(342),d=n(p),y=i(336),g=n(y),m=i(334),v=n(m),_=i(333),x=n(_),b=function(){function t(e){if(r(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=d["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?c["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=d["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=c["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=v["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),r=n.dimension,o=n.position;v["default"].renderDimension(t,r),v["default"].renderPosition(t,o)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return g["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),g["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=v["default"].getStyle(this.mouseEventDetectorContainer).height,v["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),r=n.left,o=n.right,a=n.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!x["default"].isUndefined(i)||i){var h=o-u,f=r+u;t=Math.min(Math.max(t,f),h)}return l.x=t-r+s.left-c["default"].CHART_PADDING,x["default"].isUndefined(e)||(l.y=e-a+s.top-c["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=v["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=d["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){g["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),g["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){f["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();x["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(342),a=n(o),s=i(337),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n,o,s){r(this,t),this.isLineType=a["default"].isLineTypeChart(n,s),this.data=this._makeData(e,i,o)}return t.prototype._getRanges=function(t,e,i){var n=e,r=i/2;return c["default"].range(0,t).map(function(){var t={min:n-r,max:n+r};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),r=this._getRanges(e,i||0,n);return r[e-1].max-=1,r},t.prototype._makeNormalData=function(t,e,i){var n=e-1,r=t/n,o=i||0;return c["default"].range(0,n).map(function(){var e=u["default"].min([t+o,r+o]),i={min:o,max:e};return o=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",r=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[r]):this._makeNormalData(t.dimension[n],e,t.position[r])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],n=void 0,r=void 0;return this.isLineType?(r=parseInt(i.max-(i.max-i.min)/2,10),n={start:r,end:r}):n={start:i.min-(e||0),end:i.max-(e||0)},n},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,o=t.top<=n&&t.bottom>=n;return r&&o},t.prototype.findData=function(t,e,i){var n=1e4,r=null;if(t>-1&&this.data[t]){var o=this._findCandidates(this.data[t],e,i);o.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,r=t.sendData)})}return r},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return p["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,r=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return r&&(e=i.sendData),!r}),e},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,r=e.series,o=r.zoomable,s=r.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?f["default"]:a["default"].isMapChart(n)?g["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?d["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?c["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=o,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=r;var o=i(342),a=n(o),s=i(401),u=n(s),l=i(404),c=n(l),h=i(405),f=n(h),p=i(406),d=n(p),y=i(396),g=n(y);r.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(402),h=n(c),f=i(403),p=n(f),d=i(333),y=n(d),g=50,m=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(y["default"].extend(n,h["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new p["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,g,n)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(397),o=n(r),a=i(335),s=n(a),u=i(336),l=n(u),c=i(334),h=n(c),f=i(382),p=n(f),d=i(333),y=n(d);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){h["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=o["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,o["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),p["default"].on(document,"mousemove",this._onDrag,this),p["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),p["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),p["default"].off(document,"mousemove",this._onDrag,this),p["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),p["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,n=Math.abs(e-this.startLayerX),r=this.dragSelectionElement;r.style.left=i+"px",r.style.width=n+"px",l["default"].addClass(r,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(y["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),n=i[1]-i[0];return 0===n?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===n&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),r=n[1]-n[0];this.prevDistanceOfRange!==r&&(this.prevDistanceOfRange=r,this.reverseMove=i,this.eventBus.fire("zoom",n))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),y["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):o["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,r(a)),this.lastGroupIndex=o,(i=[]).concat.apply(i,r(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var n={},r=1e5,o=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+n||ea+r},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!y["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(h["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),f=i(342),p=n(f),d=i(336),y=n(d),g=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=y["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN),y["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new v(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),f=i(335),p=n(f),d=i(342),y=n(d),g=p["default"].OVERLAPPING_WIDTH,m=p["default"].TEXT_PADDING,v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:r,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+g),e},e.prototype._makeBarChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=n.ratioDistance,f=n.value,p=n.startRatio,d=n.stack,y=o*h,g=this._calculateAdditionalLeft(f),m=o*p,v=a+m+g,_=d!==e.prevStack,x=s*u>l,b=x?c:s,T=void 0;if(!i||!this.options.diverging&&_){var E=i?this.dataProcessor.findStackIndex(d):r;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}f>=0?(T=v+e.plusLeft,e.plusLeft+=y):(e.minusLeft-=y,T=v+e.minusLeft),e.prevStack=d;var A=e.top+c-s/2;return x||(A+=(c-s)/2*(u-1)),this._makeBound(y,s,A,v,T)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout,r=n.dimension,o=r.width,a=r.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,o);return e.map(function(e,n){ -var r=n*u.groupSize+s,o={baseTop:r,top:r,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,o,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+m)/2},e}(l["default"]);h["default"].mixin(v),s.componentType="series",s.BarChartSeries=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(333),a=n(o),s=i(335),u=n(s),l=i(336),c=n(l),h=i(342),f=n(h),p=i(334),d=n(p),y=i(360),g=n(y),m=i(332),v=n(m),_=600,x=a["default"].browser,b=x.msie&&7===x.version,T=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,A=u["default"].CLASS_NAME_SERIES_LABEL,S=function(){function t(e){r(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=g["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=T,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,r=e.labelSuffix,o=void 0===r?"":r,s=d["default"].addPrefixSuffix,u=d["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(d["default"]);return l(t,n,o)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),f["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=d["default"].isOldBrowser()?1:0;d["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,r=n-i,o=0,a=0;return i<=0&&n>=0?(o=(r+i)/r*t,a=(r-n)/r*t):i>0&&(o=t),{toMax:o,toMin:a}},t.prototype._findLabelElement=function(t){return c["default"].hasClass(t,A)?t:c["default"].findParentByClass(t,A)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&v["default"].animateOpacity(this.labelSet,0,1,_)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),r=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,o=this._getSeriesDataModel().getSeriesItem(r,e.index),s=void 0;return a["default"].isExisty(o)&&(s={chartType:n.chartType,legend:n.label,legendIndex:i},s.index=o.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&c["default"].hasClass(this.seriesLabelContainer,"show")&&(c["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&c["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(c["default"].removeClass(this.seriesLabelContainer,"show"),c["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=i(410),u=n(s),l=i(342),c=n(l),h=i(351),f=n(h),p=i(334),d=n(p),y=i(332),g=n(y),m=i(333),v=n(m),_=a["default"].CHART_PADDING,x=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,T=function(){function t(){r(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var h=r/(l+1),f=this.options.barWidth||this.options.pointWidth,p=h*b,d=a+s;p=this._getBarWidthOptionSize(h,f)||p,c["default"].isColumnChart(this.chartType)&&(d=e-d),c["default"].isBoxplotChart(this.chartType)&&a&&(d-=2*a),u={baseBarSize:e,groupSize:r,barSize:p,pointInterval:h,basePosition:d,itemCount:l,firstAdditionalPosition:h}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),r=this.seriesData.groupBounds,o=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,r=t.endLabel,o={end:e.decorateLabel(r)};return v["default"].isExisty(i)&&(o.start=e.decorateLabel(n)),o})}),l=void 0;return l=c["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,r,o):u["default"].boundsToLabelPositionsForColumnChart(n,r,o),i.renderSeriesLabel(t,l,s,o,a)},t.prototype._makeSumValues=function(t){return d["default"].formatValue({value:f["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,r=t.height;return{left:i+n/2,top:e+r/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var r=t.bounds[n],o=void 0;return r&&i&&(o=e._makeStackedLabelPosition(r.end)),{end:o}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,r=c["default"].isNormalStack(this.options.stackType);return t.map(function(t){var o=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(r){e.push(f["default"].sumPlusValues(t.pluck("value")));var a=f["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return o})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],r=this.theme.label,o=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,o),u=this.getGroupLabels(a,i,n),l=!0,h=c["default"].isNormalStack(this.options.stackType),f=c["default"].isBarChart(this.chartType),p=f?"width":"height",y=f?"left":"top",m=f?1:-1;return h&&(u.forEach(function(t,r){var o=i[r],a=n[r];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(d["default"].formatToComma(o))}),n.length&&t.push({end:e.decorateLabel(d["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=o[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,c=e._makeStackedLabelPosition(u),h=e._makeStackedLabelPosition(l),f=i[a],d=n[a],v=g["default"].getRenderedTextSize(f,r.fontSize,r.fontFamily),_=g["default"].getRenderedTextSize(d,r.fontSize,r.fontFamily),b=(u[p]+v[p])/2,T=(l[p]+_[p])/2;c[y]+=(b+x)*m,h[y]-=(T+x)*m,t.push({end:c}),n.length&&t.push({end:h})})),this.graphRenderer.renderSeriesLabel(t,s,u,r,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();T.mixin=function(t){Object.assign(t.prototype,T.prototype)},e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a),u=o["default"].MAX_HEIGHT_WORD,l=o["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,r){var o=t.value,a=o>=0,s={end:r(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=o<0,s.start=r(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,r){var o=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),r=!!r,t.map(function(t,r){var s=e[r];return t.map(function(t,e){var r=s[e].end;return o._makePositionMap(t,r,a,i,n)})},r)},_makePositionForBarChart:function(t,e,i,n,r){var o=s["default"].getRenderedLabelWidth(i,n),a=t.left;return r?a+=t.width+l:a-=o+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,r){var o=t.top;return r?o-=e+l:o+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:o}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],r=void 0;return n&&(r=i._makePositionForBoundType(n)),r});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new v(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),f=i(335),p=n(f),d=i(342),y=n(d),g=i(334),m=n(g),v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:n,left:i,width:t,height:0},end:{top:r,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=Math.abs(o*n.ratioDistance),f=o*n.startRatio,d=a+f+p["default"].SERIES_EXPAND_SIZE,y=n.stack!==e.prevStack,g=s*u>l,m=g?c:s,v=void 0,_=void 0;if(!i||!this.options.diverging&&y){var x=i?this.dataProcessor.findStackIndex(n.stack):r;e.left=e.baseLeft+m*x,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=h,v=d+e.plusTop):(v=d+e.minusTop,e.minusTop+=h),e.prevStack=n.stack,_=g?e.left+c-s/2:e.left+c-s/2+(c-s)/2*(u-1),this._makeBound(s,h,_,d,v)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+p["default"].TEXT_PADDING)/2},e}(l["default"]);h["default"].mixin(v),s.componentType="series",s.ColumnChartSeries=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),f=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(f),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(337),a=n(o),s=i(335),u=n(s),l=i(342),c=n(l),h=i(351),f=n(h),p=i(334),d=n(p),y=i(333),g=n(y),m=u["default"].SERIES_EXPAND_SIZE,v=u["default"].SERIES_LABEL_PADDING,_=u["default"].MAX_HEIGHT_WORD,x=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){r(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,r=this._getSeriesDataModel(),o=t||n||0,a=r.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=o/(a>1?a-1:a):(l=o/a,u+=l/2),r.map(function(t){return t.map(function(t,e){var n=void 0;return g["default"].isNull(t.end)||(n={left:u+l*e,top:s+i-t.ratio*i},g["default"].isExisty(t.startRatio)&&(n.startTop=s+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,r=this.axisDataMap.xAxis,o=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return r.sizeRatio&&(l=f["default"].multiply(s,r.positionRatio),s=f["default"].multiply(s,r.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return g["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:o+n-t.ratioMap.y*n},g["default"].isExisty(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var r=t.top,o=void 0;return o=c["default"].isValidStackOption(this.options.stackType)?(t.startTop+r-i)/2+1:e>=0&&!n||e<0&&n?r-i-v:r+v},t.prototype._makeLabelPosition=function(t,e,i,n,r){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,r)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=a["default"].pivot(this.seriesData.groupPositions),r=d["default"].getRenderedLabelHeight(_,e);return t.map(function(t,e){return t.map(function(t,o){var a=n[e][o],s=i._makeLabelPosition(a,r,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,r,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,r=t.startLabel,o={end:e.decorateLabel(i)};return n&&(o.start=e.decorateLabel(r)),o})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,g["default"].bind(this._renderGraph,this)),this.animateComponent(!0),g["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=x,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=d["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+m},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,r=this.dimensionMap.extendedSeries,o=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(r,s);o&&(a+=e);var l=this._makePositions(a),c=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,o,c)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){g["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(335),h=n(c),f=i(351),p=n(f),d=i(376),y=n(d),g=i(333),m=n(g),v=h["default"].COMPONENT_TYPE_RAPHAEL,_=h["default"].RADIAL_PLOT_PADDING,x=h["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),f=i(342),p=n(f),d=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=0&&!r&&(r=e),r},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,r=this._makePositionTopOfZeroPoint(),o=[];return t.map(function(t){return t.map(function(t,e){var a=o[e]||r,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),o[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return p["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,r=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:r,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return r&&r.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(d),s.componentType="series",s.AreaChartSeries=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new g(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(408),h=n(c),f=i(417),p=n(f),d=i(333),y=n(d),g=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:r},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){ -var n=this.showTooltip.bind(this,{chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o,r)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,r=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:r,indexes:i}),this.prevClickedIndexes=null),e){var o=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&o&&(this.onSelectSeries({chartType:r,indexes:e},o),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(417),h=n(c),f=i(335),p=n(f),d=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0&&(t%=x),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=ei?x-(e-i):x},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,r=t.cy,o=u(this.options.radiusRange,1),a=o[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),c=this.options.startAngle,h=.5*n;if(a&&(h+=h*a),!l)return null;var f=l.map(function(t){var o=t?t.ratio:0,a=s*o,u=c+a,l=c+a/2,f={start:{startAngle:c,endAngle:c},end:{startAngle:c,endAngle:u}},p={cx:i,cy:r,angle:l};return c=u,{ratio:o,angles:f,centerPosition:e._getArcPosition(g["default"].extend({r:h},p)),outerPosition:e._getArcPosition(g["default"].extend({r:n+e.legendLongestWidth/2+b},p))}});return f},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/T,10)+1;return e&&t%T===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===C,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?E:A,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.top,s=o.left,u=t/2,l=n/2+s,c=r/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,c+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,c-=u):this._isInQuadrantRange(2,3)?c-=u:this._isInQuadrantRange(3,3)?(l+=u,c-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?c+=u:this._isInQuadrantRange(4,4)&&(l+=u,c+=u)),{cx:l,cy:c}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*S),top:t.cy-t.r*Math.cos(t.angle*S)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),o.additionalIndex=l,this.graphRenderer.render(i,o,r)},e.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",g["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:r},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return v["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,r=n.showLegend,o=n.showLabel,a=v["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=v["default"].getRenderedTextSize(this.valueLabels[0],w,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&r&&o&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=g["default"].extend({},e.middle);i.left-1&&r!==i;n&&!o||(this.onSelectSeries({chartType:this.chartType,indexes:{index:r,legendIndex:e.legendIndex}},o),n&&r>-1&&(this.prevClickedIndex=r))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(c["default"]);s.componentType="series",s.PieChartSeries=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new f(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(410),h=n(c),f=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var r=this.layout,o=r.dimension.height,a=r.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+o-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,r=i.height,o=n/this.dataProcessor.getCategoryCount(!1),a=r/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(o,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),r=n.ratio,o=n.label;this.eventBus.fire("showWedge",r,o)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,o=this.selectedLegendIndex,a=h["default"].boundsToLabelPositions(i,n,r),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,r,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,r=this._getSeriesDataModel(),o=_["default"].extend({},this.layout.dimension,this.layout.position),a=r.findSeriesItemsByParent(t);return i=i||o,e=_["default"].extend(e||{},h["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],r=null;return i&&n(e)&&(r={end:i}),r},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var r=t.findParentByDepth(i.id,e.depth+1);r&&r.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),r=this.theme.label,o=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=o?o(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=p["default"].boundsToLabelPostionsForTreemap(a,n,r);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){m["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(351),o=n(r),a=i(337),s=n(a),u=i(333),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/o["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale(l["default"].pluck(t,"value"),e,i),r=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return r},_worst:function(t,e,i,n){var r=t*t,o=n*n;return Math.max(o*i/r,r/(o*e))},_changedStackDirection:function(t,e,i,n){var r=s["default"].min(e),o=s["default"].max(e),a=this._worst(t,r,o,i),u=this._worst(t+n,Math.min(r,n),Math.max(o,n),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,d=h+e.plusTop):(d=h+e.minusTop,e.minusTop+=l);var y=e.left+o-a/2,g=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+f,left:y+a/2}});return{start:{top:h,left:y,width:a,height:0},end:{top:d,left:y,width:a,height:l},min:{top:s*(1-n.minRatio)+f,left:y,width:a,height:0},max:{top:s*(1-n.maxRatio)+f,left:y,width:a,height:0},median:{top:s*(1-n.medianRatio)+f,left:y,width:a,height:0},outliers:g}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+_)/2},e}(l["default"]);h["default"].mixin(x),s.componentType="series",s.BoxplotChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(334),h=n(c),f=i(335),p=n(f),d=p["default"].BULLET_TYPE_ACTUAL,y=p["default"].BULLET_ACTUAL_HEIGHT_RATIO,g=p["default"].BULLET_TYPE_RANGE,m=p["default"].BULLET_RANGES_HEIGHT_RATIO,v=p["default"].BULLET_TYPE_MARKER,_=p["default"].BULLET_MARKERS_HEIGHT_RATIO,x=p["default"].BULLET_MARKER_DETECT_PADDING,b=p["default"].MAX_HEIGHT_WORD,T=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var r=t._makeBulletChartBound.bind(t,i,n),o=e.map(r);return t._updateIterationData(n,i.itemWidth),o})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.left,s=o.top,u=void 0,l=void 0;this.isVertical?(s+=r,u=n,l=r):(u=r,l=n);var c=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:c}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,r=void 0;return n===d?r=this._makeBarBound(i,y,t,e):n===g?r=this._makeBarBound(i,m,t,e):n===v&&(r=this._makeLineBound(i,_,t,e)),r.type=n,r},e.prototype._makeBarBound=function(t,e,i,n){var r=t.ratioDistance,o=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*r,u=i.valueAxisWidth*o,l=void 0; -return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,r){return{top:t.top-r,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,r){return{top:t.top+(e.itemWidth-i)/2,left:t.left+r-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var r=i.itemWidth,o=i.valueAxisWidth,a=r*e,s=o*t.endRatio,u=x,l=x,c=void 0,h=void 0;return this.isVertical?(c=n.top-s,h=n.left+(r-a)/2,l=a):(c=n.top+(r-a)/2,h=n.left+s,u=a),{top:c,left:h,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==g&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,r=h["default"].getRenderedLabelHeight(b,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==g&&e.push(i._makePositionByBound(t,r))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,r={};if(this.isVertical){var o=t.width||t.length;r.top=i-e,r.left=n+o/2}else{var a=t.width||0,s=t.height||t.length;r.top=i+s/2,r.left=n+5+(a||0)}return r},e}(l["default"]);s.componentType="series",s.BulletChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return new D(t)}e.__esModule=!0,e["default"]=o;var a=i(333),s=n(a),u=i(427),l=n(u),c=i(335),h=n(c),f=i(336),p=n(f),d=i(351),y=n(d),g=i(334),m=n(g),v=i(382),_=n(v),x=i(342),b=n(x),T=h["default"].COMPONENT_TYPE_DOM,E=h["default"].MAP_CHART_ZOOM_AREA_HEIGHT,A=h["default"].MAP_CHART_ZOOM_AREA_WIDTH,S=h["default"].CHART_PADDING,w=s["default"].browser.msie&&s["default"].browser.version<=8,D=function(){function t(e){r(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&b["default"].isMapChart(i[0]),o=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(o.align),s=o.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=T,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!w){var i=y["default"].sum([t.positionMap.series.top,-E,A]);this.isMapLegendTop&&(i=t.positionMap.legend.top-A);var n={top:i,right:S};e=p["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,m["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return p["default"].hasClass(t,e)||(i=p["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),r=this._calculateMagn(n);return r>5?this.magn=5:r<1?this.magn=1:r>=1&&this._zoom(r),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){_["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();o.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(392),o=n(r),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:o["default"].template(a.HTML_SERIES_LABEL),tplCssText:o["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:o["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:o["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),r=null;return i.forEach(function(i,o){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(r=o),R["default"].isNull(r)}),r},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var r=e===t;return r&&(i=n),!r}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",r=this.options[n]||{},o=this.options.tooltip||{};return w["default"].isDatetimeType(o.type)?i=M["default"].formatDate(i,o.dateFormat):w["default"].isDatetimeType(r.type)&&(i=M["default"].formatDate(i,r.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,r=this._getTooltipCategory(t,n),o=this.getCategoryCount(!n);return o&&(r+=", "+this._getTooltipCategory(o-e-1,!n)),r},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=A["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return R["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!R["default"].isExisty(t)){var e=this.chartType;t=w["default"].isCoordinateTypeChart(e),t=t||w["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||w["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=w["default"].isBoxplotChart(this.chartType)?g["default"]:w["default"].isTreemapChart(this.chartType)?x["default"]:w["default"].isBulletChart(this.chartType)?v["default"]:d["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,r){n._pushValue(t,e[r],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&R["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),r=n[0],o=n[1];e._pushValues(o,t[r],r)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],r=i[1];t._shiftValues(r,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new T["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return I(e.min)&&I(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return I(e.min)||I(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,r=this.options,o=r.plot,a=r[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),c=this.isLimitOptionsInsufficient(i),h=w["default"].isLineChart(t)||w["default"].isAreaChart(t)||w["default"].isLineAreaComboChart(t,this.seriesTypes),f=this.defaultValues;if(w["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&c)if(!l&&c&&(f=f.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),h&&o){var p=this.getValuesFromPlotOptions(o,s);n=n.concat(p)}}else n=f;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?R["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return R["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&(Object.entries(e).forEach(function(t){var e=u(t,2),r=e[0],o=e[1];i[r]=o.map(n)}),i=R["default"].filter(i,R["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],o=void 0;R["default"].isArray(e)?(o=[this.chartType],o[this.chartType]=e):(n=this.seriesTypes,o=e);var a=n.map(function(t){return o[t].map(function(e,n){var r=R["default"].isArray(i[t]);return{chartType:t,label:e,visible:r?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,r(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){w["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=L["default"].sumPlusValues(t),n=L["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,r){var o=void 0;return w["default"].isComboChart(this.chartType)&&e?(o=this.getValues(this.chartType,n),w["default"].isNormalStackChart(t,i)&&(o=o.concat(this._createBaseValuesForNormalStackedChart(t)))):o=w["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):w["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,r),o},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),r=function(t){return t.r/n>c["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,r),maxItem:i.findMaxSeriesItem(e,r)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(f["default"]);e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(337),a=n(o),s=i(334),u=n(s),l=i(351),c=n(l),h=i(333),f=n(h),p=function(){function t(){r(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),r=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),r=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=c["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[f["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[f["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=f["default"].pick(this.options,"chart","format"),e=[];return f["default"].isFunction(t)?e=[t]:f["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=g["default"].sumPlusValues(t),i=Math.abs(g["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=g["default"].sumPlusValues(e),n=Math.abs(g["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=d["default"].allowMinusPointRender(this.chartType),i=0;return!e&&d["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=d["default"].isAllowedStackOption(this.chartType);i&&d["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&d["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=g["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,r=e?v["default"].max(this.getValues("r")):0,o=void 0,a=void 0,s=void 0,u=void 0;i&&(o=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",o,a),t.addRatio("y",s,u),t.addRatio("r",r,0),x["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i},t}();e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(351),s=n(a),u=i(333),l=n(u),c=function(){function t(e){r(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=s["default"].sum(r.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){ -var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(334),l=n(u),c=i(351),h=n(c),f=i(342),p=n(f),d=i(333),y=n(d),g=function(){function t(e){r(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,p["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),n="makingSeriesLabel",r=i.length>1,a=o(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),y["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:n,legendName:this.legendName}),this.endLabel=this.label,r&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return y["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){y["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=h["default"].calculateRatio(this.value,t,e,i),y["default"].isExisty(this.start)&&(this.startRatio=h["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return y["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(342),s=n(a),u=i(334),l=n(u),c=i(333),h=n(c),f=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(h["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var n=o(t,4);this.r=n[2];var r=n[3];this.label=void 0===r?"":r}else{var a=o(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=h["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var c=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+c}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!h["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return h["default"].isNumber(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return h["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(435),u=n(s),l=i(430),c=n(l),h=i(333),f=n(h),p=Array.prototype.concat,d=function(t){function e(i,n,a,s){r(this,e);var u=o(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=f["default"].isArray(i)?i:[].concat(i.data),r=n.map(function(n,r){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:r,legendName:i.name})});return r})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=p.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(c["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(334),s=n(a),u=i(351),l=n(u),c=i(333),h=n(c),f=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),r=o(n,5),a=r[0],u=r[1],l=r[2],c=r[3],h=r[4],f=n.length>5,p=void 0,d=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=c,this.median=l,this.lq=u,this.min=a,this.index=e,f&&(this.outliers=[],p=this.outliers,n.slice(5).forEach(function(t){p.push({value:t,label:d(t)})})),this.label=d(h),this.uqLabel=d(c),this.medianLabel=d(l),this.lqLabel=d(u),this.minLabel=d(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return h["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){h["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(r){r.ratio=n(r.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return h["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(432),u=n(s),l=i(430),c=n(l),h=i(335),f=n(h),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,r=this.rawSeriesData.map(function(r){var o=[],a=r.data,s=r.markers,l=r.ranges,c=s.length,h=l.length;return l&&h&&(l.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:f["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,h)),a&&o.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:f["default"].BULLET_TYPE_ACTUAL})),s&&c&&(s.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:f["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,c)),o});return this.maxMarkerCount=n,this.maxRangeCount=i,r},e.prototype._createSeriesGroupsFromRawData=function(){return c["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(c["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(430),l=n(u),c=i(438),h=n(c),f=i(335),p=n(f),d=i(351),y=n(d),g=i(333),m=n(g),v=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!m["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(p["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(p["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(p["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(351),a=n(o),s=i(334),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n){r(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),r=n,o={legend:this.label||"",value:n,label:r,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return c["default"].isExisty(i)&&(o.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),o.colorRatio=this.colorRatio),o},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return c["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(440),o=n(r),a=i(446),s=n(a),u=i(335),l=n(u),c=i(342),h=n(c);e["default"]={_createBoundsModel:function(t,e){return new o["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,r){var o=t.get(n),a=null,s=[];if(o){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:o.options,theme:o.theme,yAxisLabels:s,isVertical:r})}},_setLayoutBoundsAndScale:function(t,e,i,n,r){var o=r.options,a=r.scaleOption,s=void 0===a?{}:a,u=r.addingDataMode,c=r.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,r.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:r.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var f=n.scaleDataMap;f.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(f.legend.limit),this._registerYAxisDimension(e,i,f,"yAxis",c),this._registerYAxisDimension(e,i,f,"rightYAxis",c),s.xAxis&&n.addScale("xAxis",o.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),r.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&o.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(h["default"].isAutoTickInterval(o.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(r.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),r=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,r,i);var o={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:r.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return r.axisDataMap&&(o.axisDataMap=r.axisDataMap),h["default"].isBubbleChart(i.chartType)&&(o.maxRadius=n.calculateMaxRadius(r.axisDataMap)),r.scaleDataMap.legend&&(o.legendScaleData=r.scaleDataMap.legend),o}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=i(342),u=n(s),l=i(334),c=n(l),h=i(332),f=n(h),p=i(441),d=n(p),y=i(442),g=n(y),m=i(443),v=n(m),_=i(444),x=n(_),b=i(445),T=n(b),E=i(333),A=n(E),S=A["default"].browser,w=a["default"].LEGEND_AREA_H_PADDING,D=S.msie&&S.version<=8,M=function(){function t(e){r(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=A["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=A["default"].isExisty(t.title),i=this.theme.title,n=e?f["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,r=n||0;r&&(r+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:r})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:g["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=A["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,r=v["default"].calculate(e,i,t,n);this._registerDimension("legend",r)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,r=this.options.legend.align,o=void 0;if(u["default"].isHorizontalLegend(r)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(r);o=T["default"]._makeHorizontalDimension(e,n,a,s)}else o=T["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",o),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,r=t.yAxisLabels,o=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,c=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&o)return;l=this.dataProcessor.getCategories(!0)}c=A["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:g["default"].calculateYAxisWidth(l,c,n,r,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=c["default"].getRenderedLabelHeight(t,this.theme.title));var n=x["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!D&&(n-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+w),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=c["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),x["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),r=this.theme.chart.fontFamily,o=d["default"].calculateCircleLegendWidth(e,t,n,r),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,o=Math.min(o,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=o-s;this._registerDimension("circleLegend",{width:o,height:o}),l>0&&this._updateLegendAndSeriesWidth(o,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,r=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+r-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,r=0,o=void 0,s=void 0;return u["default"].isHorizontalLegend(n.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,r=u["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(n.align)?s=this.chartLeftPadding:(o=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,s=this.chartLeftPadding+o+e.width),r=i+a["default"].SERIES_AREA_V_PADDING),{top:r,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),r=this.getDimension("legend"),o=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-r.width)/2,o=u["default"].isLegendAlignTop(e)?i.top-r.height:i.top+n.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),o=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var c={top:o,left:s};return l&&(c.right=l),c},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,r=void 0,o=void 0;return r=u["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,u["default"].isVerticalLegend(n.align)&&n.visible&&(o=this.getDimension("legend").width+a["default"].CHART_PADDING,r+=(o-i.width)/2),{top:t.top+e.height-i.height,left:r}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),r=u["default"].isLegendAlignTop(e)&&i,o=u["default"].isLegendAlignLeft(e)&&i,s=r?n.height:0,l=o?n.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),f=function(){ -if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=c["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),p=Math.max(0,Math.max(s,f)-a["default"].TITLE_PADDING),d=h+p;h||(d=Math.max(s,f));var y={top:d+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=y,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=c["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,n=c["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return d["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:o["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var r=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*r,a)+o["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),r=t.circleLegend.width;return i?Math.min((r-o["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a),u=i(334),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,r=n?n+o["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(o["default"].MAX_HEIGHT_WORD,e.label),u=r+o["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,r){var a=e.labelMargin,u=e.prefix,c=e.suffix,h=e.isCenter,f=e.type,p=e.dateFormat,d=e.showLabel,y=e.title,g=0,m=0,v=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,c),n=l["default"].addPrefixSuffix(n,u,c),h&&(v+=o["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(f)&&(t=l["default"].formatDates(t,p),n=l["default"].formatDates(n,p)),a&&a>0&&(v+=a),t=n.length?n:t,d!==!1&&(m=l["default"].getRenderedLabelsMaxWidth(t,i.label)),y&&(g=l["default"].getRenderedLabelWidth(y.text,i.title)),v+=(r?Math.max(m,g):m)+o["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a),u=i(351),l=n(u),c=i(334),h=n(c),f=i(337),p=n(f),d=o["default"].LEGEND_CHECKBOX_SIZE,y=o["default"].LEGEND_ICON_WIDTH,g=o["default"].LEGEND_LABEL_LEFT_PADDING,m=o["default"].LEGEND_V_LABEL_RIGHT_PADDING,v=o["default"].LEGEND_H_LABEL_RIGHT_PADDING,_=o["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,n){var r=l["default"].sum([_,i,y,g]),o=l["default"].sum(t.map(function(t){var i=h["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=r,i+v}));return o=o-v+_},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),n=[],r=[];return t.forEach(function(t){r.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return h["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(o["default"].LEGEND_CHECKBOX_SIZE,i),o["default"].LINE_MARGIN_TOP]),r=n*t.length-o["default"].LINE_MARGIN_TOP+o["default"].SERIES_AREA_V_PADDING;return r},_makeHorizontalDimension:function(t,e,i,n,r){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,r),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+o["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,o["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var r=h["default"].getRenderedLabelsMaxWidth(e,t),o=0;return n&&r>n&&(r=n),o=l["default"].sum([2*_,i,y,g,r,m]),{width:o,height:0}},calculate:function(t,e,i,n){var r=t.showCheckbox===!1?0:d+g,o=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,r,o):this._makeVerticalDimension(e,i,r,o):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,r=t.yAxis,a=t.rightYAxis,u=t.legend,l=r.width+a.width,c=u,h=0,f=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(h=c?c.width:0),h||a.width||!i||(f=i/2),n-2*o["default"].CHART_PADDING-l-h-f},calculateHeight:function(t,e,i){var n=t.chart.height,r=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-o["default"].TITLE_PADDING),c=r+l,h=s["default"].isLegendAlignBottom(e.align)?a:0,f=t.xAxis.height+h;return n-2*o["default"].CHART_PADDING-c-f}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a),u=i(351),l=n(u),c=o["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,h=o["default"].MAP_LEGEND_WEDGE_SIZE,f=o["default"].MAP_LEGEND_AREA_PADDING_WIDE,p=o["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,d=o["default"].MAP_LEGEND_GRAPH_SIZE,y=o["default"].MAP_LEGEND_LABEL_PADDING,g=o["default"].VERTICAL_MAP_LEGEND_HEIGHT,m=o["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,v=o["default"].MAP_LEGEND_AREA_PADDING_NARROW,_=o["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),r=s["default"].getRenderedLabelWidth(e,i),o=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*c,o,h]);return{width:l["default"].sum([f,a,p,d,y,Math.max(n,r)]),height:g}},_makeHorizontalDimension:function(t,e,i,n){var r=s["default"].getRenderedLabelHeight(t,e),o=l["default"].sum([2*m,r,h]),a=i?v:f,u=n?f:0;return{width:_,height:l["default"].sum([a,o,p,d,y,r,y,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(447),a=n(o),s=i(449),u=n(s),l=i(450),c=n(l),h=i(342),f=n(h),p=i(334),d=n(p),y=i(333),g=n(y),m=function(){function t(e){r(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var r=t.chartType,o="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(r,n.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(o),l=Object.assign(e,{isVertical:o,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return f["default"].isBubbleChart(r)&&(l.overflowItem=this.dataProcessor.findOverflowItem(r,t.valueType)),(f["default"].isMapChart(r)||f["default"].isHeatmapChart(r)||f["default"].isTreemapChart(r))&&(l.useSpectrumLegend=!0),a["default"].makeScaleData(s,u,r,l)},t.prototype._createScaleLabels=function(t,e,i,n){var r=this.dataProcessor.getFormatFunctions(),o=Object.assign(i,{dateFormat:n});return u["default"].createFormattedLabels(t,e,o,r)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,r=e.chartType||this.chartType;e.chartType=r,n=n[r]||n;var o={stackType:i.stackType||n.stackType,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,o,t,i);return g["default"].extend(a,{labels:this._createScaleLabels(a,e,o,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,r){var o=this.dataProcessor.hasCategories(),a=!n&&!o&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,f=c["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!r});if(a){var p=this.dataProcessor.getValues(this.chartType,"x"),d=c["default"].makeAdditionalDataForCoordinateLineType(s,p,u,l,h);g["default"].extend(f,d)}return f},t.prototype._createLabelAxisData=function(t,e,i,n,r){var o=t.categories||this.dataProcessor.getCategories(n);return c["default"].makeLabelAxisData({labels:o,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!r,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,r){var o=f["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,o,n,r):this._createLabelAxisData(e,i,o,n,r)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=g["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],r={};return r.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),r.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(r.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),r.rightYAxis.aligned||(r.rightYAxis.aligned=r.yAxis.aligned)),r},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,r=this.axisDataMap.xAxis,o=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?c["default"].updateLabelAxisDataForAutoTickInterval(r,o,a,e):c["default"].updateLabelAxisDataForStackingDynamicData(r,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=r.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,r=this.theme.xAxis.label,o=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=d["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=g["default"].filter(s,function(t){return!!t});o=g["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(o+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?c["default"].makeAdditionalDataForMultilineLabels(s,o,r,n,i):c["default"].makeAdditionalDataForRotatedLabels(u,o,r,n,i),this.prevValidLabelCount=o,g["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,r={};return n.xAxis&&(r.xAxis=n.xAxis.limit),n.yAxis&&(r.yAxis=n.yAxis.limit),n.rightYAxis&&(r.rightYAxis=n.rightYAxis.limit),n.legend&&(r.legend=n.legend.limit),t.forEach(function(t,n){r[t]=i._findLimit(r,n,e)}),r},t}();e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(351),c=n(l),h=i(337),f=n(h),p=i(448),d=n(p),y=i(333),g=n(y),m={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,r=t.max;return i.min&&(n=c["default"].subtract(n,e)),i.max&&(r=c["default"].add(r,e)),{min:n,max:r}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,r=this.millisecondMap,o=n.length-1,s=void 0;return i?n.every(function(t,a){var u=r[t],l=Math.floor(i/u),c=void 0;return l&&(c=a0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),r=n.dataLimit;i&&(r=this._makeLimitForDivergingOption(r));var o=(0,d["default"])({min:r.min,max:r.max,offsetSize:e,minimumStepSize:1});return o=this._restoreScaleToDatetimeType(o,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===c["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===c["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,r=e.useSpectrumLegend,o=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),c=g["default"].isExisty(n.min),h=g["default"].isExisty(n.max),f=l.min,p=l.max,y=void 0,m=t.options.stepCount;c&&(f=n.min,m=null),h&&(p=n.max,m=null);var v=(0,d["default"])({min:f,max:p,stepCount:m,offsetSize:o});return r||(y=this._isOverflowed(a,v,l,c,h)),y&&!u["default"].isMapTypeChart(s)&&(v.limit=this._adjustLimitForOverflow(v.limit,v.step,y)),t.isDiverging&&(v.limit=this._makeLimitForDivergingOption(v.limit)),v},_isOverflowed:function(t,e,i,n,r){var o=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=o||!n&&s.min===i.min&&0!==s.min,l=a||!r&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var r=void 0,o=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stackType)?r=this._calculatePercentStackedScale(t,o):u["default"].isDatetimeType(n.type)?r=this._calculateDatetimeScale(t,e,o):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),r=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:o,chartType:i,options:n})),r}};e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function o(t){for(var e=void 0,i=0,n=d.length;i1?1:1/o,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(r(t),r(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),r=Math.abs(n.max-n.min),o=u(r,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:o}}function c(t,e,i,n,r){var o=Math.abs(e-t),a=o/i;n||(n=Math.ceil(i/y));var s=i/n,u=a*s;return p["default"].isNumber(r)&&ui.labelInterval&&(r=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(r=d["default"].formatDates(r,i.dateFormat)),t.aligned||(n+=1),{labels:r,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,r=t.step,o=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:r,options:o,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,r){var o=g["default"].min(e),a=g["default"].max(e),s=a-o,u=0,l=1;return s&&(i.mina&&(i.max-=n,l-=(a-i.max)/s,r-=1,t.pop())),{labels:t,tickCount:r,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:r,dataMin:o}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,r=parseInt(e/i,10),o=null,a=parseInt(t/r,10);return a>1&&(n=t-a*r,n>=a&&(r+=parseInt(n/a,0),n%=a),o={blockCount:r,beforeRemainBlockCount:n,interval:a}),o},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],r=f["default"].divisors(t);if(r.forEach(function(i){var r=i/t*e;r>=_&&r<=x&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var o=v["default"].range(_,x,b);n=o.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=g["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var r=t.tickCount-1,o=this._calculateAdjustingIntervalInfo(r,e);if(o){t.eventTickCount=t.tickCount;var a=o.blockCount,s=o.beforeRemainBlockCount,u=o.interval,l=a+1,c=0,h=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,c,u),s>0&&t.labels.push(h),v["default"].extend(t,{startIndex:c,tickCount:l,interval:u,positionRatio:c/r,sizeRatio:1-s/r,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,r=e.startIndex,o=t.tickCount-1,a=i?i-1:0,s=o/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,r,n),s=t.labels.length-1;var u=o-n*s;v["default"].extend(t,{startIndex:r,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:r/o,sizeRatio:1-u/o})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(/\s+/),o=[],a=r(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=d["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(o.push(s),s=t):s+=" "+t}),s&&o.push(s),o.join("
")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return d["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,r){var o=r.series.width,a=this._calculateXAxisLabelAreaWidth(n,o,e),s=this._createMultilineLabels(t,i,o),u=this._calculateMultilineHeight(s,i,a),l=d["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-r.yAxis.width}},_findRotationDegree:function(t,e,i){var n=null;return a["default"].DEGREE_CANDIDATES.every(function(r){var o=c["default"].calculateRotatedWidth(r,e,i);return n=r,!(o<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var r=d["default"].getRenderedLabelWidth(e,n),o=c["default"].calculateRotatedWidth(t,r,i);return o-=c["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,r){var o=d["default"].getRenderedLabelsMaxWidth(t,i),s=r.series.width,u=r.yAxis.width+r.rightYAxis?r.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(n,s,e),h=null,f=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);p["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=o.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stackType;e.dataProcessor.addDataRatios(t[i],o,i)},_["default"].forEachArray(i,r)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=h["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(_["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:f["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=o(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},f["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(464),c=n(l),h=i(335),f=n(h),p=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=f["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],r=i(t.coordinate,n);return c["default"].extend(n,r),r})},t.prototype._findBoundFromCoordinates=function(t){var e=c["default"].pluck(t,"x").filter(function(t){return!c["default"].isUndefined(t)}),i=c["default"].pluck(t,"y").filter(function(t){return!c["default"].isUndefined(t)}),n=u["default"].max(e),r=u["default"].min(e),o=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:n-r,height:o-a},position:{left:r,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),r=e.dataProcessor.getValueMapDatum(t.code),o=void 0,a=void 0,s=void 0,u=void 0;r&&(s=r.label,u=r.ratio,o=r.name||t.name,a=r.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:o,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),r=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(r)-u["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(429),u=n(s),l=i(334),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:c["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return f["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(412),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=c["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){r(this,e),c["default"].appendOutliersToSeriesData(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,r=i[n]||i,o=r.stackType;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){r(this,e),c["default"]._makeRawSeriesDataForBulletChart(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(335),o=n(r),a=i(361),s=n(a),u=i(362),l=n(u);s["default"].register(o["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.chart=e():(t.tui=t.tui||{},t.tui.chart=e())}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){i(2),t.exports=i(328)},,function(t,e,i){(function(t){"use strict";function e(t,e,i){t[e]||Object[n](t,e,{writable:!0,configurable:!0,value:i})}if(i(3),i(324),i(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,i){i(4),i(52),i(53),i(54),i(55),i(57),i(60),i(61),i(62),i(63),i(64),i(65),i(66),i(67),i(68),i(70),i(72),i(74),i(76),i(79),i(80),i(81),i(85),i(87),i(89),i(92),i(93),i(94),i(95),i(97),i(98),i(99),i(100),i(101),i(102),i(103),i(105),i(106),i(107),i(109),i(110),i(111),i(113),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(125),i(126),i(127),i(132),i(133),i(137),i(138),i(139),i(140),i(142),i(143),i(144),i(145),i(146),i(147),i(148),i(149),i(150),i(151),i(152),i(153),i(154),i(155),i(156),i(158),i(159),i(161),i(162),i(168),i(169),i(171),i(172),i(173),i(177),i(178),i(179),i(180),i(181),i(183),i(184),i(185),i(186),i(189),i(191),i(192),i(193),i(195),i(197),i(199),i(200),i(201),i(203),i(204),i(205),i(206),i(217),i(221),i(222),i(224),i(225),i(229),i(230),i(232),i(233),i(234),i(235),i(236),i(237),i(238),i(239),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250),i(252),i(253),i(254),i(255),i(256),i(258),i(259),i(260),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(271),i(272),i(274),i(275),i(276),i(277),i(280),i(281),i(283),i(284),i(285),i(286),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(297),i(299),i(300),i(301),i(302),i(303),i(304),i(305),i(306),i(307),i(308),i(309),i(311),i(312),i(313),i(314),i(315),i(316),i(317),i(318),i(319),i(320),i(321),i(322),i(323),t.exports=i(10)},function(t,e,i){"use strict";var n=i(5),r=i(6),o=i(7),a=i(9),s=i(19),u=i(23).KEY,l=i(8),c=i(24),h=i(26),f=i(20),p=i(27),d=i(28),g=i(29),y=i(30),m=i(45),v=i(13),_=i(14),x=i(33),b=i(17),T=i(18),E=i(46),A=i(49),S=i(51),w=i(12),D=i(31),M=S.f,C=w.f,L=A.f,P=n.Symbol,k=n.JSON,O=k&&k.stringify,R="prototype",I=p("_hidden"),B=p("toPrimitive"),N={}.propertyIsEnumerable,F=c("symbol-registry"),G=c("symbols"),H=c("op-symbols"),V=Object[R],j="function"==typeof P,z=n.QObject,W=!z||!z[R]||!z[R].findChild,Y=o&&l(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=M(V,e);n&&delete V[e],C(t,e,i),n&&t!==V&&C(V,e,n)}:C,U=function(t){var e=G[t]=E(P[R]);return e._k=t,e},X=j&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,i){return t===V&&Z(H,e,i),v(t),e=b(e,!0),v(i),r(G,e)?(i.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),i=E(i,{enumerable:T(0,!1)})):(r(t,I)||C(t,I,T(1,{})),t[I][e]=!0),Y(t,e,i)):C(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=x(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},q=function(t,e){return void 0===e?E(t):K(E(t),e)},J=function(t){var e=N.call(this,t=b(t,!0));return!(this===V&&r(G,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=b(e,!0),t!==V||!r(G,e)||r(H,e)){var i=M(t,e);return!i||!r(G,e)||r(t,I)&&t[I][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=L(x(t)),n=[],o=0;i.length>o;)r(G,e=i[o++])||e==I||e==u||n.push(e);return n},tt=function(t){for(var e,i=t===V,n=L(i?H:x(t)),o=[],a=0;n.length>a;)!r(G,e=n[a++])||i&&!r(V,e)||o.push(G[e]);return o};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),Y(this,t,T(1,i))};return o&&W&&Y(V,t,{configurable:!0,set:e}),U(t)},s(P[R],"toString",function(){return this._k}),S.f=Q,w.f=Z,i(50).f=A.f=$,i(44).f=J,i(43).f=tt,o&&!i(25)&&s(V,"propertyIsEnumerable",J,!0),d.f=function(t){return U(p(t))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)p(et[it++]);for(var nt=D(p.store),rt=0;nt.length>rt;)g(nt[rt++]);a(a.S+a.F*!j,"Symbol",{"for":function(t){return r(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),k&&a(a.S+a.F*(!j||l(function(){var t=P();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!X(e))return e}),n[1]=e,O.apply(k,n)}}),P[R][B]||i(11)(P[R],B,P[R].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){t.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,i){var n=i(5),r=i(10),o=i(11),a=i(19),s=i(21),u="prototype",l=function(t,e,i){var c,h,f,p,d=t&l.F,g=t&l.G,y=t&l.S,m=t&l.P,v=t&l.B,_=g?n:y?n[e]||(n[e]={}):(n[e]||{})[u],x=g?r:r[e]||(r[e]={}),b=x[u]||(x[u]={});g&&(i=e);for(c in i)h=!d&&_&&void 0!==_[c],f=(h?_:i)[c],p=v&&h?s(f,n):m&&"function"==typeof f?s(Function.call,f):f,_&&a(_,c,f,t&l.U),x[c]!=f&&o(x,c,p),m&&b[c]!=f&&(b[c]=f)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(12),r=i(18);t.exports=i(7)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(13),r=i(15),o=i(17),a=Object.defineProperty;e.f=i(7)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(s){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(14);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){t.exports=!i(7)&&!i(8)(function(){return 7!=Object.defineProperty(i(16)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(14),r=i(5).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(5),r=i(11),o=i(6),a=i(20)("src"),s="toString",u=Function[s],l=(""+u).split(s);i(10).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,i,s){var u="function"==typeof i;u&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(u&&(o(i,a)||r(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(20)("meta"),r=i(14),o=i(6),a=i(12).f,s=0,u=Object.isExtensible||function(){return!0},l=!i(8)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},p=function(t){return l&&d.NEED&&u(t)&&!o(t,n)&&c(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},function(t,e,i){var n=i(10),r=i(5),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,i){var n=i(12).f,r=i(6),o=i(27)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(24)("wks"),r=i(20),o=i(5).Symbol,a="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=n},function(t,e,i){e.f=i(27)},function(t,e,i){var n=i(5),r=i(10),o=i(25),a=i(28),s=i(12).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var n=i(31),r=i(43),o=i(44);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,i){var n=i(32),r=i(42);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){var n=i(6),r=i(33),o=i(37)(!1),a=i(41)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),u=0,l=[];for(i in s)i!=a&&n(s,i)&&l.push(i);for(;e.length>u;)n(s,i=e[u++])&&(~o(l,i)||l.push(i));return l}},function(t,e,i){var n=i(34),r=i(36);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(33),r=i(38),o=i(40);t.exports=function(t){return function(e,i,a){var s,u=n(e),l=r(u.length),c=o(a,l);if(t&&i!=i){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var n=i(39),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(39),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},function(t,e,i){var n=i(24)("keys"),r=i(20);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(35);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(13),r=i(47),o=i(42),a=i(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var t,e=i(16)("iframe"),n=o.length,r="<",a=">";for(e.style.display="none",i(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),l=t.F;n--;)delete l[u][o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[u]=n(t),i=new s,s[u]=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},function(t,e,i){var n=i(12),r=i(13),o=i(31);t.exports=i(7)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,u=0;s>u;)n.f(t,i=a[u++],e[i]);return t}},function(t,e,i){var n=i(5).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(33),r=i(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(n(t))}},function(t,e,i){var n=i(32),r=i(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(44),r=i(18),o=i(33),a=i(17),s=i(6),u=i(15),l=Object.getOwnPropertyDescriptor;e.f=i(7)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(i){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(9);n(n.S,"Object",{create:i(46)})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperty:i(12).f})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperties:i(47)})},function(t,e,i){var n=i(33),r=i(51).f;i(56)("getOwnPropertyDescriptor",function(){return function(t,e){return r(n(t),e)}})},function(t,e,i){var n=i(9),r=i(10),o=i(8);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},function(t,e,i){var n=i(58),r=i(59);i(56)("getPrototypeOf",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(36);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(6),r=i(58),o=i(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){var n=i(58),r=i(31);i(56)("keys",function(){return function(t){return r(n(t))}})},function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(49).f})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("freeze",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("seal",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14),r=i(23).onFreeze;i(56)("preventExtensions",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(14);i(56)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(9);n(n.S+n.F,"Object",{assign:i(69)})},function(t,e,i){"use strict";var n=i(31),r=i(43),o=i(44),a=i(58),s=i(34),u=Object.assign;t.exports=!u||i(8)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=a(t),u=arguments.length,l=1,c=r.f,h=o.f;u>l;)for(var f,p=s(arguments[l++]),d=c?n(p).concat(c(p)):n(p),g=d.length,y=0;g>y;)h.call(p,f=d[y++])&&(i[f]=p[f]);return i}:u},function(t,e,i){var n=i(9);n(n.S,"Object",{is:i(71)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,i){var n=i(9);n(n.S,"Object",{setPrototypeOf:i(73).set})},function(t,e,i){var n=i(14),r=i(13),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i(21)(Function.call,i(51).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},function(t,e,i){"use strict";var n=i(75),r={};r[i(27)("toStringTag")]="z",r+""!="[object z]"&&i(19)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(35),r=i(27)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(9);n(n.P,"Function",{bind:i(77)})},function(t,e,i){"use strict";var n=i(22),r=i(14),o=i(78),a=[].slice,s={},u=function(t,e,i){if(!(e in s)){for(var n=[],r=0;r>>0||(a.test(i)?16:10))}:n},function(t,e,i){var n=i(9),r=i(36),o=i(8),a=i(84),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,i){var r={},s=o(function(){return!!a[t]()||u[t]()!=u}),l=r[t]=s?e(f):a[t];i&&(r[i]=l),n(n.P+n.F*s,"String",r)},f=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},function(t,e){t.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(9),r=i(86);n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},function(t,e,i){var n=i(5).parseFloat,r=i(83).trim;t.exports=1/n(i(84)+"-0")!==-(1/0)?function(t){var e=r(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){"use strict";var n=i(5),r=i(6),o=i(35),a=i(88),s=i(17),u=i(8),l=i(50).f,c=i(51).f,h=i(12).f,f=i(83).trim,p="Number",d=n[p],g=d,y=d.prototype,m=o(i(46)(y))==p,v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():f(e,3);var i,n,r,o=e.charCodeAt(0);if(43===o||45===o){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;lr)return NaN;return parseInt(u,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof d&&(m?u(function(){y.valueOf.call(i)}):o(i)!=p)?a(new g(_(e)),i,d):_(e)};for(var x,b=i(7)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;b.length>T;T++)r(g,x=b[T])&&!r(d,x)&&h(d,x,c(g,x));d.prototype=y,y.constructor=d,i(19)(n,p,d)}},function(t,e,i){var n=i(14),r=i(73).set;t.exports=function(t,e,i){var o,a=e.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,i){"use strict";var n=i(9),r=i(39),o=i(90),a=i(91),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h="0",f=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=u(n/1e7)},p=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=u(i/t),i=i%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+a.call(h,7-i.length)+i}return e},g=function(t,e,i){return 0===e?i:e%2===1?g(t,e-1,i*t):g(t*t,e/2,i)},y=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(8)(function(){s.call({})})),"Number",{toFixed:function(t){var e,i,n,s,u=o(this,c),l=r(t),m="",v=h;if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=y(u*g(2,69,1))-69,i=e<0?u*g(2,-e,1):u/g(2,e,1),i*=4503599627370496,e=52-e,e>0){for(f(0,i),n=l;n>=7;)f(1e7,0),n-=7;for(f(g(10,n,1),0),n=e-1;n>=23;)p(1<<23),n-=23;p(1<0?(s=v.length,v=m+(s<=l?"0."+a.call(h,l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l))):v=m+v,v}})},function(t,e,i){var n=i(35);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){"use strict";var n=i(39),r=i(36);t.exports=function(t){var e=String(r(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},function(t,e,i){"use strict";var n=i(9),r=i(8),o=i(90),a=1..toPrecision;n(n.P+n.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(9),r=i(5).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{isInteger:i(96)})},function(t,e,i){var n=i(14),r=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&r(t)===t}},function(t,e,i){var n=i(9);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(9),r=i(96),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,i){var n=i(9);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(9);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(9),r=i(86);n(n.S+n.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,i){var n=i(9),r=i(82);n(n.S+n.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,i){var n=i(9),r=i(104),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var r=i(9),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(9),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(9),r=i(108);n(n.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,i){var n=i(9);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(9),r=Math.exp;n(n.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,i){var n=i(9),r=i(112);n(n.S+n.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||i(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(9);n(n.S,"Math",{fround:i(114)})},function(t,e,i){var n=i(108),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),u=r(2,-126),l=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,i,r=Math.abs(t),c=n(t);return rs||i!=i?c*(1/0):c*i)}},function(t,e,i){var n=i(9),r=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,o=0,a=0,s=arguments.length,u=0;a0?(n=i/u,o+=n*n):o+=i;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,i){var n=i(9),r=Math.imul;n(n.S+n.F*i(8)(function(){return r(4294967295,5)!=-5||2!=r.length}),"Math",{imul:function(t,e){var i=65535,n=+t,r=+e,o=i&n,a=i&r;return 0|o*a+((i&n>>>16)*a+o*(i&r>>>16)<<16>>>0)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log1p:i(104)})},function(t,e,i){var n=i(9);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(9);n(n.S,"Math",{sign:i(108)})},function(t,e,i){var n=i(9),r=i(112),o=Math.exp;n(n.S+n.F*i(8)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(9),r=i(112),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=r(t=+t),i=r(-t);return e==1/0?1:i==1/0?-1:(e-i)/(o(t)+o(-t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(9),r=i(40),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(9),r=i(33),o=i(38);n(n.S,"String",{raw:function(t){for(var e=r(t.raw),i=o(e.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(39),r=i(36);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,i){"use strict";var n=i(25),r=i(9),o=i(19),a=i(11),s=i(130),u=i(131),l=i(26),c=i(59),h=i(27)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",g="values",y=function(){return this};t.exports=function(t,e,i,m,v,_,x){u(i,e,m);var b,T,E,A=function(t){if(!f&&t in M)return M[t];switch(t){case d:return function(){return new i(this,t)};case g:return function(){return new i(this,t)}}return function(){return new i(this,t)}},S=e+" Iterator",w=v==g,D=!1,M=t.prototype,C=M[h]||M[p]||v&&M[v],L=C||A(v),P=v?w?A("entries"):L:void 0,k="Array"==e?M.entries||C:C;if(k&&(E=c(k.call(new t)),E!==Object.prototype&&E.next&&(l(E,S,!0),n||"function"==typeof E[h]||a(E,h,y))),w&&C&&C.name!==g&&(D=!0,L=function(){return C.call(this)}),n&&!x||!f&&!D&&M[h]||a(M,h,L),s[e]=L,s[S]=y,v)if(b={values:w?L:A(g),keys:_?L:A(d),entries:P},x)for(T in b)T in M||o(M,T,b[T]);else r(r.P+r.F*(f||D),e,b);return b}},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(46),r=i(18),o=i(26),a={};i(11)(a,i(27)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},function(t,e,i){"use strict";var n=i(9),r=i(128)(!1);n(n.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(9),r=i(38),o=i(134),a="endsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{endsWith:function(t){var e=o(this,t,a),i=arguments.length>1?arguments[1]:void 0,n=r(e.length),u=void 0===i?n:Math.min(r(i),n),l=String(t);return s?s.call(e,l,u):e.slice(u-l.length,u)===l}})},function(t,e,i){var n=i(135),r=i(36);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},function(t,e,i){var n=i(14),r=i(35),o=i(27)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,i){var n=i(27)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(r){}}return!0}},function(t,e,i){"use strict";var n=i(9),r=i(134),o="includes";n(n.P+n.F*i(136)(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(9);n(n.P,"String",{repeat:i(91)})},function(t,e,i){"use strict";var n=i(9),r=i(38),o=i(134),a="startsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{startsWith:function(t){var e=o(this,t,a),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){"use strict";i(141)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){var n=i(9),r=i(8),o=i(36),a=/"/g,s=function(t,e,i,n){var r=String(o(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";i(141)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){"use strict";i(141)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){"use strict";i(141)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){"use strict";i(141)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){"use strict";i(141)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){"use strict";i(141)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){"use strict";i(141)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){"use strict";i(141)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){"use strict";i(141)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){"use strict";i(141)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){"use strict";i(141)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){"use strict";i(141)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(9);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17);n(n.P+n.F*i(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),i=o(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(9),r=i(157);n(n.P+n.F*(Date.prototype.toISOString!==r),"Date",{ +toISOString:r})},function(t,e,i){"use strict";var n=i(8),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}:o},function(t,e,i){var n=Date.prototype,r="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=r&&i(19)(n,o,function(){var t=s.call(this);return t===t?a.call(this):r})},function(t,e,i){var n=i(27)("toPrimitive"),r=Date.prototype;n in r||i(11)(r,n,i(160))},function(t,e,i){"use strict";var n=i(13),r=i(17),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return r(n(this),t!=o)}},function(t,e,i){var n=i(9);n(n.S,"Array",{isArray:i(45)})},function(t,e,i){"use strict";var n=i(21),r=i(9),o=i(58),a=i(163),s=i(164),u=i(38),l=i(165),c=i(166);r(r.S+r.F*!i(167)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,r,h,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g,m=0,v=c(f);if(y&&(g=n(g,d>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(e=u(f.length),i=new p(e);e>m;m++)l(i,m,y?g(f[m],m):f[m]);else for(h=v.call(f),i=new p;!(r=h.next()).done;m++)l(i,m,y?a(h,g,[r.value,m],!0):r.value);return i.length=m,i}})},function(t,e,i){var n=i(13);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(o){var a=t["return"];throw void 0!==a&&n(a.call(t)),o}}},function(t,e,i){var n=i(130),r=i(27)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},function(t,e,i){"use strict";var n=i(12),r=i(18);t.exports=function(t,e,i){e in t?n.f(t,e,r(0,i)):t[e]=i}},function(t,e,i){var n=i(75),r=i(27)("iterator"),o=i(130);t.exports=i(10).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},function(t,e,i){var n=i(27)("iterator"),r=!1;try{var o=[7][n]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:i=!0}},o[n]=function(){return a},t(o)}catch(s){}return i}},function(t,e,i){"use strict";var n=i(9),r=i(165);n(n.S+n.F*i(8)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)r(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(9),r=i(33),o=[].join;n(n.P+n.F*(i(34)!=Object||!i(170)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(8);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){"use strict";var n=i(9),r=i(48),o=i(35),a=i(40),s=i(38),u=[].slice;n(n.P+n.F*i(8)(function(){r&&u.call(r)}),"Array",{slice:function(t,e){var i=s(this.length),n=o(this);if(e=void 0===e?i:e,"Array"==n)return u.call(this,t,e);for(var r=a(t,i),l=a(e,i),c=s(l-r),h=new Array(c),f=0;fb;b++)if((f||b in v)&&(g=v[b],y=_(g,b,m),t))if(i)T[b]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:T.push(g)}else if(c)return!1;return h?-1:l||c?c:T}}},function(t,e,i){var n=i(176);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(14),r=i(45),o=i(27)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(9),r=i(174)(1);n(n.P+n.F*!i(170)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(2);n(n.P+n.F*!i(170)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(3);n(n.P+n.F*!i(170)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(174)(4);n(n.P+n.F*!i(170)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(182);n(n.P+n.F*!i(170)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){var n=i(22),r=i(58),o=i(34),a=i(38);t.exports=function(t,e,i,s,u){n(e);var l=r(t),c=o(l),h=a(l.length),f=u?h-1:0,p=u?-1:1;if(i<2)for(;;){if(f in c){s=c[f],f+=p;break}if(f+=p,u?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:h>f;f+=p)f in c&&(s=e(s,c[f],f,l));return s}},function(t,e,i){"use strict";var n=i(9),r=i(182);n(n.P+n.F*!i(170)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(9),r=i(37)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!i(170)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),r=i(33),o=i(39),a=i(38),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(u||!i(170)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=r(this),i=a(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(9);n(n.P,"Array",{copyWithin:i(187)}),i(188)("copyWithin")},function(t,e,i){"use strict";var n=i(58),r=i(40),o=i(38);t.exports=[].copyWithin||function(t,e){var i=n(this),a=o(i.length),s=r(t,a),u=r(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:r(l,a))-u,a-s),h=1;for(u0;)u in i?i[s]=i[u]:delete i[s],s+=h,u+=h;return i}},function(t,e,i){var n=i(27)("unscopables"),r=Array.prototype;void 0==r[n]&&i(11)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,i){var n=i(9);n(n.P,"Array",{fill:i(190)}),i(188)("fill")},function(t,e,i){"use strict";var n=i(58),r=i(40),o=i(38);t.exports=function(t){for(var e=n(this),i=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:r(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){"use strict";var n=i(9),r=i(174)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(o)},function(t,e,i){"use strict";var n=i(9),r=i(174)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(o)},function(t,e,i){i(194)("Array")},function(t,e,i){"use strict";var n=i(5),r=i(12),o=i(7),a=i(27)("species");t.exports=function(t){var e=n[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(188),r=i(196),o=i(130),a=i(33);t.exports=i(129)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(5),r=i(88),o=i(12).f,a=i(50).f,s=i(135),u=i(198),l=n.RegExp,c=l,h=l.prototype,f=/a/g,p=/a/g,d=new l(f)!==f;if(i(7)&&(!d||i(8)(function(){return p[i(27)("match")]=!1,l(f)!=f||l(p)==p||"/a/i"!=l(f,"i")}))){l=function(t,e){var i=this instanceof l,n=s(t),o=void 0===e;return!i&&n&&t.constructor===l&&o?t:r(d?new c(n&&!o?t.source:t,e):c((n=t instanceof l)?t.source:t,n&&o?u.call(t):e),i?this:h,l)};for(var g=(function(t){t in l||o(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}),y=a(c),m=0;y.length>m;)g(y[m++]);h.constructor=l,l.prototype=h,i(19)(n,"RegExp",l)}i(194)("RegExp")},function(t,e,i){"use strict";var n=i(13);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){"use strict";i(200);var n=i(13),r=i(198),o=i(7),a="toString",s=/./[a],u=function(t){i(19)(RegExp.prototype,a,t,!0)};i(8)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(t,e,i){i(7)&&"g"!=/./g.flags&&i(12).f(RegExp.prototype,"flags",{configurable:!0,get:i(198)})},function(t,e,i){i(202)("match",1,function(t,e,i){return[function(i){"use strict";var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){"use strict";var n=i(11),r=i(19),o=i(8),a=i(36),s=i(27);t.exports=function(t,e,i){var u=s(t),l=i(a,u,""[t]),c=l[0],h=l[1];o(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(r(String.prototype,t,c),n(RegExp.prototype,u,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,i){i(202)("replace",2,function(t,e,i){return[function(n,r){"use strict";var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},i]})},function(t,e,i){i(202)("search",1,function(t,e,i){return[function(i){"use strict";var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){i(202)("split",2,function(t,e,n){"use strict";var r=i(135),o=n,a=[].push,s="split",u="length",l="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];n=function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!r(t))return o.call(i,t,e);var n,s,h,f,p,d=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,m=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,g+"g");for(c||(n=new RegExp("^"+v.source+"$(?!\\s)",g));(s=v.exec(i))&&(h=s.index+s[0][u],!(h>y&&(d.push(i.slice(y,s.index)),!c&&s[u]>1&&s[0].replace(n,function(){for(p=1;p1&&s.index=m)));)v[l]===s.index&&v[l]++;return y===i[u]?!f&&v.test("")||d.push(""):d.push(i.slice(y)),d[u]>m?d.slice(0,m):d}}else"0"[s](void 0,0)[u]&&(n=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},n]})},function(t,e,i){"use strict";var n,r,o,a,s=i(25),u=i(5),l=i(21),c=i(75),h=i(9),f=i(14),p=i(22),d=i(207),g=i(208),y=i(209),m=i(210).set,v=i(211)(),_=i(212),x=i(213),b=i(214),T=i(215),E="Promise",A=u.TypeError,S=u.process,w=S&&S.versions,D=w&&w.v8||"",M=u[E],C="process"==c(S),L=function(){},P=r=_.f,k=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[i(27)("species")]=function(t){t(L,L)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==D.indexOf("6.6")&&b.indexOf("Chrome/66")===-1}catch(n){}}(),O=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var i=t._c;v(function(){for(var n=t._v,r=1==t._s,o=0,a=function(e){var i,o,a,s=r?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(r||(2==t._h&&N(t),t._h=1),s===!0?i=n:(c&&c.enter(),i=s(n),c&&(c.exit(),a=!0)),i===e.promise?l(A("Promise-chain cycle")):(o=O(i))?o.call(i,u,l):u(i)):l(n)}catch(h){c&&!a&&c.exit(),l(h)}};i.length>o;)a(i[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){m.call(u,function(){var e,i,n,r=t._v,o=B(t);if(o&&(e=x(function(){C?S.emit("unhandledRejection",r,t):(i=u.onunhandledrejection)?i({promise:t,reason:r}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=C||B(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,function(){var e;C?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},G=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw A("Promise can't be resolved itself");(e=O(t))?v(function(){var n={_w:i,_d:!1};try{e.call(t,l(G,n,1),l(F,n,1))}catch(r){F.call(n,r)}}):(i._v=t,i._s=1,R(i,!1))}catch(n){F.call({_w:i,_d:!1},n)}}};k||(M=function(t){d(this,M,E,"_h"),p(t),n.call(this);try{t(l(G,this,1),l(F,this,1))}catch(e){F.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(216)(M.prototype,{then:function(t,e){var i=P(y(this,M));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?S.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&R(this,!1),i.promise},"catch":function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=l(G,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===M||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!k,{Promise:M}),i(26)(M,E),i(194)(E),a=i(10)[E],h(h.S+h.F*!k,E,{reject:function(t){var e=P(this),i=e.reject;return i(t),e.promise}}),h(h.S+h.F*(s||!k),E,{resolve:function(t){return T(s&&this===a?M:this,t)}}),h(h.S+h.F*!(k&&i(167)(function(t){M.all(t)["catch"](L)})),E,{all:function(t){var e=this,i=P(e),n=i.resolve,r=i.reject,o=x(function(){var i=[],o=0,a=1;g(t,!1,function(t){var s=o++,u=!1;i.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,i[s]=t,--a||n(i))},r)}),--a||n(i)});return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=P(e),n=i.reject,r=x(function(){g(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(21),r=i(163),o=i(164),a=i(13),s=i(38),u=i(166),l={},c={},e=t.exports=function(t,e,i,h,f){var p,d,g,y,m=f?function(){return t}:u(t),v=n(i,h,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=s(t.length);p>_;_++)if(y=e?v(a(d=t[_])[0],d[1]):v(t[_]),y===l||y===c)return y}else for(g=m.call(t);!(d=g.next()).done;)if(y=r(g,v,d.value,e),y===l||y===c)return y};e.BREAK=l,e.RETURN=c},function(t,e,i){var n=i(13),r=i(22),o=i(27)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||void 0==(i=n(a)[o])?e:r(i)}},function(t,e,i){var n,r,o,a=i(21),s=i(78),u=i(48),l=i(16),c=i(5),h=c.process,f=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,g=c.Dispatch,y=0,m={},v="onreadystatechange",_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},n(y),y},p=function(t){delete m[t]},"process"==i(35)(h)?n=function(t){h.nextTick(a(_,t,1))}:g&&g.now?n=function(t){g.now(a(_,t,1))}:d?(r=new d,o=r.port2,r.port1.onmessage=x,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",x,!1)):n=v in l("script")?function(t){u.appendChild(l("script"))[v]=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,i){var n=i(5),r=i(210).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==i(35)(a);t.exports=function(){var t,e,i,l=function(){var n,r;for(u&&(n=a.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(o){throw t?i():e=void 0,o}}e=void 0,n&&n.enter()};if(u)i=function(){a.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);i=function(){c.then(l)}}else i=function(){r.call(n,l)};else{var h=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),i=function(){f.data=h=!h}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},function(t,e,i){"use strict";function n(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=r(e),this.reject=r(i)}var r=i(22);t.exports.f=function(t){return new n(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},function(t,e,i){var n=i(5),r=n.navigator;t.exports=r&&r.userAgent||""},function(t,e,i){var n=i(13),r=i(14),o=i(212);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t),a=i.resolve;return a(e),i.promise}},function(t,e,i){var n=i(19);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},function(t,e,i){"use strict";var n=i(218),r=i(219),o="Map";t.exports=i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(r(this,o),t);return e&&e.v},set:function(t,e){return n.def(r(this,o),0===t?0:t,e)}},n,!0)},function(t,e,i){"use strict";var n=i(12).f,r=i(46),o=i(216),a=i(21),s=i(207),u=i(208),l=i(129),c=i(196),h=i(194),f=i(7),p=i(23).fastKey,d=i(219),g=f?"_s":"size",y=function(t,e){var i,n=p(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var c=t(function(t,n){s(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=n&&u(n,i,t[l],t)});return o(c.prototype,{clear:function(){for(var t=d(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[g]=0},"delete":function(t){var i=d(this,e),n=y(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[g]--}return!!n},forEach:function(t){d(this,e);for(var i,n=a(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!y(d(this,e),t)}}),f&&n(c.prototype,"size",{get:function(){return d(this,e)[g]}}),c},def:function(t,e,i){var n,r,o=y(t,e);return o?o.v=i:(t._l=o={i:r=p(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:y,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=d(t,e),this._k=i,this._l=void 0},function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?"keys"==e?c(0,i.k):"values"==e?c(0,i.v):c(0,[i.k,i.v]):(t._t=void 0,c(1))},i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){"use strict";var n=i(5),r=i(9),o=i(19),a=i(216),s=i(23),u=i(208),l=i(207),c=i(14),h=i(8),f=i(167),p=i(26),d=i(88);t.exports=function(t,e,i,g,y,m){var v=n[t],_=v,x=y?"set":"add",b=_&&_.prototype,T={},E=function(t){var e=b[t];o(b,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof _&&(m||b.forEach&&!h(function(){(new _).entries().next()}))){var A=new _,S=A[x](m?{}:-0,1)!=A,w=h(function(){A.has(1)}),D=f(function(t){new _(t)}),M=!m&&h(function(){for(var t=new _,e=5;e--;)t[x](e,e);return!t.has(-0)});D||(_=e(function(e,i){l(e,_,t);var n=d(new v,e,_);return void 0!=i&&u(i,y,n[x],n),n}),_.prototype=b,b.constructor=_),(w||M)&&(E("delete"),E("has"),y&&E("get")),(M||S)&&E(x),m&&b.clear&&delete b.clear}else _=g.getConstructor(e,t,y,x),a(_.prototype,i),s.NEED=!0;return p(_,t),T[t]=_,r(r.G+r.W+r.F*(_!=v),T),m||g.setStrong(_,t,y),_}},function(t,e,i){"use strict";var n=i(218),r=i(219),o="Set";t.exports=i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,o),t=0===t?0:t,t)}},n)},function(t,e,i){"use strict";var n,r=i(174)(0),o=i(19),a=i(23),s=i(69),u=i(223),l=i(14),c=i(8),h=i(219),f="WeakMap",p=a.getWeak,d=Object.isExtensible,g=u.ufstore,y={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(l(t)){var e=p(t);return e===!0?g(h(this,f)).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(h(this,f),t,e)}},_=t.exports=i(220)(f,m,v,u,!0,!0);c(function(){return 7!=(new _).set((Object.freeze||Object)(y),7).get(y)})&&(n=u.getConstructor(m,f),s(n.prototype,v),a.NEED=!0,r(["delete","has","get","set"],function(t){var e=_.prototype,i=e[t];o(e,t,function(e,r){if(l(e)&&!d(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return i.call(this,e,r)})}))},function(t,e,i){"use strict";var n=i(216),r=i(23).getWeak,o=i(13),a=i(14),s=i(207),u=i(208),l=i(174),c=i(6),h=i(219),f=l(5),p=l(6),d=0,g=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return f(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var i=m(this,t);i?i[1]=e:this.a.push([t,e])},"delete":function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,o){var l=t(function(t,n){s(t,l,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=n&&u(n,i,t[o],t)});return n(l.prototype,{"delete":function(t){if(!a(t))return!1;var i=r(t);return i===!0?g(h(this,e))["delete"](t):i&&c(i,this._i)&&delete i[this._i]},has:function(t){if(!a(t))return!1;var i=r(t);return i===!0?g(h(this,e)).has(t):i&&c(i,this._i)}}),l},def:function(t,e,i){var n=r(o(e),!0);return n===!0?g(t).set(e,i):n[t._i]=i,t},ufstore:g}},function(t,e,i){"use strict";var n=i(223),r=i(219),o="WeakSet";i(220)(o,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,o),t,!0)}},n,!1,!0)},function(t,e,i){"use strict";var n=i(9),r=i(226),o=i(227),a=i(13),s=i(40),u=i(38),l=i(14),c=i(5).ArrayBuffer,h=i(209),f=o.ArrayBuffer,p=o.DataView,d=r.ABV&&c.isView,g=f.prototype.slice,y=r.VIEW,m="ArrayBuffer";n(n.G+n.W+n.F*(c!==f),{ArrayBuffer:f}),n(n.S+n.F*!r.CONSTR,m,{isView:function(t){return d&&d(t)||l(t)&&y in t}}),n(n.P+n.U+n.F*i(8)(function(){return!new f(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(a(this),t);for(var i=a(this).byteLength,n=s(t,i),r=s(void 0===e?i:e,i),o=new(h(this,f))(u(r-n)),l=new p(this),c=new p(o),d=0;n>1,c=23===e?V(2,-24)-V(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for(t=H(t),t!=t||t===F?(r=t!=t?1:0,n=u):(n=j(z(t)/W),t*(o=V(2,-n))<1&&(n--,o*=2),t+=n+l>=1?c/o:c*V(2,1-l),t*o>=2&&(n++,o/=2),n+l>=u?(r=0,n=u):n+l>=1?(r=(t*o-1)*V(2,e),n+=l):(r=t*V(2,l-1)*V(2,e),n=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*f,a}function r(t,e,i){var n,r=8*i-e-1,o=(1<>1,s=r-7,u=i-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=e;s>0;n=256*n+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return n?NaN:l?-F:F;n+=V(2,e),c-=a}return(l?-1:1)*n*V(2,c-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function c(t){return n(t,23,4)}function h(t,e,i){w(t[P],e,{get:function(){return this[i]}})}function f(t,e,i,n){var r=+i,o=A(r);if(o+e>t[K])throw N(O);var a=t[Z]._b,s=o+t[q],u=a.slice(s,s+e);return n?u:u.reverse()}function p(t,e,i,n,r,o){var a=+i,s=A(a);if(s+e>t[K])throw N(O);for(var u=t[Z]._b,l=s+t[q],c=n(+r),h=0;htt;)(J=$[tt++])in R||v(R,J,G[J]);y||(Q.constructor=R)}var et=new I(new R(2)),it=I[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||_(I[P],{setInt8:function(t,e){it.call(this,t,e<<24>>24)},setUint8:function(t,e){it.call(this,t,e<<24>>24)}},!0)}else R=function(t){b(this,R,C);var e=A(t);this._b=D.call(new Array(e),0),this[K]=e},I=function(t,e,i){b(this,I,L),b(t,R,L);var n=t[K],r=T(e);if(r<0||r>n)throw N("Wrong offset!");if(i=void 0===i?n-r:E(i),r+i>n)throw N(k);this[Z]=t,this[q]=r,this[K]=i},g&&(h(R,U,"_l"),h(I,Y,"_b"),h(I,U,"_l"),h(I,X,"_o")),_(I[P],{getInt8:function(t){return f(this,1,t)[0]<<24>>24},getUint8:function(t){return f(this,1,t)[0]},getInt16:function(t){var e=f(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=f(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(f(this,4,t,arguments[1]))},getUint32:function(t){return o(f(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return r(f(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return r(f(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){p(this,1,t,a,e)},setUint8:function(t,e){p(this,1,t,a,e)},setInt16:function(t,e){p(this,2,t,s,e,arguments[2])},setUint16:function(t,e){p(this,2,t,s,e,arguments[2])},setInt32:function(t,e){p(this,4,t,u,e,arguments[2])},setUint32:function(t,e){p(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){p(this,4,t,c,e,arguments[2])},setFloat64:function(t,e){p(this,8,t,l,e,arguments[2])}});M(R,C),M(I,L),v(I[P],m.VIEW,!0),e[C]=R,e[L]=I},function(t,e,i){var n=i(39),r=i(38);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(9);n(n.G+n.W+n.F*!i(226).ABV,{DataView:i(227).DataView})},function(t,e,i){i(231)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){"use strict";if(i(7)){var n=i(25),r=i(5),o=i(8),a=i(9),s=i(226),u=i(227),l=i(21),c=i(207),h=i(18),f=i(11),p=i(216),d=i(39),g=i(38),y=i(228),m=i(40),v=i(17),_=i(6),x=i(75),b=i(14),T=i(58),E=i(164),A=i(46),S=i(59),w=i(50).f,D=i(166),M=i(20),C=i(27),L=i(174),P=i(37),k=i(209),O=i(195),R=i(130),I=i(167),B=i(194),N=i(190),F=i(187),G=i(12),H=i(51),V=G.f,j=H.f,z=r.RangeError,W=r.TypeError,Y=r.Uint8Array,U="ArrayBuffer",X="Shared"+U,Z="BYTES_PER_ELEMENT",K="prototype",q=Array[K],J=u.ArrayBuffer,Q=u.DataView,$=L(0),tt=L(2),et=L(3),it=L(4),nt=L(5),rt=L(6),ot=P(!0),at=P(!1),st=O.values,ut=O.keys,lt=O.entries,ct=q.lastIndexOf,ht=q.reduce,ft=q.reduceRight,pt=q.join,dt=q.sort,gt=q.slice,yt=q.toString,mt=q.toLocaleString,vt=C("iterator"),_t=C("toStringTag"),xt=M("typed_constructor"),bt=M("def_constructor"),Tt=s.CONSTR,Et=s.TYPED,At=s.VIEW,St="Wrong length!",wt=L(1,function(t,e){return Pt(k(t,t[bt]),e)}),Dt=o(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Mt=!!Y&&!!Y[K].set&&o(function(){new Y(1).set({})}),Ct=function(t,e){var i=d(t);if(i<0||i%e)throw z("Wrong offset!");return i},Lt=function(t){if(b(t)&&Et in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(b(t)&&xt in t))throw W("It is not a typed array constructor!");return new t(e)},kt=function(t,e){return Ot(k(t,t[bt]),e)},Ot=function(t,e){for(var i=0,n=e.length,r=Pt(t,n);n>i;)r[i]=e[i++];return r},Rt=function(t,e,i){V(t,e,{get:function(){return this._d[i]}})},It=function(t){var e,i,n,r,o,a,s=T(t),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,f=D(s);if(void 0!=f&&!E(f)){for(a=f.call(s),n=[],e=0;!(o=a.next()).done;e++)n.push(o.value);s=n}for(h&&u>2&&(c=l(c,arguments[2],2)),e=0,i=g(s.length),r=Pt(this,i);i>e;e++)r[e]=h?c(s[e],e):s[e];return r},Bt=function(){for(var t=0,e=arguments.length,i=Pt(this,e);e>t;)i[t]=arguments[t++];return i},Nt=!!Y&&o(function(){mt.call(new Y(1))}),Ft=function(){return mt.apply(Nt?gt.call(Lt(this)):Lt(this),arguments)},Gt={copyWithin:function(t,e){return F.call(Lt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Lt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Lt(this),arguments)},filter:function(t){return kt(this,tt(Lt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(Lt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Lt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Lt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Lt(this),arguments)},lastIndexOf:function(t){return ct.apply(Lt(this),arguments)},map:function(t){return wt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(Lt(this),arguments)},reduceRight:function(t){return ft.apply(Lt(this),arguments)},reverse:function(){for(var t,e=this,i=Lt(e).length,n=Math.floor(i/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return dt.call(Lt(this),t)},subarray:function(t,e){var i=Lt(this),n=i.length,r=m(t,n);return new(k(i,i[bt]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,g((void 0===e?n:m(e,n))-r))}},Ht=function(t,e){return kt(this,gt.call(Lt(this),t,e))},Vt=function(t){Lt(this);var e=Ct(arguments[1],1),i=this.length,n=T(t),r=g(n.length),o=0;if(r+e>i)throw z(St);for(;o255?255:255&n),r.v[p](i*e+r.o,n,Dt)},C=function(t,e){V(t,e,{get:function(){return D(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};_?(d=i(function(t,i,n,r){c(t,d,l,"_d");var o,a,s,u,h=0,p=0;if(b(i)){if(!(i instanceof J||(u=x(i))==U||u==X))return Et in i?Ot(d,i):It.call(d,i);o=i,p=Ct(n,e);var m=i.byteLength;if(void 0===r){if(m%e)throw z(St);if(a=m-p,a<0)throw z(St)}else if(a=g(r)*e,a+p>m)throw z(St);s=a/e}else s=y(i),a=s*e,o=new J(a);for(f(t,"_d",{b:o,o:p,l:a,e:s,v:new Q(o)});h=i.length)return{value:void 0,done:!0};while(!((t=i[e._i++])in e._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,i){function n(t,e){var i,s,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(i=r.f(t,e))?a(i,"value")?i.value:void 0!==i.get?i.get.call(c):void 0:u(s=o(t))?n(s,e,c):void 0}var r=i(51),o=i(59),a=i(6),s=i(9),u=i(14),l=i(13);s(s.S,"Reflect",{get:n})},function(t,e,i){var n=i(51),r=i(9),o=i(13);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,i){var n=i(9),r=i(59),o=i(13);n(n.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(9),r=i(13),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{ownKeys:i(251)})},function(t,e,i){var n=i(50),r=i(43),o=i(13),a=i(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(o(t)),i=r.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(9),r=i(13),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(e){return!1}}})},function(t,e,i){function n(t,e,i){var u,f,p=arguments.length<4?t:arguments[3],d=o.f(c(t),e);if(!d){if(h(f=a(t)))return n(f,e,i,p);d=l(0)}if(s(d,"value")){if(d.writable===!1||!h(p))return!1;if(u=o.f(p,e)){if(u.get||u.set||u.writable===!1)return!1;u.value=i,r.f(p,e,u)}else r.f(p,e,l(0,i));return!0}return void 0!==d.set&&(d.set.call(p,i),!0)}var r=i(12),o=i(51),a=i(59),s=i(6),u=i(9),l=i(18),c=i(13),h=i(14);u(u.S,"Reflect",{set:n})},function(t,e,i){var n=i(9),r=i(73);r&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(i){return!1}}})},function(t,e,i){"use strict";var n=i(9),r=i(37)(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)("includes")},function(t,e,i){"use strict";var n=i(9),r=i(257),o=i(58),a=i(38),s=i(22),u=i(175);n(n.P,"Array",{flatMap:function(t){var e,i,n=o(this);return s(t),e=a(n.length),i=u(n,0),r(i,n,n,e,0,1,t,arguments[1]),i}}),i(188)("flatMap")},function(t,e,i){"use strict";function n(t,e,i,l,c,h,f,p){for(var d,g,y=c,m=0,v=!!f&&s(f,p,3);m0)y=n(t,e,d,a(d.length),y,h-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=d}y++}m++}return y}var r=i(45),o=i(14),a=i(38),s=i(21),u=i(27)("isConcatSpreadable");t.exports=n},function(t,e,i){"use strict";var n=i(9),r=i(257),o=i(58),a=i(38),s=i(39),u=i(175);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),i=a(e.length),n=u(e,0);return r(n,e,e,i,0,void 0===t?1:s(t)),n}}),i(188)("flatten")},function(t,e,i){"use strict";var n=i(9),r=i(128)(!0);n(n.P,"String",{at:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(9),r=i(261),o=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){var n=i(38),r=i(91),o=i(36);t.exports=function(t,e,i,a){var s=String(o(t)),u=s.length,l=void 0===i?" ":String(i),c=n(e);if(c<=u||""==l)return s;var h=c-u,f=r.call(l,Math.ceil(h/l.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},function(t,e,i){"use strict";var n=i(9),r=i(261),o=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){"use strict";i(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,i){"use strict";i(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,i){"use strict";var n=i(9),r=i(36),o=i(38),a=i(135),s=i(198),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};i(131)(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(r(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in u?String(t.flags):s.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=o(t.lastIndex),new l(n,e)}})},function(t,e,i){i(29)("asyncIterator")},function(t,e,i){i(29)("observable")},function(t,e,i){var n=i(9),r=i(251),o=i(33),a=i(51),s=i(165);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),u=a.f,l=r(n),c={},h=0;l.length>h;)i=u(n,e=l[h++]),void 0!==i&&s(c,e,i);return c}})},function(t,e,i){var n=i(9),r=i(270)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},function(t,e,i){var n=i(31),r=i(33),o=i(44).f;t.exports=function(t){return function(e){for(var i,a=r(e),s=n(a),u=s.length,l=0,c=[];u>l;)o.call(a,i=s[l++])&&c.push(t?[i,a[i]]:a[i]);return c}}},function(t,e,i){var n=i(9),r=i(270)(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineGetter__:function(t,e){a.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";t.exports=i(25)||!i(8)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(5)[t]})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineSetter__:function(t,e){a.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupGetter__:function(t){var e,i=r(this),n=o(t,!0);do if(e=s(i,n))return e.get;while(i=a(i))}})},function(t,e,i){"use strict";var n=i(9),r=i(58),o=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupSetter__:function(t){var e,i=r(this),n=o(t,!0);do if(e=s(i,n))return e.set;while(i=a(i))}})},function(t,e,i){var n=i(9);n(n.P+n.R,"Map",{toJSON:i(278)("Map")})},function(t,e,i){var n=i(75),r=i(279);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,i){var n=i(208);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},function(t,e,i){var n=i(9);n(n.P+n.R,"Set",{toJSON:i(278)("Set")})},function(t,e,i){i(282)("Map")},function(t,e,i){"use strict";var n=i(9);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,i){i(282)("Set")},function(t,e,i){i(282)("WeakMap")},function(t,e,i){i(282)("WeakSet")},function(t,e,i){i(287)("Map")},function(t,e,i){"use strict";var n=i(9),r=i(22),o=i(21),a=i(208);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,u=arguments[1];return r(this),e=void 0!==u,e&&r(u),void 0==t?new this:(i=[],e?(n=0,s=o(u,arguments[2],2),a(t,!1,function(t){i.push(s(t,n++))})):a(t,!1,i.push,i),new this(i))}})}},function(t,e,i){i(287)("Set")},function(t,e,i){i(287)("WeakMap")},function(t,e,i){i(287)("WeakSet")},function(t,e,i){var n=i(9);n(n.G,{global:i(5)})},function(t,e,i){var n=i(9);n(n.S,"System",{global:i(5)})},function(t,e,i){var n=i(9),r=i(35);n(n.S,"Error",{isError:function(t){return"Error"===r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,i){var n=i(9),r=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*r}})},function(t,e,i){var n=i(9),r=i(298),o=i(114);n(n.S,"Math",{fscale:function(t,e,i,n,a){return o(r(t,e,i,n,a))}})},function(t,e){t.exports=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-(1/0)?t:(t-e)*(r-n)/(i-e)+n}},function(t,e,i){var n=i(9);n(n.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=e>>>0,a=i>>>0;return o+(n>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=e>>>0,a=i>>>0;return o-(n>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{imulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,a=r&i,s=n>>16,u=r>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>16)+((o*u>>>0)+(l&i)>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,i){var n=i(9),r=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*r}})},function(t,e,i){var n=i(9);n(n.S,"Math",{scale:i(298)})},function(t,e,i){var n=i(9);n(n.S,"Math",{umulh:function(t,e){var i=65535,n=+t,r=+e,o=n&i,a=r&i,s=n>>>16,u=r>>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>>16)+((o*u>>>0)+(l&i)>>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,i){"use strict";var n=i(9),r=i(10),o=i(5),a=i(209),s=i(215);n(n.P+n.R,"Promise",{"finally":function(t){var e=a(this,r.Promise||o.Promise),i="function"==typeof t;return this.then(i?function(i){return s(e,t()).then(function(){return i})}:t,i?function(i){return s(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var n=i(9),r=i(212),o=i(213);n(n.S,"Promise",{"try":function(t){var e=r.f(this),i=o(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){var n=i(310),r=i(13),o=n.key,a=n.set;n.exp({defineMetadata:function(t,e,i,n){a(t,e,r(i),o(n))}})},function(t,e,i){var n=i(217),r=i(9),o=i(24)("metadata"),a=o.store||(o.store=new(i(222))),s=function(t,e,i){var r=a.get(t);if(!r){if(!i)return;a.set(t,r=new n)}var o=r.get(e);if(!o){if(!i)return;r.set(e,o=new n)}return o},u=function(t,e,i){var n=s(e,i,!1);return void 0!==n&&n.has(t)},l=function(t,e,i){var n=s(e,i,!1);return void 0===n?void 0:n.get(t)},c=function(t,e,i,n){s(i,n,!0).set(t,e)},h=function(t,e){var i=s(t,e,!1),n=[];return i&&i.forEach(function(t,e){n.push(e)}),n},f=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){r(r.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:h,key:f,exp:p}},function(t,e,i){var n=i(310),r=i(13),o=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:o(arguments[2]),n=a(r(e),i,!1);if(void 0===n||!n["delete"](t))return!1;if(n.size)return!0;var u=s.get(e);return u["delete"](i),!!u.size||s["delete"](e)}})},function(t,e,i){var n=i(310),r=i(13),o=i(59),a=n.has,s=n.get,u=n.key,l=function(t,e,i){var n=a(t,e,i);if(n)return s(t,e,i);var r=o(e);return null!==r?l(t,r,i):void 0};n.exp({getMetadata:function(t,e){return l(t,r(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,i){var n=i(221),r=i(279),o=i(310),a=i(13),s=i(59),u=o.keys,l=o.key,c=function(t,e){var i=u(t,e),o=s(t);if(null===o)return i;var a=c(o,e);return a.length?i.length?r(new n(i.concat(a))):a:i};o.exp({getMetadataKeys:function(t){return c(a(t),arguments.length<2?void 0:l(arguments[1]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,i){var n=i(310),r=i(13),o=i(59),a=n.has,s=n.key,u=function(t,e,i){var n=a(t,e,i);if(n)return!0;var r=o(e);return null!==r&&u(t,r,i)};n.exp({hasMetadata:function(t,e){return u(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),r=i(13),o=i(22),a=n.key,s=n.set;n.exp({metadata:function(t,e){return function(i,n){s(t,e,(void 0!==n?r:o)(i),a(n))}}})},function(t,e,i){var n=i(9),r=i(211)(),o=i(5).process,a="process"==i(35)(o);n(n.G,{asap:function(t){var e=a&&o.domain;r(e?e.bind(t):t)}})},function(t,e,i){"use strict";var n=i(9),r=i(5),o=i(10),a=i(211)(),s=i(27)("observable"),u=i(22),l=i(13),c=i(207),h=i(216),f=i(11),p=i(208),d=p.RETURN,g=function(t){return null==t?void 0:u(t)},y=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},v=function(t){m(t)||(t._o=void 0,y(t))},_=function(t,e){l(t),this._c=void 0,this._o=t,t=new x(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:u(i),this._c=i)}catch(r){return void t.error(r)}m(this)&&y(this)};_.prototype=h({},{unsubscribe:function(){v(this)}});var x=function(t){this._s=t};x.prototype=h({},{next:function(t){var e=this._s;if(!m(e)){var i=e._o;try{var n=g(i.next);if(n)return n.call(i,t)}catch(r){try{v(e)}finally{throw r}}}},error:function(t){var e=this._s;if(m(e))throw t;var i=e._o;e._o=void 0;try{var n=g(i.error);if(!n)throw t;t=n.call(i,t)}catch(r){try{y(e)}finally{throw r}}return y(e),t},complete:function(t){var e=this._s;if(!m(e)){var i=e._o;e._o=void 0;try{var n=g(i.complete);t=n?n.call(i,t):void 0}catch(r){try{y(e)}finally{throw r}}return y(e),t}}});var b=function(t){c(this,b,"Observable","_f")._f=u(t)};h(b.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)(function(i,n){u(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(i){n(i),r.unsubscribe()}},error:n,complete:i})})}}),h(b,{from:function(t){var e="function"==typeof this?this:b,i=g(l(t)[s]);if(i){var n=l(i.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var i=!1;return a(function(){if(!i){try{if(p(t,!1,function(t){if(e.next(t),i)return d})===d)return}catch(n){if(i)throw n;return void e.error(n)}e.complete()}}),function(){i=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t2,r=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};r(r.G+r.B+r.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(t,e,i){var n=i(9),r=i(210);n(n.G+n.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,i){for(var n=i(195),r=i(31),o=i(19),a=i(5),s=i(11),u=i(130),l=i(27),c=l("iterator"),h=l("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=r(p),g=0;g=0;--n){var r=this.tryEntries[n],o=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var a=v.call(r,"catchLoc"),s=v.call(r,"finallyLoc");if(a&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),f(i),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;f(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:d(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=y),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}())},function(t,e,i){i(326),t.exports=i(10).RegExp.escape},function(t,e,i){var n=i(9),r=i(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return r(t)}})},function(t,e){t.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(329),o=i(357),a=n(o),s=i(334),u=n(s),l=i(337),c=n(l),h=i(465),f=n(h);i(474),a["default"].registerPlugin("Raphael",r.pluginRaphael,r.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=c["default"],a["default"].colorutil=f["default"],t.exports=a["default"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),r=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),o=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),r.setAttribute("in","flood"),r.setAttribute("result","mask"),r.setAttribute("in2","SourceGraphic"),r.setAttribute("operator","in"),o.setAttribute("in","mask"),o.setAttribute("result","dilated"),o.setAttribute("operator","dilate"),o.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(r),e.appendChild(o),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function o(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),n=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),r=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),n.setAttributeNS(null,"result","blurOut"),n.setAttributeNS(null,"in","offOut"),n.setAttributeNS(null,"stdDeviation","2"),r.setAttributeNS(null,"in","SourceGraphic"),r.setAttributeNS(null,"in2","blurOut"),r.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(r),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(330),s=n(a),u=i(331),l=n(u),c=i(338),h=n(c),f=i(339),p=n(f),d=i(340),g=n(d),y=i(343),m=n(y),v=i(345),_=n(v),x=i(346),b=n(x),T=i(347),E=n(T),A=i(348),S=n(A),w=i(349),D=n(w),M=i(350),C=n(M),L=i(352),P=n(L),k=i(353),O=n(k),R=i(354),I=n(R),B=i(355),N=n(B),F=i(356),G=n(F);e.pluginRaphael={bar:l["default"],boxplot:h["default"],bullet:p["default"],column:l["default"],line:g["default"],area:m["default"],pie:_["default"],bubble:E["default"],scatter:E["default"],heatmap:S["default"],treemap:S["default"],map:D["default"],radial:b["default"],legend:C["default"],mapLegend:P["default"],circleLegend:O["default"],radialPlot:G["default"],title:I["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),n=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(r(i),o(i)),i.pushDownBackgroundToBottom=function(){n.toBack()},i.changeChartBackgroundColor=function(t){n.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){n.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){n.attr({width:t,height:e})},n.attr({fill:"#fff","stroke-width":0}),i}},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n,r;n=[i(1),i(3),i(4)],r=function(t){return t}.apply(e,n),!(void 0!==r&&(t.exports=r))},function(t,e,i){var n,r;n=[i(2)],r=function(t){function e(i){if(e.is(i,"function"))return _?i():t.on("raphael.DOMload",i);if(e.is(i,U))return e._engine.create[M](e,i.splice(0,3+e.is(i[0],W))).add(i);var n=Array.prototype.slice.call(arguments,0);if(e.is(n[n.length-1],"function")){var r=n.pop();return _?r.call(e._engine.create[M](e,n)):t.on("raphael.DOMload",function(){r.call(e._engine.create[M](e,n))})}return e._engine.create[M](e,arguments)}function i(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var n in t)t[A](n)&&(e[n]=i(t[n]));return e}function n(t,e){for(var i=0,n=t.length;i=1e3&&delete s[u.shift()],u.push(a),s[a]=t[M](e,o),i?i(s[a]):s[a])}return r}function o(){return this.hex}function a(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function s(t,e,i,n,r){var o=-3*e+9*i-9*n+3*r,a=t*o+6*e-12*i+6*n;return t*a-3*e+3*i}function u(t,e,i,n,r,o,a,u,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;gd;)f/=2,p+=(cG(r,a)||G(e,n)G(o,s))){var u=(t*n-e*i)*(r-a)-(t-i)*(r*s-o*a),l=(t*n-e*i)*(o-s)-(e-n)*(r*s-o*a),c=(t-i)*(o-s)-(e-n)*(r-a);if(c){var h=u/c,f=l/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+H(t,i).toFixed(2)||p>+G(t,i).toFixed(2)||p<+H(r,a).toFixed(2)||p>+G(r,a).toFixed(2)||d<+H(e,n).toFixed(2)||d>+G(e,n).toFixed(2)||d<+H(o,s).toFixed(2)||d>+G(o,s).toFixed(2)))return{x:h,y:f}}}}function h(t,i,n){var r=e.bezierBBox(t),o=e.bezierBBox(i);if(!e.isBBoxIntersect(r,o))return n?0:[];for(var a=u.apply(0,t),s=u.apply(0,i),l=G(~~(a/5),1),h=G(~~(s/5),1),f=[],p=[],d={},g=n?0:[],y=0;y=0&&w<=1.001&&D>=0&&D<=1.001&&(n?g++:g.push({x:S.x,y:S.y,t1:H(w,1),t2:H(D,1)}))}}return g}function f(t,i,n){t=e._path2curve(t),i=e._path2curve(i);for(var r,o,a,s,u,l,c,f,p,d,g=n?0:[],y=0,m=t.length;yn)return n;for(;io?i=r:n=r,r=(n-i)/2+i}return r}var l=3*e,c=3*(n-e)-l,h=1-l-c,f=3*i,p=3*(r-i)-f,d=1-f-p;return s(t,1/(200*o))}function y(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t[A](r)&&(n[Q(r)]=t[r],i.push(Q(r)));i.sort(ct)}this.anim=n,this.top=i[i.length-1],this.percents=i}function m(i,n,r,o,a,s){r=Q(r);var u,l,c,h,f,d,y=i.ms,m={},v={},_={};if(o)for(T=0,E=oe.length;To*i.top){r=i.percents[T],f=i.percents[T-1]||0,y=y/i.top*(r-f),h=i.percents[T+1],u=i.anim[r];break}o&&n.attr(i.anim[i.percents[T]])}if(u){if(l)l.initstatus=o,l.start=new Date-l.ms*o;else{for(var S in u)if(u[A](S)&&(it[A](S)||n.paper.customAttributes[A](S)))switch(m[S]=n.attr(S),null==m[S]&&(m[S]=et[S]),v[S]=u[S],it[S]){case W:_[S]=(v[S]-m[S])/y;break;case"colour":m[S]=e.getRGB(m[S]);var w=e.getRGB(v[S]);_[S]={r:(w.r-m[S].r)/y,g:(w.g-m[S].g)/y,b:(w.b-m[S].b)/y};break;case"path":var D=Rt(m[S],v[S]),M=D[1];for(m[S]=D[0],_[S]=[],T=0,E=m[S].length;T',yt=mt.firstChild,yt.style.behavior="url(#default#VML)",!yt||"object"!=typeof yt.adj)return e.type=P;mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=D,e.fn=x=D.prototype=e.prototype,e._id=0,e._oid=0,e.is=function(t,e){return e=N.call(e),"finite"==e?!K[A](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||X.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,i,n,r,o,a){if(null==o){var s=t-n,u=i-r;return s||u?(180+180*F.atan2(-u,-s)/z+360)%360:0}return e.angle(t,i,o,a)-e.angle(n,r,o,a)},e.rad=function(t){return t%360*z/180},e.deg=function(t){return Math.round(180*t/z%360*1e3)/1e3},e.snapTo=function(t,i,n){if(n=e.is(n,"finite")?n:10,e.is(t,U)){for(var r=t.length;r--;)if(V(t[r]-i)<=n)return t[r]}else{t=+t;var o=i%t;if(ot-n)return i-o+t}return i};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*F.random()|0,i="x"==t?e:3&e|8;return i.toString(16)});e.setWindow=function(i){t("raphael.setWindow",e,S.win,i),S.win=i,S.doc=S.win.document,e._engine.initWin&&e._engine.initWin(S.win)};var vt=function(t){if(e.vml){var i,n=/^\s+|\s+$/g;try{var o=new ActiveXObject("htmlfile");o.write(""),o.close(),i=o.body}catch(a){i=createPopup().document.body}var s=i.createTextRange();vt=r(function(t){try{i.style.color=O(t).replace(n,P);var e=s.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(r){return"none"}})}else{var u=S.doc.createElement("i");u.title="Raphaël Colour Picker",u.style.display="none",S.doc.body.appendChild(u),vt=r(function(t){return u.style.color=t,S.doc.defaultView.getComputedStyle(u,P).getPropertyValue("color")})}return vt(t)},_t=function(){return"hsb("+[this.h,this.s,this.b]+")"},xt=function(){return"hsl("+[this.h,this.s,this.l]+")"},bt=function(){return this.hex},Tt=function(t,i,n){if(null==i&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,i=t.g,t=t.r),null==i&&e.is(t,Y)){var r=e.getRGB(t);t=r.r,i=r.g,n=r.b}return(t>1||i>1||n>1)&&(t/=255,i/=255,n/=255),[t,i,n]},Et=function(t,i,n,r){t*=255,i*=255,n*=255;var o={r:t,g:i,b:n,hex:e.rgb(t,i,n),toString:bt};return e.is(r,"finite")&&(o.opacity=r),o};e.color=function(t){var i;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=e.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=e.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=e.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=e.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=bt,t},e.hsb2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=t.o,t=t.h),t*=360;var r,o,a,s,u;return t=t%360/60,u=i*e,s=u*(1-V(t%2-1)),r=o=a=i-u,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],Et(r,o,a,n)},e.hsl2rgb=function(t,e,i,n){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var r,o,a,s,u;return t=t%360/60,u=2*e*(i<.5?i:1-i),s=u*(1-V(t%2-1)),r=o=a=i-u/2,t=~~t,r+=[u,s,0,0,s,u][t],o+=[s,u,u,s,0,0][t],a+=[0,0,s,u,u,s][t],Et(r,o,a,n)},e.rgb2hsb=function(t,e,i){i=Tt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a;return o=G(t,e,i),a=o-H(t,e,i),n=0==a?null:o==t?(e-i)/a:o==e?(i-t)/a+2:(t-e)/a+4,n=(n+360)%6*60/360,r=0==a?0:a/o,{h:n,s:r,b:o,toString:_t}},e.rgb2hsl=function(t,e,i){i=Tt(t,e,i),t=i[0],e=i[1],i=i[2];var n,r,o,a,s,u;return a=G(t,e,i),s=H(t,e,i),u=a-s,n=0==u?null:a==t?(e-i)/u:a==e?(i-t)/u+2:(t-e)/u+4,n=(n+360)%6*60/360,o=(a+s)/2,r=0==u?0:o<.5?u/(2*o):u/(2-2*o),{h:n,s:r,l:o,toString:xt}},e._path2string=function(){return this.join(",").replace(ot,"$1")};e._preload=function(t,e){var i=S.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,S.doc.body.removeChild(this)},i.onerror=function(){S.doc.body.removeChild(this)},S.doc.body.appendChild(i),i.src=t};e.getRGB=r(function(t){if(!t||(t=O(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(rt[A](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=vt(t));var i,n,r,a,s,u,l=t.match(Z);return l?(l[2]&&(r=$(l[2].substring(5),16),n=$(l[2].substring(3,5),16),i=$(l[2].substring(1,3),16)),l[3]&&(r=$((s=l[3].charAt(3))+s,16),n=$((s=l[3].charAt(2))+s,16),i=$((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100)),l[5]?(u=l[5][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsb2rgb(i,n,r,a)):l[6]?(u=l[6][R](nt),i=Q(u[0]),"%"==u[0].slice(-1)&&(i*=2.55),n=Q(u[1]),"%"==u[1].slice(-1)&&(n*=2.55),r=Q(u[2]),"%"==u[2].slice(-1)&&(r*=2.55),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(i/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(a=Q(u[3])),u[3]&&"%"==u[3].slice(-1)&&(a/=100),e.hsl2rgb(i,n,r,a)):(l={r:i,g:n,b:r,toString:o},l.hex="#"+(16777216|r|n<<8|i<<16).toString(16).slice(1),e.is(a,"finite")&&(l.opacity=a),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},e),e.hsb=r(function(t,i,n){return e.hsb2rgb(t,i,n).hex}),e.hsl=r(function(t,i,n){return e.hsl2rgb(t,i,n).hex}),e.rgb=r(function(t,e,i){function n(t){return t+.5|0}return"#"+(16777216|n(i)|n(e)<<8|n(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},i=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),i.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var i=At(t);if(i.arr)return wt(i.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,U)&&e.is(t[0],U)&&(r=wt(t)),r.length||O(t).replace(at,function(t,e,i){var o=[],a=e.toLowerCase();if(i.replace(ut,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(r.push([e][C](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][C](o));else for(;o.length>=n[a]&&(r.push([e][C](o.splice(0,n[a]))),n[a]););}),r.toString=e._path2string,i.arr=wt(r),r},e.parseTransformString=r(function(t){if(!t)return null;var i=[];return e.is(t,U)&&e.is(t[0],U)&&(i=wt(t)),i.length||O(t).replace(st,function(t,e,n){var r=[];N.call(e);n.replace(ut,function(t,e){e&&r.push(+e)}),i.push([e][C](r))}),i.toString=e._path2string,i});var At=function(t){var e=At.ps=At.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[A](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]};e.findDotsAtSegment=function(t,e,i,n,r,o,a,s,u){var l=1-u,c=j(l,3),h=j(l,2),f=u*u,p=f*u,d=c*t+3*h*u*i+3*l*u*u*r+p*a,g=c*e+3*h*u*n+3*l*u*u*o+p*s,y=t+2*u*(i-t)+f*(r-2*i+t),m=e+2*u*(n-e)+f*(o-2*n+e),v=i+2*u*(r-i)+f*(a-2*r+i),_=n+2*u*(o-n)+f*(s-2*o+n),x=l*t+u*i,b=l*e+u*n,T=l*r+u*a,E=l*o+u*s,A=90-180*F.atan2(y-v,m-_)/z;return(y>v||m<_)&&(A+=180),{x:d,y:g,m:{x:y,y:m},n:{x:v,y:_},start:{x:x,y:b},end:{x:T,y:E},alpha:A}},e.bezierBBox=function(t,i,n,r,o,a,s,u){e.is(t,"array")||(t=[t,i,n,r,o,a,s,u]);var l=Ot.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},e.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},e.isBBoxIntersect=function(t,i){var n=e.isPointInsideBBox;return n(i,t.x,t.y)||n(i,t.x2,t.y)||n(i,t.x,t.y2)||n(i,t.x2,t.y2)||n(t,i.x,i.y)||n(t,i.x2,i.y)||n(t,i.x,i.y2)||n(t,i.x2,i.y2)||(t.xi.x||i.xt.x)&&(t.yi.y||i.yt.y)},e.pathIntersection=function(t,e){return f(t,e)},e.pathIntersectionNumber=function(t,e){return f(t,e,1)},e.isPointInsidePath=function(t,i,n){var r=e.pathBBox(t);return e.isPointInsideBBox(r,i,n)&&f(t,[["M",i,n],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var St=e.pathBBox=function(t){var e=At(t);if(e.bbox)return i(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=Rt(t);for(var n,r=0,o=0,a=[],s=[],u=0,l=t.length;u1&&(v=F.sqrt(v),i*=v,n*=v);var _=i*i,x=n*n,b=(a==s?-1:1)*F.sqrt(V((_*x-_*m*m-x*y*y)/(_*m*m+x*y*y))),T=b*i*m/n+(t+u)/2,E=b*-n*y/i+(e+l)/2,A=F.asin(((e-E)/n).toFixed(9)),S=F.asin(((l-E)/n).toFixed(9));A=tS&&(A-=2*z),!s&&S>A&&(S-=2*z)}var w=S-A;if(V(w)>f){var D=S,M=u,L=l;S=A+f*(s&&S>A?1:-1),u=T+i*F.cos(S),l=E+n*F.sin(S),d=Pt(u,l,i,n,o,0,s,M,L,[S,D,T,E])}w=S-A;var P=F.cos(A),k=F.sin(A),O=F.cos(S),I=F.sin(S),B=F.tan(w/4),N=4/3*i*B,G=4/3*n*B,H=[t,e],j=[t+N*k,e-G*P],W=[u+N*I,l-G*O],Y=[u,l];if(j[0]=2*H[0]-j[0],j[1]=2*H[1]-j[1],c)return[j,W,Y][C](d);d=[j,W,Y][C](d).join()[R](",");for(var U=[],X=0,Z=d.length;X"1e12"&&(f=.5),V(p)>"1e12"&&(p=.5),f>0&&f<1&&(u=kt(t,e,i,n,r,o,a,s,f),g.push(u.x),d.push(u.y)),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),d.push(u.y)),l=o-2*n+e-(s-2*o+n),c=2*(n-e)-2*(o-n),h=e-n,f=(-c+F.sqrt(c*c-4*l*h))/2/l,p=(-c-F.sqrt(c*c-4*l*h))/2/l,V(f)>"1e12"&&(f=.5),V(p)>"1e12"&&(p=.5),f>0&&f<1&&(u=kt(t,e,i,n,r,o,a,s,f),g.push(u.x),d.push(u.y)),p>0&&p<1&&(u=kt(t,e,i,n,r,o,a,s,p),g.push(u.x),d.push(u.y)),{min:{x:H[M](0,g),y:H[M](0,d)},max:{x:G[M](0,g),y:G[M](0,d)}}}),Rt=e._path2curve=r(function(t,e){var i=!e&&At(t);if(!e&&i.curve)return wt(i.curve);for(var n=Mt(t),r=e&&Mt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,i){var n,r,o={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in o)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][C](Pt[M](0,[e.x,e.y][C](t.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*e.x-e.bx,r=2*e.y-e.by):(n=e.x,r=e.y),t=["C",n,r][C](t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][C](Lt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][C](Lt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][C](Ct(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][C](Ct(e.x,e.y,t[1],e.y));break;case"V":t=["C"][C](Ct(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][C](Ct(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",r&&(h[e]="A"),t.splice(e++,0,["C"][C](i.splice(0,6)));t.splice(e,1),g=G(n.length,r&&r.length||0)}},l=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],g=G(n.length,r&&r.length||0))},c=[],h=[],f="",p="",d=0,g=G(n.length,r&&r.length||0);dr){if(i&&!f.start){if(c=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-p),h+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],o)return h;f.start=h,h=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,u[5],u[6]].join(),p+=l,a=+u[5],s=+u[6];continue}if(!t&&!i)return c=$t(a,s,u[1],u[2],u[3],u[4],u[5],u[6],r-p),{x:c.x,y:c.y,alpha:c.alpha}}p+=l,a=+u[5],s=+u[6]}h+=u.shift()+u}return f.end=h,c=t?p:i?f:e.findDotsAtSegment(a,s,u[0],u[1],u[2],u[3],u[4],u[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ie=te(),ne=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ie,e.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return ne(t,e).end;var n=ne(t,i,1);return e?ne(n,e).end:n},Kt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Kt.getPointAtLength=function(t){var e=this.getPath();if(e)return ie(e,t)},Kt.getPath=function(){var t,i=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return i&&(t=i(this)),t},Kt.getSubpath=function(t,i){var n=this.getPath();if(n)return e.getSubpath(n,t,i)};var re=e.easing_formulas={linear:function(t){return t},"<":function(t){return j(t,1.7)},">":function(t){return j(t,.48)},"<>":function(t){var e=.48-t/1.04,i=F.sqrt(.1734+e*e),n=i-e,r=j(V(n),1/3)*(n<0?-1:1),o=-i-e,a=j(V(o),1/3)*(o<0?-1:1),s=r+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:j(2,-10*t)*F.sin((t-.075)*(2*z)/.3)+1},bounce:function(t){var e,i=7.5625,n=2.75;return t<1/n?e=i*t*t:t<2/n?(t-=1.5/n,e=i*t*t+.75):t<2.5/n?(t-=2.25/n,e=i*t*t+.9375):(t-=2.625/n,e=i*t*t+.984375),e}};re.easeIn=re["ease-in"]=re["<"],re.easeOut=re["ease-out"]=re[">"],re.easeInOut=re["ease-in-out"]=re["<>"],re["back-in"]=re.backIn,re["back-out"]=re.backOut;var oe=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var i=+new Date,n=0;n1&&!r.next){for(a in f)f[A](a)&&(g[a]=r.totalOrigin[a]);r.el.attr(g),m(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&m(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}oe.length&&ae(se)},ue=function(t){return t>255?255:t<0?0:t};Kt.animateWith=function(t,i,n,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var u=n instanceof y?n:e.animation(n,r,o,a);m(u,s,u.percents[0],null,s.attr());for(var l=0,c=oe.length;lu&&(u=c)}u+="%",!t[u].callback&&(t[u].callback=r)}return new y(t,i)},Kt.animate=function(t,i,n,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof y?t:e.animation(t,i,n,r);return m(a,o,a.percents[0],null,o.attr()),o},Kt.setTime=function(t,e){return t&&null!=e&&this.status(t,H(e,t.ms)/t.ms),this},Kt.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return m(t,this,-1,H(e,1)),this;for(i=oe.length;o.5)-1;u(f-.5,2)+u(p-.5,2)>.25&&(p=o.sqrt(.25-u(f-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return h}),r=r.split(/\s*\-\s*/),"linear"==l){var x=r.shift();if(x=-n(x),isNaN(x))return null;var b=[0,0,o.cos(t.rad(x)),o.sin(t.rad(x))],T=1/(a(s(b[2]),s(b[3]))||1);b[2]*=T,b[3]*=T,b[2]<0&&(b[0]=-b[2],b[2]=0),b[3]<0&&(b[1]=-b[3],b[3]=0)}var E=t._parseDots(r);if(!E)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){v=y(l+"Gradient",{id:c}),e.gradient=v,y(v,"radial"==l?{fx:f,fy:p}:{x1:b[0],y1:b[1],x2:b[2],y2:b[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(v);for(var A=0,S=E.length;A1?O.opacity/100:O.opacity});case"stroke":O=t.getRGB(g),u.setAttribute(d,O.hex),"stroke"==d&&O[e]("opacity")&&y(u,{"stroke-opacity":O.opacity>1?O.opacity/100:O.opacity}),"stroke"==d&&n._.arrows&&("startString"in n._.arrows&&b(n,n._.arrows.startString),"endString"in n._.arrows&&b(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=i(g).charAt())&&m(n,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&y(u,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){R=t._g.doc.getElementById(u.getAttribute("fill").replace(/^url\(#|\)$/g,h)),R&&(I=R.getElementsByTagName("stop"),y(I[I.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=r(g,10)+"px");var B=d.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});u.style[B]=g,n._.dirty=1,u.setAttribute(d,g)}}w(n,o),u.style.visibility=f},S=1.2,w=function(n,o){if("text"==n.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=n.attrs,s=n.node,u=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,h).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var l,c=i(o.text).split("\n"),f=[],p=0,d=c.length;p"));var K=U.getBoundingClientRect();v.W=f.w=(K.right-K.left)/X,v.H=f.h=(K.bottom-K.top)/X,v.X=f.x,v.Y=f.y+v.H/2,("x"in u||"y"in u)&&(v.path.v=t.format("m{0},{1}l{2},{1}",o(f.x*x),o(f.y*x),o(f.x*x)+1));for(var q=["x","y","text","font","font-family","font-weight","font-style","font-size"],J=0,Q=q.length;J.25&&(i=r.sqrt(.25-s(e-.5,2))*(2*(i>.5)-1)+.5),l=e+p+i),d}),o=o.split(/\s*\-\s*/),"linear"==u){var c=o.shift();if(c=-n(c),isNaN(c))return null}var h=t._parseDots(o);if(!h)return null;if(e=e.shape||e.node,h.length){e.removeChild(a),a.on=!0,a.method="none",a.color=h[0].color,a.color2=h[h.length-1].color;for(var f=[],g=0,y=h.length;g')}}catch(i){P=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),i=e.container,n=e.height,r=e.width,o=e.x,a=e.y;if(!i)throw new Error("VML container not found.");var s=new t._Paper,u=s.canvas=t._g.doc.createElement("div"),l=u.style;return o=o||0,a=a||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=1e3*x+p+1e3*x,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",u.appendChild(s.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==i?(t._g.doc.body.appendChild(u),l.left=o+"px",l.top=a+"px",l.position="absolute"):i.firstChild?i.insertBefore(u,i.firstChild):i.appendChild(u),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=d,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var k=t.st;for(var O in L)L[e](O)&&!k[e](O)&&(k[O]=function(t){return function(){var e=arguments;return this.forEach(function(i){i[t].apply(i,e)})}}(O))}}.apply(e,n),!(void 0!==r&&(t.exports=r))}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),f=700,p=1,d=.3,g=.2,y=8,m=2,v=.4,_=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,r=e.seriesDataModel,o=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=r,this.chartType=o,this.paper.setStart(),this.options=a,this.theme=n,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var n=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return n.node.setAttribute("class","auto-shape-rendering"),n},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=t.map(function(t,r){return t.map(function(t,o){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(r,o),s=n?i[r]:i[o],u=e._renderBar(t.start,s);return{rect:u,color:s,bound:t.end,item:a,groupIndex:r,index:o,isRange:a.isRange}})});return r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var n=i.value,r=null;if("bar"===e||n>=0||i.isRange){var o=l["default"].extend({},t.leftTop);o.left-="column"===e||n<0?1:0,r=s["default"].makeLinePath(o,t.rightTop).join(" ")}return r},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),r={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return l["default"].filter(r,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,n){var r=this._makeBorderLinesPaths(t,i,n),a={};return Object.entries(r).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];a[n]=s["default"].renderLine(self.paper,r,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=l["default"].map(t,function(t,n){return l["default"].map(t,function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,self.chartType,o)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-m/2,y:e.height?e.top:e.top-m/2,width:e.width?e.width:m,height:e.height?e.height:m,opacity:e.height&&e.width?1:v},f,">")},t.prototype._animateBorders=function(t,e,i,n){var r=this._makeBorderLinesPaths(e,i,n);l["default"].forEach(t,function(t,e){t.animate({path:r[e]},f,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,n,r){var o=i[n]&&i[n][r];t&&(e._animateRect(t.rect,t.bound),o&&e._animateBorders(o,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},f))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+y,height:i.height+y,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,r=t.groupBounds;this.groupBounds=r,this.paper.setSize(n.width,n.height),s["default"].forEach2dArray(this.groupBars,function(t,n,o){if(t){var a=i[n]&&i[n][o],u=r[n][o].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=h["default"].color(e.color),n=this.theme.selectionColor,r=n||s["default"].makeChangedLuminanceColor(i.hex,g),o=this.theme.borderColor;if(o){var a=h["default"].color(o);o=s["default"].makeChangedLuminanceColor(a.hex,g)}this._changeBarColor(t,r,o)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){ +var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(n,r,o){if(n){var a=e[r]&&e[r][o],s=i||t===o?p:d;n.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o=r||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o},u=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var o=e[n][r],l=s["default"].renderText(t,o.end,i.end,a),c=l.node.style;if(c.userSelect="none",c.cursor="default",u.push(l),o.start){var h=s["default"].renderText(t,o.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",u.push(h)}})}),u},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var o=i(333),a=n(o),s=i(334),u=n(s),l=i(330),c=n(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],r=[e.left,e.top],o=i%2/2;return n.forEach(function(t,e){t===r[e]&&(n[e]=r[e]=Math.round(t)-o)}),["M"].concat(n,["L"],r)},renderLine:function(t,e,i,n){var r=t.path([e]),o={stroke:i,"stroke-width":a["default"].isUndefined(n)?2:n,"stroke-linecap":"butt"};return"transparent"===i&&(o.stroke="#fff",o["stroke-opacity"]=0),r.attr(o).node.setAttribute("class","auto-shape-rendering"),r},getEllipsisText:function(t,e,i){for(var n=t.split(""),r=n.length,o=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*o,u=0;u=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var r=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return n&&(n["dominant-baseline"]?r.node.setAttribute("dominant-baseline",n["dominant-baseline"]):r.node.setAttribute("dominant-baseline","central"),r.attr(n)),r},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var r=t.circle(e.left,e.top,i);return n&&r.attr(n),r},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),r=n+n*e;return r=Math.round(Math.min(Math.max(0,r),255)).toString(16),u["default"].formatToZeroFill(r,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var n=(0,c["default"])(document.body,100,100),r=n.text(0,0,t).attr({"font-size":e,"font-family":i}),o=r.getBBox();return r.remove(),n.remove(),{width:o.width,height:o.height}},animateOpacity:function(t,e,i,n){var o=r(n)?n:600,a=r(e)?e:0,s=r(i)?i:1,u=c["default"].animation({opacity:s},o);t.attr({opacity:a}),t.animate(u)}}},function(t,e,i){!function(e,i){t.exports=i()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="dist",e(0)}([function(t,e,i){"use strict";var n={},r=i(1),o=r.extend;o(n,r),o(n,i(3)),o(n,i(2)),o(n,i(4)),o(n,i(5)),o(n,i(6)),o(n,i(7)),o(n,i(8)),o(n,i(9)),n.browser=i(10),n.popup=i(11),n.formatDate=i(12),n.defineClass=i(13),n.defineModule=i(14),n.defineNamespace=i(15),n.CustomEvents=i(16),n.Enum=i(17),n.ExMap=i(18),n.HashMap=i(20),n.Map=i(19),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i,n,r,o,a=Object.prototype.hasOwnProperty;for(r=1,o=arguments.length;r-1||f.inArray(e,r)>-1)return!1;for(i in e){if(e.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1;if(typeof e[i]!=typeof t[i])return!1}for(i in t){if(e.hasOwnProperty(i)!==t.hasOwnProperty(i))return!1;if(typeof e[i]!=typeof t[i])return!1;if("object"==typeof t[i]||"function"==typeof t[i]){if(n.push(t),r.push(e),!l(t[i],e[i]))return!1;n.pop(),r.pop()}else if(t[i]!==e[i])return!1}return!0}function c(t,e){for(var i=arguments,n=i[0],r=1,o=i.length;r=0&&n","'":"'"," ":" "};return t.replace(/&|<|>|"|'| /g,function(t){return e[t]?e[t]:t})}function r(t){var e={'"':"quot","&":"amp","<":"lt",">":"gt","'":"#39"};return t.replace(/[<>&"']/g,function(t){return e[t]?"&"+e[t]+";":t})}function o(t){return/[<>&"']/.test(t)}function a(t,e){for(var i,n,r=0,o=t.length,a={};r1}),a=u.keys(a).sort(),i=a.join("")}var s=i(4),u=i(1);t.exports={decodeHTMLEntity:n,encodeHTMLEntity:r,hasEncodableString:o,getDuplicatedChar:a}},function(t,e){"use strict";function i(t,e){function i(){r=a.call(arguments),window.clearTimeout(n),n=window.setTimeout(function(){t.apply(null,r)},e)}var n,r;return e=e||0,i}function n(){return Number(new Date)}function r(t,e){function i(){return l=a.call(arguments),c?(h(l),void(c=!1)):(u=o.timestamp(),r=r||u,s(l),void(u-r>=e&&h(l)))}function n(){c=!0,r=null}var r,s,u,l,c=!0,h=function(e){t.apply(null,e),r=null};return e=e||0,s=o.debounce(h,e),i.reset=n,i}var o={},a=Array.prototype.slice;o.timestamp=n,o.debounce=i,o.throttle=r,t.exports=o},function(t,e,i){"use strict";function n(t){var e="https://www.google-analytics.com/collect",i=location.hostname,n="event",o="UA-115377265-9";(s.isUndefined(window.tui)||window.tui.usageStatistics!==!1)&&setTimeout(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||r(e,{v:1,t:n,tid:o,cid:i,dp:i,dh:t})},1e3)}function r(t,e){var i=a.map(o.keys(e),function(t,i){var n=0===i?"":"&";return n+t+"="+e[t]}).join(""),n=document.createElement("img");return n.src=t+"?"+i,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}var o=i(1),a=i(4),s=i(2);t.exports={imagePing:r,sendHostname:n}},function(t,e){"use strict";var i,n,r={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0},o=window.navigator,a=o.appName.replace(/\s/g,"_"),s=o.userAgent,u=/MSIE\s([0-9]+[.0-9]*)/,l=/Trident.*rv:11\./,c=/Edge\/(\d+)\./,h={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},f={Microsoft_Internet_Explorer:function(){var t=s.match(u);t?(r.msie=!0,r.version=parseFloat(t[1])):r.others=!0},Netscape:function(){var t=!1;if(l.exec(s))r.msie=!0,r.version=11,t=!0;else if(c.exec(s))r.edge=!0,r.version=s.match(c)[1],t=!0;else for(i in h)if(h.hasOwnProperty(i)&&(n=s.match(h[i]),n&&n.length>1)){r[i]=t=!0,r.version=parseFloat(n[1]||0);break}t||(r.others=!0)}},p=f[a];p&&f[a](),t.exports=r},function(t,e,i){"use strict";function n(){this.openedPopup={},this.closeWithParentPopup={},this.postBridgeUrl=""}var r=i(4),o=i(2),a=i(5),s=i(10),u=i(1),l=0;n.prototype.getPopupList=function(t){var e;return e=o.isExisty(t)?this.openedPopup[t]:this.openedPopup},n.prototype.openPopup=function(t,e){var i,n,r;if(e=u.extend({popupName:"popup_"+l+"_"+Number(new Date),popupOptionStr:"",useReload:!0,closeWithParent:!0,method:"get",param:{}},e||{}),e.method=e.method.toUpperCase(),this.postBridgeUrl=e.postBridgeUrl||this.postBridgeUrl,r="POST"===e.method&&e.param&&s.msie&&11===s.version,!o.isExisty(t))throw new Error("Popup#open() need popup url.");l+=1,e.param&&("GET"===e.method?t=t+(/\?/.test(t)?"&":"?")+this._parameterize(e.param):"POST"===e.method&&(r||(n=this.createForm(t,e.param,e.method,e.popupName),t="about:blank"))),i=this.openedPopup[e.popupName],o.isExisty(i)?i.closed?this.openedPopup[e.popupName]=i=this._open(r,e.param,t,e.popupName,e.popupOptionStr):(e.useReload&&i.location.replace(t),i.focus()):this.openedPopup[e.popupName]=i=this._open(r,e.param,t,e.popupName,e.popupOptionStr),this.closeWithParentPopup[e.popupName]=e.closeWithParent,(!i||i.closed||o.isUndefined(i.closed))&&alert("please enable popup windows for this website"),e.param&&"POST"===e.method&&!r&&(i&&n.submit(),n.parentNode&&n.parentNode.removeChild(n)),window.onunload=a.bind(this.closeAllPopup,this)},n.prototype.close=function(t,e){var i=e||window;t=!!o.isExisty(t)&&t,t&&(window.onunload=null),i.closed||(i.opener=window.location.href,i.close())},n.prototype.closeAllPopup=function(t){var e=o.isExisty(t);r.forEachOwnProperties(this.openedPopup,function(t,i){(e&&this.closeWithParentPopup[i]||!e)&&this.close(!1,t)},this)},n.prototype.focus=function(t){this.getPopupList(t).focus()},n.prototype.parseQuery=function(){var t,e,i={};return t=window.location.search.substr(1),r.forEachArray(t.split("&"),function(t){e=t.split("="),i[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}),i},n.prototype.createForm=function(t,e,i,n,o){var a,s=document.createElement("form");return o=o||document.body,s.method=i||"POST",s.action=t||"",s.target=n||"",s.style.display="none",r.forEachOwnProperties(e,function(t,e){a=document.createElement("input"),a.name=e,a.type="hidden",a.value=t,s.appendChild(a)}),o.appendChild(s),s},n.prototype._parameterize=function(t){var e=[];return r.forEachOwnProperties(t,function(t,i){e.push(encodeURIComponent(i)+"="+encodeURIComponent(t))}),e.join("&")},n.prototype._open=function(t,e,i,n,r){var o;return t?(o=window.open(this.postBridgeUrl,n,r),setTimeout(function(){o.redirect(i,e)},100)):o=window.open(i,n,r),o},t.exports=new n},function(t,e,i){"use strict";function n(t,e,i){var n,r,o,a;return t=Number(t),e=Number(e),i=Number(i),n=t>-1&&t<100||t>1969&&t<2070,r=e>0&&e<13,!(!n||!r)&&(a=l[e],2===e&&t%4===0&&(t%100===0&&t%400!==0||(a=29)),o=i>0&&i<=a)}function r(t,e,i){var r,u,l,h=a.pick(i,"meridiemSet","AM")||"AM",f=a.pick(i,"meridiemSet","PM")||"PM";return u=o.isDate(e)?{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate(),hour:e.getHours(),minute:e.getMinutes()}:{year:e.year,month:e.month,date:e.date,hour:e.hour,minute:e.minute},!!n(u.year,u.month,u.date)&&(u.meridiem="",/([^\\]|^)[aA]\b/.test(t)&&(r=u.hour>11?f:h,u.hour>12&&(u.hour%=12),0===u.hour&&(u.hour=12),u.meridiem=r),l=t.replace(s,function(t){return t.indexOf("\\")>-1?t.replace(/\\/,""):c[t](u)||""}))}var o=i(2),a=i(1),s=/[\\]*YYYY|[\\]*YY|[\\]*MMMM|[\\]*MMM|[\\]*MM|[\\]*M|[\\]*DD|[\\]*D|[\\]*HH|[\\]*H|[\\]*A/gi,u=["Invalid month","January","February","March","April","May","June","July","August","September","October","November","December"],l=[0,31,28,31,30,31,30,31,31,30,31,30,31],c={M:function(t){return Number(t.month)},MM:function(t){var e=t.month;return Number(e)<10?"0"+e:e},MMM:function(t){return u[Number(t.month)].substr(0,3)},MMMM:function(t){return u[Number(t.month)]},D:function(t){return Number(t.date)},d:function(t){return c.D(t)},DD:function(t){var e=t.date;return Number(e)<10?"0"+e:e},dd:function(t){return c.DD(t)},YY:function(t){return Number(t.year)%100},yy:function(t){return c.YY(t)},YYYY:function(t){var e="20",i=t.year;return i>69&&i<100&&(e="19"),Number(i)<100?e+String(i):i},yyyy:function(t){return c.YYYY(t)},A:function(t){return t.meridiem},a:function(t){return t.meridiem},hh:function(t){var e=t.hour;return Number(e)<10?"0"+e:e},HH:function(t){return c.hh(t)},h:function(t){return String(Number(t.hour))},H:function(t){return c.h(t)},m:function(t){return String(Number(t.minute))},mm:function(t){var e=t.minute;return Number(e)<10?"0"+e:e}};t.exports=r},function(t,e,i){"use strict";function n(t,e){var i;return e||(e=t,t=null),i=e.init||function(){},t&&r(i,t),e.hasOwnProperty("static")&&(o(i,e["static"]),delete e["static"]),o(i.prototype,e),i}var r=i(6).inherit,o=i(1).extend;t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=e||{};return o.isFunction(i[a])&&i[a](),r(t,i)}var r=i(15),o=i(2),a="initialize";t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n,a,s,u;return n=t.split("."),n.unshift(window),a=r.reduce(n,function(t,e){return t[e]=t[e]||{},t[e]}),i?(u=n.pop(),s=o.pick.apply(null,n),a=s[u]=e):o.extend(a,e),a}var r=i(4),o=i(1);t.exports=n},function(t,e,i){"use strict";function n(){this.events=null,this.contexts=null}var r=i(4),o=i(2),a=i(1),s=/\s+/g;n.mixin=function(t){a.extend(t.prototype,n.prototype)},n.prototype._getHandlerItem=function(t,e){var i={handler:t};return e&&(i.context=e),i},n.prototype._safeEvent=function(t){var e,i=this.events;return i||(i=this.events={}),t&&(e=i[t],e||(e=[],i[t]=e),i=e),i},n.prototype._safeContext=function(){var t=this.contexts;return t||(t=this.contexts=[]),t},n.prototype._indexOfContext=function(t){for(var e=this._safeContext(),i=0;e[i];){if(t===e[i][0])return i;i+=1}return-1},n.prototype._memorizeContext=function(t){var e,i;o.isExisty(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1?e[i][1]+=1:e.push([t,1]))},n.prototype._forgetContext=function(t){var e,i;o.isExisty(t)&&(e=this._safeContext(),i=this._indexOfContext(t),i>-1&&(e[i][1]-=1,e[i][1]<=0&&e.splice(i,1)))},n.prototype._bindEvent=function(t,e,i){var n=this._safeEvent(t);this._memorizeContext(i),n.push(this._getHandlerItem(e,i))},n.prototype.on=function(t,e,i){var n=this;o.isString(t)?(t=t.split(s),r.forEach(t,function(t){n._bindEvent(t,e,i)})):o.isObject(t)&&(i=e,r.forEach(t,function(t,e){n.on(e,t,i)}))},n.prototype.once=function(t,e,i){function n(){e.apply(i,arguments),a.off(t,n,i)}var a=this;return o.isObject(t)?(i=e,void r.forEach(t,function(t,e){a.once(e,t,i)})):void this.on(t,n,i)},n.prototype._spliceMatches=function(t,e){var i,n=0;if(o.isArray(t))for(i=t.length;n0},n.prototype.getListenerLength=function(t){var e=this._safeEvent(t);return e.length},t.exports=n},function(t,e,i){"use strict";function n(t){t&&this.set.apply(this,arguments)}var r=i(4),o=i(2),a=function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}(),s=0;n.prototype.set=function(t){var e=this;o.isArray(t)||(t=r.toArray(arguments)),r.forEach(t,function(t){e._addItem(t)})},n.prototype.getName=function(t){var e,i=this;return r.forEach(this,function(n,r){if(i._isEnumItem(r)&&t===n)return e=r,!1}),e},n.prototype._addItem=function(t){var e;this.hasOwnProperty(t)||(e=this._makeEnumValue(),a?Object.defineProperty(this,t,{enumerable:!0,configurable:!1,writable:!1,value:e}):this[t]=e)},n.prototype._makeEnumValue=function(){var t;return t=s,s+=1,t},n.prototype._isEnumItem=function(t){return o.isNumber(this[t])},t.exports=n},function(t,e,i){"use strict";function n(t){this._map=new o(t),this.size=this._map.size}var r=i(4),o=i(19),a=["get","has","forEach","keys","values","entries"],s=["delete","clear"];r.forEachArray(a,function(t){n.prototype[t]=function(){return this._map[t].apply(this._map,arguments)}}),r.forEachArray(s,function(t){n.prototype[t]=function(){var e=this._map[t].apply(this._map,arguments);return this.size=this._map.size,e}}),n.prototype.set=function(){return this._map.set.apply(this._map,arguments),this.size=this._map.size,this},n.prototype.setObject=function(t){r.forEachOwnProperties(t,function(t,e){this.set(e,t)},this)},n.prototype.deleteByKeys=function(t){r.forEachArray(t,function(t){this["delete"](t)},this)},n.prototype.merge=function(t){t.forEach(function(t,e){this.set(e,t)},this)},n.prototype.filter=function(t){var e=new n;return this.forEach(function(i,n){t(i,n)&&e.set(n,i)}),e},t.exports=n},function(t,e,i){"use strict";function n(t,e){this._keys=t,this._valueGetter=e,this._length=this._keys.length,this._index=-1,this._done=!1}function r(t){this._valuesForString={},this._valuesForIndex={},this._keys=[],t&&this._setInitData(t),this.size=0}var o=i(4),a=i(2),s=i(3),u=i(10),l=i(5),c={},h={};n.prototype.next=function(){var t={};do this._index+=1;while(a.isUndefined(this._keys[this._index])&&this._index=this._length?t.done=!0:(t.done=!1,t.value=this._valueGetter(this._keys[this._index],this._index)),t},r.prototype._setInitData=function(t){if(!a.isArray(t))throw new Error("Only Array is supported.");o.forEachArray(t,function(t){this.set(t[0],t[1])},this)},r.prototype._isNaN=function(t){return"number"==typeof t&&t!==t},r.prototype._getKeyIndex=function(t){var e,i=-1;return a.isString(t)?(e=this._valuesForString[t],e&&(i=e.keyIndex)):i=s.inArray(t,this._keys),i},r.prototype._getOriginKey=function(t){var e=t;return t===c?e=void 0:t===h&&(e=NaN),e},r.prototype._getUniqueKey=function(t){var e=t;return a.isUndefined(t)?e=c:this._isNaN(t)&&(e=h),e},r.prototype._getValueObject=function(t,e){return a.isString(t)?this._valuesForString[t]:(a.isUndefined(e)&&(e=this._getKeyIndex(t)),e>=0?this._valuesForIndex[e]:void 0)},r.prototype._getOriginValue=function(t,e){return this._getValueObject(t,e).origin},r.prototype._getKeyValuePair=function(t,e){return[this._getOriginKey(t),this._getOriginValue(t,e)]},r.prototype._createValueObject=function(t,e){return{keyIndex:e,origin:t}},r.prototype.set=function(t,e){var i,n=this._getUniqueKey(t),r=this._getKeyIndex(n);return r<0&&(r=this._keys.push(n)-1,this.size+=1),i=this._createValueObject(e,r),a.isString(t)?this._valuesForString[t]=i:this._valuesForIndex[r]=i,this},r.prototype.get=function(t){var e=this._getUniqueKey(t),i=this._getValueObject(e);return i&&i.origin},r.prototype.keys=function(){return new n(this._keys,l.bind(this._getOriginKey,this))},r.prototype.values=function(){return new n(this._keys,l.bind(this._getOriginValue,this))},r.prototype.entries=function(){return new n(this._keys,l.bind(this._getKeyValuePair,this))},r.prototype.has=function(t){return!!this._getValueObject(t)},r.prototype["delete"]=function(t){var e;a.isString(t)?this._valuesForString[t]&&(e=this._valuesForString[t].keyIndex,delete this._valuesForString[t]):(e=this._getKeyIndex(t),e>=0&&delete this._valuesForIndex[e]),e>=0&&(delete this._keys[e],this.size-=1)},r.prototype.forEach=function(t,e){e=e||this,o.forEachArray(this._keys,function(i){a.isUndefined(i)||t.call(e,this._getValueObject(i).origin,i,this)},this)},r.prototype.clear=function(){r.call(this)},function(){window.Map&&(u.firefox&&u.version>=37||u.chrome&&u.version>=42)&&(r=window.Map)}(),t.exports=r},function(t,e,i){"use strict";function n(t){this.length=0,t&&this.setObject(t)}var r=i(4),o=i(2),a="å";n.prototype.set=function(t,e){2===arguments.length?this.setKeyValue(t,e):this.setObject(t)},n.prototype.setKeyValue=function(t,e){this.has(t)||(this.length+=1),this[this.encodeKey(t)]=e},n.prototype.setObject=function(t){var e=this;r.forEachOwnProperties(t,function(t,i){e.setKeyValue(i,t)})},n.prototype.merge=function(t){var e=this;t.each(function(t,i){e.setKeyValue(i,t)})},n.prototype.encodeKey=function(t){return a+t},n.prototype.decodeKey=function(t){var e=t.split(a);return e[e.length-1]},n.prototype.get=function(t){return this[this.encodeKey(t)]},n.prototype.has=function(t){return this.hasOwnProperty(this.encodeKey(t))},n.prototype.remove=function(t){return arguments.length>1&&(t=r.toArray(arguments)),o.isArray(t)?this.removeByKeyArray(t):this.removeByKey(t)},n.prototype.removeByKey=function(t){var e=this.has(t)?this.get(t):null;return null!==e&&(delete this[this.encodeKey(t)],this.length-=1),e},n.prototype.removeByKeyArray=function(t){var e=[],i=this;return r.forEach(t,function(t){e.push(i.removeByKey(t))}),e},n.prototype.removeAll=function(){var t=this;this.each(function(e,i){t.remove(i)})},n.prototype.each=function(t){var e,i=this;r.forEachOwnProperties(this,function(n,r){if(r.charAt(0)===a&&(e=t(n,i.decodeKey(r))),e===!1)return e})},n.prototype.keys=function(){var t=[],e=this;return this.each(function(i,n){t.push(e.decodeKey(n))}),t},n.prototype.find=function(t){var e=[];return this.each(function(i,n){t(i,n)&&e.push(i)}),e},n.prototype.toArray=function(){var t=[];return this.each(function(e){t.push(e)}),t},t.exports=n}])})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return d["default"].forEach(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,r=e.fontWeight,o=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),r&&(t.style.fontWeight=r),o&&(t.style.cssText+=o)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),r=this.sizeCache[n];if(!r){var o=this._createSizeCheckEl(),a=o.firstChild;a.innerHTML=t,this._addCssStyle(o,e),document.body.appendChild(o),r=a[i],document.body.removeChild(o),this.sizeCache[n]=r}return r},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=c["default"].create("DIV","tui-chart-size-check-element"),e=c["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var r=d["default"].map(t,function(t){return i(t,e)});n=f["default"].max(r)}return n},getRenderedLabelsMaxWidth:function(t,e){var i=d["default"].bind(this.getRenderedLabelWidth,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},getRenderedLabelsMaxHeight:function(t,e){var i=d["default"].bind(this.getRenderedLabelHeight,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,r=e.height,o=void 0===r?0:r;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",o,"px")].join(";")},renderPosition:function(t,e){d["default"].isUndefined(e)||d["default"].forEachArray(["top","bottom","left","right"],function(i){var n=e[i];d["default"].isNumber(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=x.makeFontCssText(e),r=c["default"].create("DIV",i);return r.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),r.style.cssText=n,r},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,o=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(r(i||[]));return d["default"].reduce(l,function(t,e){return e(t,u,a,o,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,r=i.areaType,o=i.valueType;return e&&e.length?d["default"].map(t,function(t){return x.formatValue({value:t,formatFunctions:e,chartType:n,areaType:r,valueType:o})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=d["default"].isDate(t)?t:new Date(t);return d["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return d["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-o,s=Math.min(a/t,1);e(s),1===s?(delete r.id,i&&i()):r.id=requestAnimationFrame(n)}var r={},o=(new Date).getTime();return r.id=requestAnimationFrame(n),r},isOldBrowser:function(){return y},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var c;s=t.split("").reverse(),u=s.length-1,s=d["default"].map(s,function(t,n){var r=[t];return n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?d["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=m?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=v+_;return _+=1,t}};y?(x.makeOpacityCssText=function(t){var e="";if(d["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},x.setOpacity=function(t,e){var i=a(e);o(t,function(t){t.style.filter=i})}):(x.makeOpacityCssText=function(t){var e="";return d["default"].isExisty(t)&&(e=";opacity:"+t),e},x.setOpacity=function(t,e){o(t,function(t){t.style.opacity=e})}),e["default"]=x},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,r=void 0;return r=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=o,n=t)})}else n=Math.max.apply(Math,r(t));return n}function s(t,e,i){var n=!1;return p["default"].forEach(t,function(r,o){return e.call(i,r,o,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return p["default"].forEach(t,function(r,o){return e.call(i,r,o,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var r=[];if(p["default"].isBoolean(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var o=void 0;p["default"].forEachArray(t,function(e,a){e=i.call(n,e,a,t),a&&o===e||r.push(e),o=e})}else p["default"].forEachArray(t,function(e,o){e=i.call(n,e,o,t),p["default"].inArray(e,r)===-1&&r.push(e)});return r}function c(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n0?1:-1,a=t.left,u=t.width,c=u/4,f="M"+(a+c)+","+t.top+"H"+(a+3*c),p=h["default"].oneLineTrim(s,a+2*c,t.top,t.top+Math.abs(r)*o),d=l["default"].renderLine(n,f,i,x),g=l["default"].renderLine(n,p,i,T),y=[];return d.attr({opacity:0}),g.attr({opacity:0}),y.push(d),y.push(g),y},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),r.push(a)}),r},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=l["default"].renderLine(this.paper,i,"#ffffff",b);return n.attr({opacity:0}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,r=[];return t.forEach(function(t,o){var a=[];t.forEach(function(t,r){var s=n?i[o]:i[r],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),r.push(a)}),r},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var r=this,o=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(o).forEach(function(t){var i=a(t,2),n=i[0],o=i[1];s[n]=l["default"].renderLine(r.paper,o,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var o=e.seriesDataModel.getSeriesItem(n,r);return e._renderBorderLines(t.start,i,e.chartType,o)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},y,">")},t.prototype.animate=function(t){var e=this,i=g["default"].animation({opacity:1},y);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(y))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},y))},t.prototype.showAnimation=function(t){p["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var r=i[e][n].end;t.bound=r,l["default"].updateRectBound(t.rect,r)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var r=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(r,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=g["default"].color(e.color),n=this.theme.selectionColor,r=l["default"].makeChangedLuminanceColor,o=n||r(i.hex,_),a=this.theme.borderColor;if(a){var s=g["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,_)}this._changeBoxColor(t,o,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=p["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,n,r){if(i){var o=e||t===r?m:v;i.rect.attr({"stroke-opacity":o})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,n,r){var o=e||t===r?m:v;i.attr({"stroke-opacity":o})}),l["default"].forEach2dArray(this.groupMedians,function(i,n,r){var o=e||t===r?m:v;i.attr({"stroke-opacity":o})})},t.prototype.renderSeriesLabel=function(t,e,i,n,r){var o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,r){var s=e[n][r],u=l["default"].renderText(t,s.end,i.end,o);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var c=l["default"].renderText(t,s.start,i.start,o);c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("filter","url(#glow)"),a.push(c)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),o=t.rect(e.left,e.top,i.width,i.height);return o.id=n+"_rect",r.id=n,r.appendChild(o.node),t.defs.appendChild(r),o}e.__esModule=!0;var a=i(332),s=n(a),u=i(335),l=n(u),c=i(333),h=n(c),f=i(334),p=n(f),d=h["default"].browser,g=d.msie&&d.version<=8,y=700,m=700,v=1,_=.3,x=20,b=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},m))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,r=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,r),this.paper.setSize(n,r)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=p["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=h["default"].isNull(t);this.groupBars.forEach(function(n,r){var o=i||t===r?v:_;e.groupBars[r].attr({"fill-opacity":o}),e.groupLabels[r].attr({opacity:o}),e.groupLabels[r].forEach(function(t){t.attr({opacity:o})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=this,o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=r._renderLabel(t,e[n][u],o,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var r=s["default"].renderText(t,e,n,i),o=r.node,a=o.style;return a.userSelect="none",a.cursor="default",o.setAttribute("filter","url(#glow)"),r},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],r=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var o=n[n.length-1],a=0;a<=r;a+=1)n.push(o);return n})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),f=n(h),p=1,d=.3,g=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=e.options,a=e.position,s=r.colors,u=o.showDot?1:0,l=o.spline,c=this.lineWidth=f["default"].isNumber(o.pointWidth)?o.pointWidth:this.lineWidth,h=this.makeBorderStyle(r.dot.strokeColor,u,r.dot.strokeWidth),p=this.makeOutDotStyle(u,h),d=void 0;return d=l?this._getSplineLinesPath(n,o.connectNulls):this._getLinesPath(n,o.connectNulls),this.paper=t,this.theme=r,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,d,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),o.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=s,this.borderStyle=h,this.outDotStyle=p,this.groupPositions=n,this.groupPaths=d,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,r){var o=i[r]||"transparent",a=c["default"].renderLine(t,e.join(" "),o,n);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){t.endDot&&e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=this,i=f["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,r){var o=t===r,a=i||o?p:d,s=e.groupDots[r];n.attr({"stroke-opacity":a}),o&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(o[0]="M"),o},t.prototype._getAnchor=function(t,e,i,n){var r=(e.left-t.left)/2,o=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],r=void 0,o=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var c=s(t,1),h=c[0],f=h;o=t.length,a=f,r=t[o-1],u=t.slice(1).slice(0,o-2),l=u.map(function(n,r){var o=t[r+2],s=i._getAnchor(a,n,o,e);return a=n,Math.abs(s.y1-h.top)>Math.abs(h.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-o.top)>Math.abs(o.top-n.top)&&(s.y2=n.top),h=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([r.left,r.top,r.left,r.top]),l.unshift(["M",f.left,f.top,"C",f.left,f.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),r=[];return n.forEach(function(t){r=r.concat(t)}),e.isBeConnected&&(r[0]=r[0].slice(3)),r},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&m["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,n){var r=this.theme&&this.theme.dot||{dot:{}},o=void 0;if(e){var a=t.circle(e.left,e.top,m["default"].isUndefined(r.radius)?b:r.radius),s={fill:r.fillColor||i,"fill-opacity":m["default"].isNumber(n)?n:r.fillOpacity,stroke:r.strokeColor||i,"stroke-opacity":m["default"].isNumber(n)?n:r.strokeOpacity,"stroke-width":r.strokeWidth};a.attr(s),o={dot:a,color:i}}return o},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,r){var o=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:o.renderDot(t,e,s,n)};if(o.hasRangeData){var a=m["default"].extend({},e);a.top=a.startTop,i.startDot=o.renderDot(t,a,s,n)}return r&&(r.push(i.endDot.dot),i.startDot&&r.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!m["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===S||n)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===w&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===S?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),r=this.groupLines?this.groupLines[e]:this.groupAreas[e],o=void 0,a=void 0;if(n){if("area"===this.chartType){var s=r;a=s.startLine,r=s.line,o=5,this._updateAreaOpacity(S)}else o=this.lineWidth;this._updateLineStrokeOpacity(S,r),this._updateLineStrokeWidth(r,o),a&&this._updateLineStrokeWidth(a,o),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=p["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=g["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],r=this.outDotStyle;n&&!m["default"].isUndefined(i)&&(r=m["default"].extend({r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]})),t.attr(r),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],r=this._findDotItem(n,e),o=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(r){if(o=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=o;s=l.startLine,o=l.line,this._updateAreaOpacity(w)}else a=this.lineWidth;u&&!m["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(w,o),this._updateLineStrokeWidth(o,a),s&&this._updateLineStrokeWidth(s,a),r&&(this._hideDot(r.endDot.dot,i,u),r.startDot&&this._hideDot(r.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!m["default"].isNull(this.selectedLegendIndex),n=this.dotOpacity,r=this._getPivotGroupDots();r&&r[t]&&r[t].forEach(function(t,r){var o=n;o&&i&&e.selectedLegendIndex!==r&&(o=E),t.endDot&&e._hideDot(t.endDot.dot,r,o),t.startDot&&e._hideDot(t.startDot.dot,r,o)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=m["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,r=this.position,o=this._getClipRectId(),s=this.clipRect;!_&&n&&(s?s.attr({width:0,height:n.height}):(s=a(i,r,n,o),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+o+")")}),s.animate({width:n.width},x,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,T);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=h["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(337),s=n(a),u={isBarChart:function(t){return t===o["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===o["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===o["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===o["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===o["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isPercentStack(e);return i&&n},isComboChart:function(t){return t===o["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===o["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===o["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===o["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===o["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===o["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===o["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(o["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===o["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===o["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===o["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===o["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===o["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===o["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===o["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===o["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===o["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===o["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&v["default"].print(_,"warn"):d["default"].isUndefined(t)||v["default"].print(_,"error"),e},e}(c["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),f=180,p=360,d=.01,g=Math.PI/f,y=700,m=1,v=.3,_=.2,x="overlay",b=20,T=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.paper=t;var r=o(e.options.radiusRange,1);return this.holeRatio=r[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,r){var o=n*g,a=r*g,s=t+i*Math.sin(o),u=e-i*Math.cos(o),l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=r-n>f?1:0,p=["M",t,e,"L",s,u,"A",i,i,0,h,1,l,c,"Z"];return{path:p}},t.prototype._makeDonutSectorPath=function(t,e,i,n,r,o){var a=n*g,s=r*g,u=o||i*this.holeRatio,l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=t+u*Math.sin(a),p=e-u*Math.cos(a),d=t+i*Math.sin(s),y=e-i*Math.cos(s),m=t+u*Math.sin(s),v=e-u*Math.cos(s),_=r-n>f?1:0,x=["M",l,c,"A",i,i,0,_,1,d,y,"L",m,v,"A",u,u,0,_,0,h,p,"Z"];return{path:x}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",x),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var r=this,o=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,c=e[u],h=r._renderSector({paper:r.paper,circleBound:o,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});h.node.setAttribute("class","auto-shape-rendering"),h.data("index",u),h.data("legendIndex",u+i),h.data("chartType",r.chartType),s.push({sector:h,color:c,angles:t.angles.end,ratio:l}),n.push(h)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],r=n.angles.startAngle,o=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,r,o,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=[i.cx,i.cy,i.r],r=0;this.sectorInfos.forEach(function(t){var i=t.angles,o={fill:t.color},a=y*t.ratio;0===i.startAngle&&i.endAngle===p&&(i.endAngle=p-d),o[e]=n.concat([i.startAngle,i.endAngle]);var s=h["default"].animation(o,a,">");t.sector.animate(s.delay(r)),r+=a}),t&&setTimeout(t,r)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=h["default"].color(e.color),n=s["default"].makeChangedLuminanceColor(i.hex,_),r=this.selectionColor||n;e.sector.attr({fill:r})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,n){var r=e||t===n?m:v;i.sector.attr({"fill-opacity":r})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,r){var o=void 0;t.colors&&(n.fill=t.colors[r]),i&&(o=s["default"].renderText(t.paper,i,t.labels[r],n),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(o),t.labelSet.push(o)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),f=n(h),p=1,d=.3,g=6,y=function(t){function e(){r(this,e);var i=o(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=g,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,r=e.theme,o=r.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,c=this._getLinesPath(n),h=this.makeBorderStyle(r.strokeColor,a,r.strokeWidth),f=this.makeOutDotStyle(a,h),p=t.set(),d=this.lineWidth=l?l:this.lineWidth,g=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=r,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,c,o,p)),this.groupLines=this._renderLines(t,c,o,d,p),this.groupDots=this._renderDots(t,g,o,a,p),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=r.selectionColor),this.colors=o,this.borderStyle=h,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=a,this.isShowArea=u,p},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,r){return e.map(function(e,o){var a=i[o]||"transparent",s=c["default"].renderLine(t,e.join(" "),a,n);return r.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var r=this;return e.map(function(e,o){var a=i[o]||"transparent",s=c["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":r.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,r){ +e._moveDot(t.endDot.dot,n[i][r])})})},e.prototype.selectLegend=function(t){var e=f["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var r=e||t===n?p:d;i.attr({"stroke-opacity":r})})},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(332),a=n(o),s=i(333),u=n(s),l=i(330),c=n(l),h=700,f=.8,p=1,d=.8,g=.3,y=.2,m=2,v=20,_=function(){function t(){r(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":p,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,r){return n.map(function(n,o){var s=null;if(n){var u=i[o],l=a["default"].renderCircle(e.paper,n,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",r),l.data("index",o),s={circle:l,color:u,bound:n}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:f},h,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,r){var o=n[i][r];t&&(t.bound=o,e._updatePosition(t.circle,o))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+m,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=g;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=d),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;u["default"].isUndefined(n);){var r=i.getElementByPoint(t.left,t.top);r?r.attrs.opacity>g?n=r:(e.push(r),r.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),r=[{},i,n,{left:t.left-v,top:t.top-v}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,r),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],r=c["default"].color(n.color),o=this.theme.selectionColor,s=o||a["default"].makeChangedLuminanceColor(r.hex,y);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,n,r){if(i){var o=e||t===r?d:g;i.circle.attr({opacity:o})}})},t}();e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(332),a=n(o),s=i(333),u=n(s),l=i(342),c=n(l),h=100,f=0,p=4,d=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?p:f},t.prototype._renderBoxes=function(t,e,i,n){var r=this,o=c["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(o&&!r.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);r._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,o){var a=null,s=t.depth,u=r.colorSpectrum?0:r._getStrokeWidth(s===e),l=r.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=o;var c=r._getBound(t);if(c){var h=r._getColor(t,e);a={rect:r._renderRect(c,h,u,l),seriesItem:t,color:h},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,r){var o=n.depth;o===e?n.fillOpacity=1:o===e+1?n.fillOpacity=.05*r:o")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var r=e._getBound(t.seriesItem,i,n);r&&a["default"].updateRectBound(t.rect,r)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,s){var u=a["default"].renderText(t,e[n][s].end,i,o);u.node.style.userSelect="none",u.node.style.cursor="default",r.push(u)})}),this.labelSet=r,r},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var r=t.set(),o={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var s=a["default"].renderText(t,e[n],i,o);s.node.style.userSelect="none",s.node.style.cursor="default",r.push(s)}}),this.labelSet=r,r},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){f["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=r(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(332),c=n(l),h=i(336),f=n(h),p=i(334),d=n(p),g=i(333),y=n(g),m=y["default"].browser,v=m.msie&&m.version<=8,_="gray",x=100,b="tui-chart-series-group",T="#eee",E=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),v||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,r=t.layout.position,o=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?o.getColor(u):T,f=c["default"].renderArea(n,l,{fill:h,opacity:1,stroke:_,"stroke-width":.2,"stroke-opacity":1,transform:d["default"].oneLineTrim(s,e,e,r.left/e,r.top/e)});return f.data("index",a),i.push(f),{sector:f,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!y["default"].isUndefined(i)&&this.sectors[i];return n&&!y["default"].isUndefined(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,x,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:_,"stroke-width":.2},x,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,r){var o=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=o.numberOfItems?o.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},c=r.width-this.dimension.width,h=r.height-this.dimension.height,f=l.e/l.a,p=l.f/l.d,d=-c/l.a,g=-h/l.d;u.scale(t,t,e.left*i-f*t,e.top*i-p*t);var y=u.e/u.a+f,m=u.f/u.d+p;y>=0?u.e=-f*u.a:y=0?u.f=-p*u.a:m=0&&r>0?e.e=0:o<0&&o<-n/i.a&&r<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,r=e.f/e.d,o=r+i.f/i.d;o>=0&&r>0?e.f=0:o<0&&o<-n/i.d&&r<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:d["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},r=t.set();return e.forEach(function(e){var i=e.position,o=c["default"].renderText(t,i,e.name||e.code,n);r.push(o),o.node.style.userSelect="none",o.node.style.cursor="default",o.node.setAttribute("filter","url(#glow)"),v||self.g.appendChild(o.node)}),r},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=r(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(335),l=n(u),c=i(332),h=n(c),f=i(337),p=n(f),d=i(334),g=n(d),y=i(351),m=n(y),v=i(333),_=n(v),x=.5,b=8,T=10,E=T/2,A=3,S=function(){function t(){o(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,r){var o=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,c=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,f=n.left+e._calculateSingleLegendWidth(a,o),p=f>=e.paper.width;e.isHorizontal&&p&&(n.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:c.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:o,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[r]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,r=this.paper.height,o=t;if(!this.isHorizontal&&n+2*i>r){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=r-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);o=t.slice((e-1)*u,e*u)}return o},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=_["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),S.click(function(){i._currentPageCounti&&(n=i),n+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return h["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,r={left:t.left,top:t.top+this._legendItemHeight/2},o={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?x:1,"text-anchor":"start"},a=h["default"].renderText(this.paper,r,e.labelText,o);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,r=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,o=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=g["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+r,a,a,o,o),l=this.paper.set(),c=this.paper.rect(n,r,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(c.node.setAttribute("class","auto-shape-rendering"),l.push(c),e.isChecked){var h=this.paper.path(u).attr({stroke:"#555","stroke-width":2});h.node.setAttribute("class","auto-shape-rendering"),l.push(h)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=h["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?x:1}):(n=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?x:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";_["default"].isNull(i)||_["default"].isUndefined(i)?e.attr(n,1):_["default"].isUndefined(i)||(_["default"].isNumber(t)&&i!==t?e.attr(n,x):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:p["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(333),o=n(r),a=i(337),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var r=(e-t)/20;return i.max=e+r+n,e/6>t?i.min=n:i.min=t-r+n,i},makeTickPixelPositions:function(t,e,i,n){var r=[];return i=i||0,e>0&&(r=o["default"].range(0,e).map(function(n){var r=0===n?0:n/(e-1);return r*t+i}),r[r.length-1]-=1),n&&r.push(n),r},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),r=Math.round(t.max*i),a=o["default"].range(n,r+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=o["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=o["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},c=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},h=function(){for(var t=arguments.length,e=Array(t),i=0;ic.dimension[e]+d},y=void 0;n.forEach(function(n){var s="M";n+=r,g(n)||(o?a?(s+=p+","+(f+n),s+="H"+(p+5),s+="M"+h+","+(f+n),s+="H"+(h-5)):u?(s+=p+","+(f+n),s+="H"+(p+5)):(s+=h+","+(f+n),s+="H"+(h-5)):(s+=p+n+","+f,s+="V"+(f+5)),isNaN(n)||(y=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(y),e.ticks.push(y)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,r=i.dimension,o=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),c=1-l/(u+l),h="M",f=n.top,p=s+r.width;if(a){var d=f;p+=t.seriesDimension.width*c,h+=p+","+d;var g=f+e;h+="V"+g}else{h+=s,f-=t.seriesDimension.height*c,h+=","+f+"H";var y=s+e;h+=y}t.set.push(o.path(h).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,r=n.position,o=r.top,a=r.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,c=t.additionalSize,h=t.isPositionRight,f=t.isCenter,p=t.isVertical,d=t.tickColor,g=t.seriesDimension,y=e,m=s.height+o,v=a+s.width,_="M",x=void 0,b=void 0;h?(_+=a+","+o,_+="V"+m):p?(x=o,u&&(v+=g.width/2),_+=v+","+x,f?(_+="V"+m,_+="M"+a+","+x,_+="V"+m):(b=o+y,_+="V"+b)):_=this._makeNormalTickPath(_,{isNotDividedXAxis:l,baseTop:o,baseLeft:a,additionalSize:c,isNegativeStandard:u,seriesDimension:g,lineSize:y}),t.set.push(i.path(_).attr({"stroke-width":1,stroke:d,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,r=e.theme,u=e.additionalWidth,l=e.otherSideDimension,c=e.areaSize,h=e.tickCount,p=e.layout,d=o(n,r),g=a(n,r),y=p.dimension.height,m=p.dimension.width,v=p.position.top,_=p.position.left+u,x=g/2-l.width,b={top:v+y-d/2,left:_+(x<0?0:x)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=_+m/2):i.isDiverging||(b.top=v-d/2-f):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=_+c/2:i.isDiverging&&!i.isYAxisCenter?b.left=_+m/2:i.isColumnType&&(b.left=_+m/(h-1)/2)),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(337),l=n(u),c=8,h=3,f=function(){function t(){r(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=o(e,1),n=o(i[0],1),r=n[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=I["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=O["default"].deepCopy(e),"combo"!==n){var r=e.series;e.series={},e.series[n]=r}i=i?O["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var o=C["default"].get(i.theme,n,e.series),a=S["default"].get(i.chartType,e,o,i);return a.render(t),a.animateChart(),a}function o(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function c(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_SCATTER)}function h(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function f(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function p(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_COMBO)}function d(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_PIE)}function g(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_MAP)}function y(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_RADIAL)}function m(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function v(t,e,i){return r(t,e,i,E["default"].CHART_TYPE_BULLET)}function _(t,e){C["default"].register(t,e)}function x(t,e){P["default"].register(t,e)}function b(t,e,i){D["default"].register(t,e),N["default"].addRendererType(t,i)}var T=i(335),E=n(T),A=i(358),S=n(A),w=i(360),D=n(w),M=i(361),C=n(M),L=i(363),P=n(L),k=i(364),O=n(k),R=i(365),I=n(R),B=i(366),N=n(B);i(367),i(368),i(473),t.exports={barChart:o,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:c,heatmapChart:h,treemapChart:f,comboChart:p,pieChart:d,mapChart:g,radialChart:y,boxplotChart:m,bulletChart:v,registerTheme:_,registerMap:x,registerPlugin:b}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(359),s=n(a),u=i(342),l=n(u),c={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[o["default"].CHART_TYPE_COLUMN]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[o["default"].CHART_TYPE_LINE]&&n[o["default"].CHART_TYPE_SCATTER]?i=o["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[o["default"].CHART_TYPE_AREA]&&n[o["default"].CHART_TYPE_LINE]?i=o["default"].CHART_TYPE_LINE_AREA_COMBO:n[o["default"].CHART_TYPE_PIE]&&(i=o["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var r=this._findKey(t,e),o=c[r];if(!o)throw new Error("Not exist "+t+" chart.");return new o(e,i,n)},register:function(t,e){c[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(337),c=n(l),h=i(333),f=n(h);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=c["default"].unique(i);e&&(n=n.slice(0,2));var r=n.filter(function(t){return!!t});return r.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var o=r(n,2),a=o[0],s=o[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];e[o]?e[o].length&&(i.series[o]=a.filter(function(t,i){return e[o][i]})):i.series[o]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a={};e["default"]={get:function(t,e){var i=a[t||o["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var r=new n;return r},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(362),c=n(l),h=i(333),f=n(h),p={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),p[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var o=r(n,2),a=o[0],s=o[1],u=t[a];(u||0===u)&&(f["default"].isArray(u)?e[a]=u.slice():f["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){f["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var r=this,o={};return e=e||{},t.forEach(function(t){var a=e[t]||r._pickValidTheme(e,n);f["default"].keys(a).length?(o[t]=JSON.parse(JSON.stringify(c["default"][n])),r._overwriteTheme(a,o[t])):o[t]=JSON.parse(JSON.stringify(i))}),o},_makeEachSeriesColors:function(t,e,i){for(var n=[],r=t.length,o=i||0,a=0;a=r&&(o=0);return n},_setSeriesColors:function(t,e,i,n){var r=this,o=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(o=i[t].colors,s=!0):(o=i.colors||c["default"].series.colors,s=!1),a=r._getSeriesThemeColorCount(n[t]),e[t].colors=r._makeEachSeriesColors(o,a,!s&&u),s||(u=(a+u)%o.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,n){var r=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(r=JSON.parse(JSON.stringify(c["default"])),this._overwriteTheme(e,r)):r=JSON.parse(JSON.stringify(e)),r.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,r.yAxis,"yAxis"),r.series=this._createComponentThemeWithSeriesName(i,e.series,r.series,"series"),this._setSeriesColors(i,r.series,e.series,n),r},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return f["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),f["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;f["default"].forEach(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i){var n=p[t];if(!n)throw new Error("Not exist "+t+" theme.");var r=this._pickSeriesNames(e,i),o=this._initTheme(t,n,r,i);return this._inheritThemeFont(o,r),this._copySeriesColorThemeToOther(o),o}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",r="lighter",o="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:o,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:o},title:{fontSize:18,fontFamily:o,color:i,fontWeight:r},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:o,color:"#888"}},series:{label:{fontSize:11,fontFamily:o,color:i,fontWeight:r},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:o,color:"#333",fontWeight:r}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(333),a=n(o),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=u(o)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function o(t){var e=[];if(t){var i=[],n=c["default"].toArray(t.getElementsByTagName("TR"));c["default"].forEach(n,function(t,e){var n=0===e?"TH":"TD",r=c["default"].toArray(t.getElementsByTagName(n)),o=c["default"].pluck(r,"innerText");i.push(o)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){w["default"].sendHostname("chart")},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){w["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=w["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;w["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=v["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||c["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return x["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){}, +t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=d["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,r=n.getLegendVisibility(),o=f["default"].filterCheckedRawData(n.rawData,r),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(o),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),y["default"].renderFontFamily(e,this.theme.chart.fontFamily),d["default"].append(t,e);var u=this.readyForRender();y["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:r},e),this.chartContainer=e,this.paper=s},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=f["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,n){var r=i[n],o=t[n];return e[n]=r.map(function(t,e){return t.visible=o[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._initializeRawData(t),i=this.dataProcessor,n=this.options,r=n.chartType,o=n.theme;i.initData(e,!0);var a=T["default"].get(o,r,e.series);this.theme=a,this.componentManager.presetForChangeData(a),this.protectedRerender(i.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){var e=v["default"].deepCopy(t),i=this.options,n=i.chartType,r=i.series;if("combo"!==n&&w["default"].isArray(e.series)){var o=e.series;e.series={},e.series[n]=o}return f["default"].updateRawSeriesDataByOptions(e,r),"boxplot"===n&&f["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var r=this.readyForRender(),o=r.dimensionMap.chart;y["default"].renderDimension(this.chartContainer,o),this.paper.resizeBackground(o.width,o.height),this.componentManager.render("resize",r,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,r=-1,o=0;o=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(336),l=n(u),c=i(372),h=n(c),f=i(373),p=n(f),d=i(374),g=n(d),y=i(375),m=n(y),v=i(377),_=n(v),x=i(366),b=n(x),T=i(383),E=n(T),A=i(385),S=n(A),w=i(386),D=n(w),M=i(387),C=n(M),L=i(393),P=n(L),k=i(395),O=n(k),R=i(396),I=n(R),B=i(400),N=n(B),F=i(407),G=n(F),H=i(411),V=n(H),j=i(412),z=n(j),W=i(414),Y=n(W),U=i(415),X=n(U),Z=i(416),K=n(Z),q=i(418),J=n(q),Q=i(419),$=n(Q),tt=i(420),et=n(tt),it=i(421),nt=n(it),rt=i(422),ot=n(rt),at=i(424),st=n(at),ut=i(425),lt=n(ut),ct=i(426),ht=n(ct),ft=i(333),pt=n(ft),dt={axis:h["default"],plot:p["default"],radialPlot:m["default"],legend:E["default"],spectrumLegend:S["default"],circleLegend:D["default"],tooltip:C["default"],groupTooltip:P["default"],mapChartTooltip:O["default"],mapChartEventDetector:I["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:z["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:nt["default"],treemapSeries:ot["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:ht["default"],chartExportMenu:_["default"],title:g["default"]},gt=function(){function t(e){r(this,t);var i=e.options.chart,n=pt["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,o=pt["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:n,height:o}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,n){return t=t||this.options[e],t=pt["default"].isArray(t)?t[n]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.index||0,r=dt[e],o=r.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(o,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,n),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=r(i);s&&(s.componentName=t,s.componentType=o,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,n=t.componentName,r=e._getOptionKey(i,n);t.presetForChangeData(e._makeTheme(r,n))}})},t.prototype._makeOptions=function(t,e,i){var n=this.options[t];return n||"rightYAxis"!==t||(n=this.options.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(n=n[t]||n,pt["default"].isArray(n)&&(n=n[i]||{}),!1)}),n},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,n,r){var o=Object.assign({paper:i},r);return n&&(Object.assign(o,n),o.layout={dimension:o.dimensionMap[t]||o.dimensionMap[e],position:o.positionMap[t]||o.positionMap[e]}),o},t.prototype.render=function(t,e,i,n){var r=this,o=this.components.map(function(o){var a=null;if(o[t]){var s=o.componentName,u=o.componentType,l=r.drawingToolPicker.getPaper(n,o.drawingType),c=r._makeDataForRendering(s,u,l,e,i),h=o[t](c);h&&!h.paper&&(a=h)}return a});n&&l["default"].append(n,o)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];return e[r]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,r=this.isYAxis&&this.data.aligned,o=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&o&&o.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},c=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),r||this._renderTickArea(t,e,n),a&&s&&!c&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,o)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,r=i.labels,o=Math.round(e/2),a=e-o-1,s=parseInt(n/2,10)+1,u=r.slice(0,s),l=r.slice(s-1,n),c=o/s,h=o+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=c,this._renderChildContainers(o,s,u,0),this._renderChildContainers(a+1,s,l,h)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,r=n.positionRatio,o=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;r&&(l=u*r),this._renderChildContainers(u,o,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,r=i.isCenter,o=t.width;this.isLabelAxis=e,n?(this.containerWidth=o+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),o=this.containerWidth):(o+=r?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,r=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=r[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,r=this.dataProcessor.getOption("yAxis"),o=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:o.diverging,isYAxisCenter:r&&"center"===r.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var r=this.theme.tickColor,o=this.data,a=o.remainLastBlockInterval,s=o.sizeRatio,u=void 0===s?1:s,l=o.tickCount,c=o.isPositionRight,f=a?t:0,p=this.isYAxis,d=this.data.options,g=d.isCenter,y=d.divided,m=h["default"].makeTickPixelPositions(t*u,e,0,f),v=this.paperAdditionalHeight+1,_=this.paperAdditionalWidth,x=f?l+1:l;m.length=x,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:m,isVertical:p,isCenter:g,isDivided:y,additionalSize:n,additionalWidth:_,additionalHeight:v,otherSideDimension:this._getOtherSideDimension(),isPositionRight:c,tickColor:r,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var r=this.data,o=r.sizeRatio,a=void 0===o?1:o,s=r.remainLastBlockInterval,u=s?t:0,l=h["default"].makeTickPixelPositions(t*a,e,0,u),c=l[1]-l[0];this._renderLabels(l,i,c,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,c=i/v,h=this.layout.position,f=h.top,p=h.left,d=f+_,g=p,y=this.options.labelMargin||0;t.forEach(function(t,h){var f=t+(n||0),p={};a?(p.top=f+l,p.left=i+y):(p.top=d+y,p.left=g+f+c),o.renderRotatedLabel({degree:u,labelText:e[h],paper:r.paper,positionTopAndLeft:p,set:r.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var r=this,o=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,c=this.layout,h=this.data.isPositionRight,f=this.theme.label,p=this.options,d=p.labelMargin,y=void 0===d?0:d,m=p.pointOnColumn,v=p.isCenter,_=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),x=_&&m,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var p=u+n,d=i/2,m=r._isOverLapXAxisLabel(e[l],u,t[l+1]),T={};p<0||!a&&b&&m||(T=a?r._getYAxisLabelPosition(c,{labelPosition:p,isCategoryLabel:s,halfLabelDistance:d,isPositionRight:h}):r._getXAxisLabelPosition(c,{labelMargin:y,labelHeight:g["default"].getRenderedLabelsMaxHeight(e,f),labelPosition:p,isCategoryLabel:s,isLineTypeChart:_,isPointOnColumn:x,halfLabelDistance:d}),T.top=Math.round(T.top),T.left=Math.round(T.left),o.renderLabel({isPositionRight:h,isVertical:a,isCenter:v,labelSize:i,labelText:e[l],paper:r.paper,positionTopAndLeft:T,set:r.axisSet,theme:f}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=g["default"].getRenderedLabelWidth(t);return!m["default"].isUndefined(i)&&i-e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;h["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return g["default"].extend({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return g["default"].extend({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,n=i.position.top,r=i.dimension.height,o="M"+t+","+n+"V"+(n+r),a=this.paper.path(o);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var n=this.layout,r=n.position,o=n.dimension,a=o.width-t+r.left,s=e<0?a:e,u=this.paper.rect(t,r.top,s,o.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return h["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var n=t.dataMin,r=t.distance,o=(i-n)/r,a=o*e;return 1===o&&(a-=1),a<0&&(a=null),a},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e){var i=this.dataProcessor,n=i.findCategoryIndex(e),r=null,o=void 0;return g["default"].isNull(n)||(o=0===n?0:n/(i.getCategoryCount()-1),r=o*t),1===o&&(r-=1),r},t.prototype._createOptionalLinePositionMap=function(t,e,i){var n=this.dataProcessor.getCategories(),r=this._createOptionalLineValueRange(t),o=void 0,a=void 0;return e.isLabelAxis?(o=this._createOptionalLinePositionWhenLabelAxis(i,r[0]),a=this._createOptionalLinePositionWhenLabelAxis(i,r[1])):(o=this._createOptionalLinePosition(e,i,r[0]),a=r[1]&&this._createOptionalLinePosition(e,i,r[1])),g["default"].isNull(o)&&(o=this._isBeforeVisibleCategories(r[0],n[0])?0:-1),g["default"].isNull(a)&&(a=this._isAfterVisibleCatgories(r[1],n[n.length-1])?i:-1),{start:o,end:a}},t.prototype._isBeforeVisibleCategories=function(t,e){var i=this.dataProcessor;if(!g["default"].isExisty(t))return!1;if(h["default"].isDatetimeType(this.xAxisTypeOption))return t=0&&ne;var n=i.findAbsoluteCategoryIndex(t),r=i.findAbsoluteCategoryIndex(e);return n>=0&&n>r},t.prototype._renderOptionalLine=function(t,e,i,n){var r=this._createOptionalLinePositionMap(n,t,e),o=void 0;return r.start>=0&&r.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,o=this._renderLine(r.start+this.layout.position.left,i)),o},t.prototype._makeOptionalBand=function(t,e,i,n){var r=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return r._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(o),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var o=t.start>=0&&t.start<=e,a=void 0;if(o&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=r._renderBand(t.start+r.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,r,i,o);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,r=this.axisDataMap.xAxis,o=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,r,i,o);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+r.dimension.height),n=e.paper.path(i);n.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),r=this.layout,o=this.theme.lineColor,a=r.position,s=a.left,u=a.top,l=n[1]-n[0];n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+r.dimension.width),a=e.paper.path(n);a.attr({stroke:o,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=p["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),r=t-n,o=p["default"].makeTickPixelPositions(n,e),a=p["default"].makeTickPixelPositions(r,e,n+i);return o.pop(),a.shift(),o.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=p["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,r){e._animateItemForAddingData(i,t,function(t){n[r].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,r){var o=t.getBBox();o.x-e.tickSize0&&f<180?"end":f>180&&f<360?"start":"middle",u.push({left:p.x,top:i-p.y,anchor:d})}return u}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(376),l=n(u),c=i(351),h=n(c),f=i(335),p=n(f),d=i(360),g=n(d),y=i(333),m=n(y),v=p["default"].COMPONENT_TYPE_RAPHAEL,_=p["default"].RADIAL_PLOT_PADDING,x=p["default"].RADIAL_MARGIN_FOR_CATEGORY,b=p["default"].RADIAL_CATEGORY_PADDING,T=function(){function t(e){r(this,t),this.className="tui-chart-plot-area",this.options=m["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=g["default"].get(v,"radialPlot"),this.drawingType=v}return t.prototype._renderPlotArea=function(t,e,i,n){var r={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(r)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,a=n.top,s=i.width,u=i.height;s=s-_-x,u=u-_-x;var l=h["default"].sum([s/2,_/2,x/2,r]),c=u/2-_/2-x/2-a,f=t.yAxis.tickCount,p=t.xAxis.labels.length;return o({width:s,height:u,centerX:l,centerY:c,angleStepCount:p,stepCount:f})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,r=n.left,o=n.top,s=i.width,u=i.height;s=s-_-b,u=u-_-b;var l=h["default"].sum([s/2,_/2,b/2,r]),c=u/2-_/2-b/2-o,f=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:c,angleStepCount:f})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,r=t.yAxis.labels,o=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";r=o+"~"+a}i.push(r)}return i}function l(t,e){for(var i=[],n=0;n",A["default"].forEach(t,function(t,r){var o=0!==i||0===r?' class="number"':"",a="<"+n+o+">"+t+"";e+=a}),e+=""}),e+=""}function d(t){var e=T["default"].oneLineTrim(y,p(t));return e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,r=e.itemDelimiter,o=void 0===r?",":r,a=t.length-1,s="";return A["default"].forEachArray(t,function(t,e){var i=t.length-1;A["default"].forEachArray(t,function(t,e){var n=A["default"].isNumber(t)?t:'"'+t+'"';s+=n,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),m=i(380),v=n(m),_=i(335),x=n(_),b=i(334),T=n(b),E=i(333),A=n(E),S={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},w={xls:d,csv:g},D=[].concat(o(x["default"].DATA_EXTENSIONS)),M={downloadData:function(t,e,i,n){var r=a(i),o=S[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=w[e](r,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=S[e]+s),v["default"].execDownload(t,e,s,o)},_isNeedDataEncodeing:function(){var t=A["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return D}};Object.assign(M,{_makeCsvBodyWithRawData:g,_makeXlsBodyWithRawData:d,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:c,_get2DArrayFromHeatmapRawData:f,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=h["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function o(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),r=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new l["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea(t.paper)},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var n=this,r=this.options.maxWidth,o=(p["default"].isBarTypeChart(this.chartType)||p["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint;return t.map(function(t,a){var s=n.options.showCheckbox===!1?null:{checked:n.legendModel.isCheckedIndex(a)},u=t.label;return r&&(u=g["default"].getEllipsisText(u,r,n.theme.label)),{checkbox:s,iconType:t.chartType||"rect",colorByPoint:o,index:a,theme:t.theme,label:u,labelHeight:e,labelWidth:i[a],isUnselected:n.legendModel.isUnselectedIndex(a)}})},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=p["default"].isHorizontalLegend(this.options.align),r=this.layout.position,o=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=o.length,l=Math.max(v,s),c=(_+l)*(n?1:u),h=r.top,f=r.left;return p["default"].isLegendAlignLeft(this.options.align)||(f+=x),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,o),isHorizontal:n,position:{left:f,top:h},dimension:{height:c,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:o,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(b+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=m["default"].isNull(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,n=t.chartType;this.eventBus.fire(b+"selectLegend",{legend:e,chartType:n,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),m["default"].isNull(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();m["default"].CustomEvents.mixin(T),o.componentType="legend",o.Legend=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;n=o?n.substr(0,4):String(r);var a=n+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function o(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,o=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return g["default"].isArray(t.colors)});return u.forEach(function(t){o=o.concat(t.colors)}),a="map"===e?h["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||p["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=r),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=o,a(t)}e.__esModule=!0,e["default"]=o;var a=i(388),s=n(a),u=i(393),l=n(u),c=i(395),h=n(c),f=i(342),p=n(f),d=i(333),g=n(d);o.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(390),h=n(c),f=i(335),p=n(f),d=i(342),g=n(d),y=i(391),m=n(y),v=i(333),_=n(v),x="#aaa",b=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(_["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=m["default"].tplDefault;return g["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):g["default"].isPieChart(this.chartType)||g["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=m["default"].tplPieChart:this.dataProcessor.coordinateType?e=m["default"].tplCoordinatetypeChart:g["default"].isBulletChart(this.chartType)?e=m["default"].tplBulletChartDefault:g["default"].isHeatmapChart(this.chartType)&&(e=m["default"].tplHeatmapChart), +e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=m["default"].tplBoxplotChartDefault;return _["default"].isNumber(t.outlierIndex)&&(e=m["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),r=this._findTooltipColor(t,e,n);return g["default"].isBoxplotChart(this.chartType)&&_["default"].isNumber(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(r=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.chartType=this.chartType,n.cssText="background-color: "+r,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return g["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},_["default"].pick(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=g["default"].isBarTypeChart(this.chartType),r=g["default"].isBoxplotChart(this.chartType),o=(n||r)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return g["default"].isBulletChart(this.chartType)?s=a:g["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),o?x:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=p["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var r=n.chartType,o=n.label,a=_["default"].extend({chartType:r,legend:o,legendIndex:i,index:t.groupIndex},e);return g["default"].isBoxplotChart(r)&&_["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,r=this.labelFormatter,o={legend:t,label:n||(i.label?i.label:""),category:e};return r&&(o=r(i,o,"")),o.category=e,_["default"].extend(o,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=g["default"].isTreemapChart(this.chartType),n={},r={};return _["default"].isArray(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,o){o=o||t.chartType;var a=g["default"].isBulletChart(o),s=e.map(function(e,r){var s=t.dataProcessor.makeTooltipCategory(i,r,t.isVertical),u=a?i:r;return e?t._makeTooltipDatum(n[o][u],s,e):null});r[o]||(r[o]=[]),r[o].push(s)},i),r},e}(l["default"]);h["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(333),a=n(o),s=i(330),u=n(s),l=i(364),c=n(l),h=i(335),f=n(h),p=i(336),d=n(p),g=i(342),y=n(g),m=i(334),v=n(m),_=function(){function t(e){r(this,t);var i=y["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=c["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?f["default"].TOOLTIP_PIE_ANIMATION_TIME:f["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=f["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=c["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?r-=o+a:e.indexOf("center")>-1&&o?r-=o/2:r+=a,r},_makeTopPositionOfNotBarChart:function(t,e,i,n){var r=t,o=i||0;return e.indexOf("bottom")>-1?r+=o+n:e.indexOf("middle")>-1&&o?r+=o/2:r-=o+s["default"].TOOLTIP_GAP,r},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,r=t.alignOption,o=void 0===r?"":r,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,c=e.left-this.layout.position.left+i.left,h=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(c,o,a,u),top:this._makeTopPositionOfNotBarChart(h,o,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},o["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=t.alignOption,a=void 0===o?"":o,s=r.height-(i.height||0),u=r.width,l=i.left+i.width+n.left-e.left,c=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(c,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,r=t.dimension,o=p["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-r.width)/2+n.left-e.left,top:i.top+i.height/2-o+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,r=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",r=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",r=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:r})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,r=e.positionType,o=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(o.groupIndex,o.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var c=e.dimension[n],h=i[n],f=t[r]+(h+c)*u;t[r]=f}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),r=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},c=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,r)||c!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,c),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,r),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,r),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(r,e.silent),h["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var f=this._makeTooltipPosition(o["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,f,i),this.eventBus.fire("hoverSeries",r,e.chartType),this._fireAfterShowTooltipPublicEvent(r,{element:t,position:f},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){h["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,r=this._getIndexesCustomAttribute(t),o=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(o)?(this.eventBus.fire("hoverOffSeries",r,o),this._fireBeforeHideTooltipPublicEvent(r,a),this._executeHidingTooltip(t)):o&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",r,o),this._isChangedIndexes(this.prevIndexes,r)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(r,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){o["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(392),o=n(r),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
',HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:o["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:o["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:o["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:o["default"].template(a.HTML_GROUP),tplGroupType:o["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:o["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:o["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:o["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:o["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:o["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:o["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:o["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),r=e[0],o=e[1],a=new RegExp("{{\\s*"+r+"\\s*}}","g");n=n.replace(a,String(o).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new L(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(394),h=n(c),f=i(335),p=n(f),d=i(336),g=n(d),y=i(334),m=n(y),v=i(362),_=n(v),x=i(391),b=n(x),T=i(333),E=n(T),A=i(342),S=n(A),w=p["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,D=p["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,M=p["default"].SERIES_EXPAND_SIZE,C=p["default"].PUBLIC_EVENT_PREFIX,L=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevIndex=null,n.isBullet=S["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var r=b["default"].tplGroupItem,o=b["default"].tplGroupCssText,a=S["default"].isBarTypeChart(this.chartType),s=S["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,n),c=void 0,h=e.map(function(t,e){var i=t.type,n="data"!==i&&c!==i,a="";return c=i,t.value?(n&&(a=b["default"].tplGroupType({type:i})),a+=r(E["default"].extend({cssText:o({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:h})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=w:this.options.align=D)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new h["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var r=e.originalTheme[n].colors;r.forEach(function(e,r){var o=t[n]||t;o[r]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var r=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:r}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),r=void 0,o=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=_["default"].series.colors.slice(0,n.length);return E["default"].pluck(n,"chartType").map(function(e){o!==e&&(r=t[e]?t[e].colors:a,i=0),o=e;var n=r[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,r=this.suffix;return t.map(function(t,o){var a={value:t.label,type:t.type,suffix:r,legend:""},s=void 0;return i.isBullet?s=n.getLegendItem(e):(s=n.getLegendItem(o),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=g["default"].create("DIV","tui-chart-group-tooltip-sector");g["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start,top:M}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:M,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,r){var o=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(m["default"].renderDimension(o,s.dimension),m["default"].renderPosition(o,s.position),g["default"].addClass(o,"show")),r&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();g["default"].hasClass(e,"show")?g["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),g["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),r=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,r,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:r},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(C+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(C+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),g["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(C+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=function(){function t(e,i,n,o){r(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=o,this.positions={},this._setData(e,i,n,o)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var r=this._makeVerticalData(t,e,n.align),o=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=r,this.subData=o):(this.mainData=o,this.subData=r),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,r=9,o=5,s=n?r:o,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var r=void 0;return t<-n.areaPosition&&(r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(r,i,n)>0?-n.areaPosition:r),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var r=this._makePositionValueDiff(t,i,n);if(r>0){var o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});o<-n.areaPosition?t-=r:t=o}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,r=this.subData,o=this.positions[i];return o||(o={},o[n.positionType]=this._makeMainPositionValue(t,e,n),o[r.positionType]=this._makeSubPositionValue(t,r),this.positions[i]=o),o},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); +return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new v(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(389),h=n(c),f=i(390),p=n(f),d=i(391),g=n(d),y=i(333),m=n(y),v=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return g["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=m["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(h["default"]);p["default"].mixin(v),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),f=i(382),p=n(f),d=i(336),g=n(d),y=i(334),m=n(y),v=i(333),_=n(v),x=function(t){function e(i){r(this,e);var n=o(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=h["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){m["default"].renderDimension(t,this.layout.dimension),m["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,g["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||g["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*h["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),_["default"].browser.firefox?p["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):p["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(398),a=n(o),s=i(399),u=n(s),l=i(335),c=n(l),h=i(382),f=n(h),p=i(342),d=n(p),g=i(336),y=n(g),m=i(334),v=n(m),_=i(333),x=n(_),b=function(){function t(e){if(r(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=d["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?c["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=d["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=c["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=v["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),r=n.dimension,o=n.position;v["default"].renderDimension(t,r),v["default"].renderPosition(t,o)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return y["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),y["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=v["default"].getStyle(this.mouseEventDetectorContainer).height,v["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),r=n.left,o=n.right,a=n.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!x["default"].isUndefined(i)||i){var h=o-u,f=r+u;t=Math.min(Math.max(t,f),h)}return l.x=t-r+s.left-c["default"].CHART_PADDING,x["default"].isUndefined(e)||(l.y=e-a+s.top-c["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=v["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=d["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){y["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),y["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){f["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();x["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(342),a=n(o),s=i(337),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n,o,s){r(this,t),this.isLineType=a["default"].isLineTypeChart(n,s),this.data=this._makeData(e,i,o)}return t.prototype._getRanges=function(t,e,i){var n=e,r=i/2;return c["default"].range(0,t).map(function(){var t={min:n-r,max:n+r};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),r=this._getRanges(e,i||0,n);return r[e-1].max-=1,r},t.prototype._makeNormalData=function(t,e,i){var n=e-1,r=t/n,o=i||0;return c["default"].range(0,n).map(function(){var e=u["default"].min([t+o,r+o]),i={min:o,max:e};return o=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",r=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[r]):this._makeNormalData(t.dimension[n],e,t.position[r])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],n=void 0,r=void 0;return this.isLineType?(r=parseInt(i.max-(i.max-i.min)/2,10),n={start:r,end:r}):n={start:i.min-(e||0),end:i.max-(e||0)},n},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,o=t.top<=n&&t.bottom>=n;return r&&o},t.prototype.findData=function(t,e,i){var n=1e4,r=null;if(t>-1&&this.data[t]){var o=this._findCandidates(this.data[t],e,i);o.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,r=t.sendData)})}return r},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return p["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,r=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return r&&(e=i.sendData),!r}),e},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,r=e.series,o=r.zoomable,s=r.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?f["default"]:a["default"].isMapChart(n)?y["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?d["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?c["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=o,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=r;var o=i(342),a=n(o),s=i(401),u=n(s),l=i(404),c=n(l),h=i(405),f=n(h),p=i(406),d=n(p),g=i(396),y=n(g);r.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(402),h=n(c),f=i(403),p=n(f),d=i(333),g=n(d),y=50,m=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(g["default"].extend(n,h["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new p["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,y,n)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(397),o=n(r),a=i(335),s=n(a),u=i(336),l=n(u),c=i(334),h=n(c),f=i(382),p=n(f),d=i(333),g=n(d);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){h["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=o["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,o["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),p["default"].on(document,"mousemove",this._onDrag,this),p["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),p["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),p["default"].off(document,"mousemove",this._onDrag,this),p["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),p["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,n=Math.abs(e-this.startLayerX),r=this.dragSelectionElement;r.style.left=i+"px",r.style.width=n+"px",l["default"].addClass(r,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(g["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),n=i[1]-i[0];return 0===n?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===n&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),r=n[1]-n[0];this.prevDistanceOfRange!==r&&(this.prevDistanceOfRange=r,this.reverseMove=i,this.eventBus.fire("zoom",n))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),g["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):o["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,r(a)),this.lastGroupIndex=o,(i=[]).concat.apply(i,r(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var n={},r=1e5,o=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+n||ea+r},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!g["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(h["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),f=i(342),p=n(f),d=i(336),g=n(d),y=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=g["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN),g["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{ +"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new v(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),f=i(335),p=n(f),d=i(342),g=n(d),y=p["default"].OVERLAPPING_WIDTH,m=p["default"].TEXT_PADDING,v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:r,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+y),e},e.prototype._makeBarChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=n.ratioDistance,f=n.value,p=n.startRatio,d=n.stack,g=o*h,y=this._calculateAdditionalLeft(f),m=o*p,v=a+m+y,_=d!==e.prevStack,x=s*u>l,b=x?c:s,T=void 0;if(!i||!this.options.diverging&&_){var E=i?this.dataProcessor.findStackIndex(d):r;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}f>=0?(T=v+e.plusLeft,e.plusLeft+=g):(e.minusLeft-=g,T=v+e.minusLeft),e.prevStack=d;var A=e.top+c-s/2;return x||(A+=(c-s)/2*(u-1)),this._makeBound(g,s,A,v,T)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout,r=n.dimension,o=r.width,a=r.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,o);return e.map(function(e,n){var r=n*u.groupSize+s,o={baseTop:r,top:r,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,o,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+m)/2},e}(l["default"]);h["default"].mixin(v),s.componentType="series",s.BarChartSeries=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(333),a=n(o),s=i(335),u=n(s),l=i(336),c=n(l),h=i(342),f=n(h),p=i(334),d=n(p),g=i(360),y=n(g),m=i(332),v=n(m),_=600,x=a["default"].browser,b=x.msie&&7===x.version,T=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,A=u["default"].CLASS_NAME_SERIES_LABEL,S=function(){function t(e){r(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=y["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=T,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,r=e.labelSuffix,o=void 0===r?"":r,s=d["default"].addPrefixSuffix,u=d["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(d["default"]);return l(t,n,o)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),f["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=d["default"].isOldBrowser()?1:0;d["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,r=n-i,o=0,a=0;return i<=0&&n>=0?(o=(r+i)/r*t,a=(r-n)/r*t):i>0&&(o=t),{toMax:o,toMin:a}},t.prototype._findLabelElement=function(t){return c["default"].hasClass(t,A)?t:c["default"].findParentByClass(t,A)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&v["default"].animateOpacity(this.labelSet,0,1,_)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),r=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,o=this._getSeriesDataModel().getSeriesItem(r,e.index),s=void 0;return a["default"].isExisty(o)&&(s={chartType:n.chartType,legend:n.label,legendIndex:i},s.index=o.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&c["default"].hasClass(this.seriesLabelContainer,"show")&&(c["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&c["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(c["default"].removeClass(this.seriesLabelContainer,"show"),c["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=S},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=i(410),u=n(s),l=i(342),c=n(l),h=i(351),f=n(h),p=i(334),d=n(p),g=i(332),y=n(g),m=i(333),v=n(m),_=a["default"].CHART_PADDING,x=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,T=function(){function t(){r(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var h=r/(l+1),f=this.options.barWidth||this.options.pointWidth,p=h*b,d=a+s;p=this._getBarWidthOptionSize(h,f)||p,c["default"].isColumnChart(this.chartType)&&(d=e-d),c["default"].isBoxplotChart(this.chartType)&&a&&(d-=2*a),u={baseBarSize:e,groupSize:r,barSize:p,pointInterval:h,basePosition:d,itemCount:l,firstAdditionalPosition:h}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),r=this.seriesData.groupBounds,o=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,r=t.endLabel,o={end:e.decorateLabel(r)};return v["default"].isExisty(i)&&(o.start=e.decorateLabel(n)),o})}),l=void 0;return l=c["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,r,o):u["default"].boundsToLabelPositionsForColumnChart(n,r,o),i.renderSeriesLabel(t,l,s,o,a)},t.prototype._makeSumValues=function(t){return d["default"].formatValue({value:f["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,r=t.height;return{left:i+n/2,top:e+r/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var r=t.bounds[n],o=void 0;return r&&i&&(o=e._makeStackedLabelPosition(r.end)),{end:o}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,r=c["default"].isNormalStack(this.options.stackType);return t.map(function(t){var o=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(r){e.push(f["default"].sumPlusValues(t.pluck("value")));var a=f["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return o})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],r=this.theme.label,o=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,o),u=this.getGroupLabels(a,i,n),l=!0,h=c["default"].isNormalStack(this.options.stackType),f=c["default"].isBarChart(this.chartType),p=f?"width":"height",g=f?"left":"top",m=f?1:-1;return h&&(u.forEach(function(t,r){var o=i[r],a=n[r];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(d["default"].formatToComma(o))}),n.length&&t.push({end:e.decorateLabel(d["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=o[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,c=e._makeStackedLabelPosition(u),h=e._makeStackedLabelPosition(l),f=i[a],d=n[a],v=y["default"].getRenderedTextSize(f,r.fontSize,r.fontFamily),_=y["default"].getRenderedTextSize(d,r.fontSize,r.fontFamily),b=(u[p]+v[p])/2,T=(l[p]+_[p])/2;c[g]+=(b+x)*m,h[g]-=(T+x)*m,t.push({end:c}),n.length&&t.push({end:h})})),this.graphRenderer.renderSeriesLabel(t,s,u,r,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();T.mixin=function(t){Object.assign(t.prototype,T.prototype)},e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a),u=o["default"].MAX_HEIGHT_WORD,l=o["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,r){var o=t.value,a=o>=0,s={end:r(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=o<0,s.start=r(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,r){var o=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),r=!!r,t.map(function(t,r){var s=e[r];return t.map(function(t,e){var r=s[e].end;return o._makePositionMap(t,r,a,i,n)})},r)},_makePositionForBarChart:function(t,e,i,n,r){var o=s["default"].getRenderedLabelWidth(i,n),a=t.left;return r?a+=t.width+l:a-=o+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,r){var o=t.top;return r?o-=e+l:o+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:o}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],r=void 0;return n&&(r=i._makePositionForBoundType(n)),r});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new v(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),f=i(335),p=n(f),d=i(342),g=n(d),y=i(334),m=n(y),v=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,r){return{start:{top:n,left:i,width:t,height:0},end:{top:r,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,r){var o=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=Math.abs(o*n.ratioDistance),f=o*n.startRatio,d=a+f+p["default"].SERIES_EXPAND_SIZE,g=n.stack!==e.prevStack,y=s*u>l,m=y?c:s,v=void 0,_=void 0;if(!i||!this.options.diverging&&g){var x=i?this.dataProcessor.findStackIndex(n.stack):r;e.left=e.baseLeft+m*x,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=h,v=d+e.plusTop):(v=d+e.minusTop,e.minusTop+=h),e.prevStack=n.stack,_=y?e.left+c-s/2:e.left+c-s/2+(c-s)/2*(u-1),this._makeBound(s,h,_,d,v)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+p["default"].TEXT_PADDING)/2},e}(l["default"]);h["default"].mixin(v),s.componentType="series",s.ColumnChartSeries=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),f=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(f),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(337),a=n(o),s=i(335),u=n(s),l=i(342),c=n(l),h=i(351),f=n(h),p=i(334),d=n(p),g=i(333),y=n(g),m=u["default"].SERIES_EXPAND_SIZE,v=u["default"].SERIES_LABEL_PADDING,_=u["default"].MAX_HEIGHT_WORD,x=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){r(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,r=this._getSeriesDataModel(),o=t||n||0,a=r.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=o/(a>1?a-1:a):(l=o/a,u+=l/2),r.map(function(t){return t.map(function(t,e){var n=void 0;return y["default"].isNull(t.end)||(n={left:u+l*e,top:s+i-t.ratio*i},y["default"].isExisty(t.startRatio)&&(n.startTop=s+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,r=this.axisDataMap.xAxis,o=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return r.sizeRatio&&(l=f["default"].multiply(s,r.positionRatio),s=f["default"].multiply(s,r.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return y["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:o+n-t.ratioMap.y*n},y["default"].isExisty(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var r=t.top,o=void 0;return o=c["default"].isValidStackOption(this.options.stackType)?(t.startTop+r-i)/2+1:e>=0&&!n||e<0&&n?r-i-v:r+v},t.prototype._makeLabelPosition=function(t,e,i,n,r){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,r)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=a["default"].pivot(this.seriesData.groupPositions),r=d["default"].getRenderedLabelHeight(_,e);return t.map(function(t,e){return t.map(function(t,o){var a=n[e][o],s=i._makeLabelPosition(a,r,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,r,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,r=t.startLabel,o={end:e.decorateLabel(i)};return n&&(o.start=e.decorateLabel(r)),o})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,y["default"].bind(this._renderGraph,this)),this.animateComponent(!0),y["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=x,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=d["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+m},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,r=this.dimensionMap.extendedSeries,o=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(r,s);o&&(a+=e);var l=this._makePositions(a),c=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,o,c)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){y["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(335),h=n(c),f=i(351),p=n(f),d=i(376),g=n(d),y=i(333),m=n(y),v=h["default"].COMPONENT_TYPE_RAPHAEL,_=h["default"].RADIAL_PLOT_PADDING,x=h["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),f=i(342),p=n(f),d=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a=0&&!r&&(r=e),r},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,r=this._makePositionTopOfZeroPoint(),o=[];return t.map(function(t){return t.map(function(t,e){var a=o[e]||r,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),o[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return p["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,r=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:r,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return r&&r.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(d),s.componentType="series",s.AreaChartSeries=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1, +writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new y(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(408),h=n(c),f=i(417),p=n(f),d=i(333),g=n(d),y=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:r},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o,r)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,r=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:r,indexes:i}),this.prevClickedIndexes=null),e){var o=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&o&&(this.onSelectSeries({chartType:r,indexes:e},o),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(417),h=n(c),f=i(335),p=n(f),d=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a0&&(t%=x),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=ei?x-(e-i):x},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,r=t.cy,o=u(this.options.radiusRange,1),a=o[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),c=this.options.startAngle,h=.5*n;if(a&&(h+=h*a),!l)return null;var f=l.map(function(t){var o=t?t.ratio:0,a=s*o,u=c+a,l=c+a/2,f={start:{startAngle:c,endAngle:c},end:{startAngle:c,endAngle:u}},p={cx:i,cy:r,angle:l};return c=u,{ratio:o,angles:f,centerPosition:e._getArcPosition(y["default"].extend({r:h},p)),outerPosition:e._getArcPosition(y["default"].extend({r:n+e.legendLongestWidth/2+b},p))}});return f},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/T,10)+1;return e&&t%T===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===C,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?E:A,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.top,s=o.left,u=t/2,l=n/2+s,c=r/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,c+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,c-=u):this._isInQuadrantRange(2,3)?c-=u:this._isInQuadrantRange(3,3)?(l+=u,c-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?c+=u:this._isInQuadrantRange(4,4)&&(l+=u,c+=u)),{cx:l,cy:c}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*S),top:t.cy-t.r*Math.cos(t.angle*S)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),r={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},o=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),o.additionalIndex=l,this.graphRenderer.render(i,o,r)},e.prototype.showTooltip=function(t,e,i,n,r){this.eventBus.fire("showTooltip",y["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:r},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return v["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,r=n.showLegend,o=n.showLabel,a=v["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=v["default"].getRenderedTextSize(this.valueLabels[0],w,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&r&&o&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=y["default"].extend({},e.middle);i.left-1&&r!==i;n&&!o||(this.onSelectSeries({chartType:this.chartType,indexes:{index:r,legendIndex:e.legendIndex}},o),n&&r>-1&&(this.prevClickedIndex=r))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(c["default"]);s.componentType="series",s.PieChartSeries=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new f(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(410),h=n(c),f=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var r=this.layout,o=r.dimension.height,a=r.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+o-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,r=i.height,o=n/this.dataProcessor.getCategoryCount(!1),a=r/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(o,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),r=n.ratio,o=n.label;this.eventBus.fire("showWedge",r,o)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,o=this.selectedLegendIndex,a=h["default"].boundsToLabelPositions(i,n,r),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,r,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,r=this._getSeriesDataModel(),o=_["default"].extend({},this.layout.dimension,this.layout.position),a=r.findSeriesItemsByParent(t);return i=i||o,e=_["default"].extend(e||{},h["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],r=null;return i&&n(e)&&(r={end:i}),r},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var r=t.findParentByDepth(i.id,e.depth+1);r&&r.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),r=this.theme.label,o=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=o?o(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=p["default"].boundsToLabelPostionsForTreemap(a,n,r);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){m["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(351),o=n(r),a=i(337),s=n(a),u=i(333),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/o["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale(l["default"].pluck(t,"value"),e,i),r=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return r},_worst:function(t,e,i,n){var r=t*t,o=n*n;return Math.max(o*i/r,r/(o*e))},_changedStackDirection:function(t,e,i,n){var r=s["default"].min(e),o=s["default"].max(e),a=this._worst(t,r,o,i),u=this._worst(t+n,Math.min(r,n),Math.max(o,n),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,d=h+e.plusTop):(d=h+e.minusTop,e.minusTop+=l);var g=e.left+o-a/2,y=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+f,left:g+a/2}});return{start:{top:h,left:g,width:a,height:0},end:{top:d,left:g,width:a,height:l},min:{top:s*(1-n.minRatio)+f,left:g,width:a,height:0},max:{top:s*(1-n.maxRatio)+f,left:g,width:a,height:0},median:{top:s*(1-n.medianRatio)+f,left:g,width:a,height:0},outliers:y}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,r=n.width,o=n.height,a=this._makeBaseDataForMakingBound(r,o);return e.map(function(e,n){var r=n*a.groupSize+t.layout.position.left,o={baseLeft:r,left:r,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,o,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,r=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-r+_)/2},e}(l["default"]);h["default"].mixin(x),s.componentType="series",s.BoxplotChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function"); +}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new T(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(334),h=n(c),f=i(335),p=n(f),d=p["default"].BULLET_TYPE_ACTUAL,g=p["default"].BULLET_ACTUAL_HEIGHT_RATIO,y=p["default"].BULLET_TYPE_RANGE,m=p["default"].BULLET_RANGES_HEIGHT_RATIO,v=p["default"].BULLET_TYPE_MARKER,_=p["default"].BULLET_MARKERS_HEIGHT_RATIO,x=p["default"].BULLET_MARKER_DETECT_PADDING,b=p["default"].MAX_HEIGHT_WORD,T=function(t){function e(i){r(this,e);var n=o(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var r=t._makeBulletChartBound.bind(t,i,n),o=e.map(r);return t._updateIterationData(n,i.itemWidth),o})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,r=i.height,o=e.position,a=o.left,s=o.top,u=void 0,l=void 0;this.isVertical?(s+=r,u=n,l=r):(u=r,l=n);var c=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:c}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,r=void 0;return n===d?r=this._makeBarBound(i,g,t,e):n===y?r=this._makeBarBound(i,m,t,e):n===v&&(r=this._makeLineBound(i,_,t,e)),r.type=n,r},e.prototype._makeBarBound=function(t,e,i,n){var r=t.ratioDistance,o=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*r,u=i.valueAxisWidth*o,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,r){return{top:t.top-r,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,r){return{top:t.top+(e.itemWidth-i)/2,left:t.left+r-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var r=i.itemWidth,o=i.valueAxisWidth,a=r*e,s=o*t.endRatio,u=x,l=x,c=void 0,h=void 0;return this.isVertical?(c=n.top-s,h=n.left+(r-a)/2,l=a):(c=n.top+(r-a)/2,h=n.left+s,u=a),{top:c,left:h,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),r=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,r,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==y&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,r=h["default"].getRenderedLabelHeight(b,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==y&&e.push(i._makePositionByBound(t,r))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,r={};if(this.isVertical){var o=t.width||t.length;r.top=i-e,r.left=n+o/2}else{var a=t.width||0,s=t.height||t.length;r.top=i+s/2,r.left=n+5+(a||0)}return r},e}(l["default"]);s.componentType="series",s.BulletChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return new D(t)}e.__esModule=!0,e["default"]=o;var a=i(333),s=n(a),u=i(427),l=n(u),c=i(335),h=n(c),f=i(336),p=n(f),d=i(351),g=n(d),y=i(334),m=n(y),v=i(382),_=n(v),x=i(342),b=n(x),T=h["default"].COMPONENT_TYPE_DOM,E=h["default"].MAP_CHART_ZOOM_AREA_HEIGHT,A=h["default"].MAP_CHART_ZOOM_AREA_WIDTH,S=h["default"].CHART_PADDING,w=s["default"].browser.msie&&s["default"].browser.version<=8,D=function(){function t(e){r(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&b["default"].isMapChart(i[0]),o=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(o.align),s=o.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=T,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!w){var i=g["default"].sum([t.positionMap.series.top,-E,A]);this.isMapLegendTop&&(i=t.positionMap.legend.top-A);var n={top:i,right:S};e=p["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,m["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return p["default"].hasClass(t,e)||(i=p["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),r=this._calculateMagn(n);return r>5?this.magn=5:r<1?this.magn=1:r>=1&&this._zoom(r),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){_["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();o.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(392),o=n(r),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:o["default"].template(a.HTML_SERIES_LABEL),tplCssText:o["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:o["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:o["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=k["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return A["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return R["default"].encodeHTMLEntity(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,n=e+"Axis",r=this.options[n]||{},o=!1;return o=R["default"].isArray(r)?r.filter(function(t){return t.type&&w["default"].isDatetimeType(t.type)}):r.type&&w["default"].isDatetimeType(r.type),t=o?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=o,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return R["default"].isArray(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),R["default"].isExisty(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),r=null;return i.forEach(function(i,o){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(r=o),R["default"].isNull(r)}),r},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var r=e===t;return r&&(i=n),!r}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",r=this.options[n]||{},o=this.options.tooltip||{};return w["default"].isDatetimeType(o.type)?i=M["default"].formatDate(i,o.dateFormat):w["default"].isDatetimeType(r.type)&&(i=M["default"].formatDate(i,r.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,r=this._getTooltipCategory(t,n),o=this.getCategoryCount(!n);return o&&(r+=", "+this._getTooltipCategory(o-e-1,!n)),r},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=A["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return R["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!R["default"].isExisty(t)){var e=this.chartType;t=w["default"].isCoordinateTypeChart(e),t=t||w["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||w["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=w["default"].isBoxplotChart(this.chartType)?y["default"]:w["default"].isTreemapChart(this.chartType)?x["default"]:w["default"].isBulletChart(this.chartType)?v["default"]:d["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,r){n._pushValue(t,e[r],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&R["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),r=n[0],o=n[1];e._pushValues(o,t[r],r)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],r=i[1];t._shiftValues(r,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new T["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return I(e.min)&&I(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return I(e.min)||I(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,r=this.options,o=r.plot,a=r[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),c=this.isLimitOptionsInsufficient(i),h=w["default"].isLineChart(t)||w["default"].isAreaChart(t)||w["default"].isLineAreaComboChart(t,this.seriesTypes),f=this.defaultValues;if(w["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&c)if(!l&&c&&(f=f.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),h&&o){var p=this.getValuesFromPlotOptions(o,s);n=n.concat(p)}}else n=f;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?R["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return R["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&(Object.entries(e).forEach(function(t){var e=u(t,2),r=e[0],o=e[1];i[r]=o.map(n)}),i=R["default"].filter(i,R["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],o=void 0;R["default"].isArray(e)?(o=[this.chartType],o[this.chartType]=e):(n=this.seriesTypes,o=e);var a=n.map(function(t){return o[t].map(function(e,n){var r=R["default"].isArray(i[t]);return{chartType:t,label:e,visible:r?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,r(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){w["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=L["default"].sumPlusValues(t),n=L["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,r){var o=void 0;return w["default"].isComboChart(this.chartType)&&e?(o=this.getValues(this.chartType,n),w["default"].isNormalStackChart(t,i)&&(o=o.concat(this._createBaseValuesForNormalStackedChart(t)))):o=w["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):w["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,r),o},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),r=function(t){return t.r/n>c["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,r),maxItem:i.findMaxSeriesItem(e,r)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(f["default"]);e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(337),a=n(o),s=i(334),u=n(s),l=i(351),c=n(l),h=i(333),f=n(h),p=function(){function t(){r(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),r=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),r=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:r,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=c["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[f["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[f["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=f["default"].pick(this.options,"chart","format"),e=[];return f["default"].isFunction(t)?e=[t]:f["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=y["default"].sumPlusValues(t),i=Math.abs(y["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=y["default"].sumPlusValues(e),n=Math.abs(y["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=d["default"].allowMinusPointRender(this.chartType),i=0;return!e&&d["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=d["default"].isAllowedStackOption(this.chartType);i&&d["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&d["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=y["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,r=e?v["default"].max(this.getValues("r")):0,o=void 0,a=void 0,s=void 0,u=void 0;i&&(o=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",o,a),t.addRatio("y",s,u),t.addRatio("r",r,0),x["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){ +i.push(t(e,n))},e),i},t}();e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(351),s=n(a),u=i(333),l=n(u),c=function(){function t(e){r(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=s["default"].sum(r.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(334),l=n(u),c=i(351),h=n(c),f=i(342),p=n(f),d=i(333),g=n(d),y=function(){function t(e){r(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,p["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),n="makingSeriesLabel",r=i.length>1,a=o(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),g["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:n,legendName:this.legendName}),this.endLabel=this.label,r&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return g["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){g["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=h["default"].calculateRatio(this.value,t,e,i),g["default"].isExisty(this.start)&&(this.startRatio=h["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return g["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(342),s=n(a),u=i(334),l=n(u),c=i(333),h=n(c),f=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(h["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var n=o(t,4);this.r=n[2];var r=n[3];this.label=void 0===r?"":r}else{var a=o(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=h["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var c=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+c}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!h["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return h["default"].isNumber(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return h["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(435),u=n(s),l=i(430),c=n(l),h=i(333),f=n(h),p=Array.prototype.concat,d=function(t){function e(i,n,a,s){r(this,e);var u=o(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=f["default"].isArray(i)?i:[].concat(i.data),r=n.map(function(n,r){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:r,legendName:i.name})});return r})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=p.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(c["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(334),s=n(a),u=i(351),l=n(u),c=i(333),h=n(c),f=function(){function t(e){r(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),r=o(n,5),a=r[0],u=r[1],l=r[2],c=r[3],h=r[4],f=n.length>5,p=void 0,d=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=c,this.median=l,this.lq=u,this.min=a,this.index=e,f&&(this.outliers=[],p=this.outliers,n.slice(5).forEach(function(t){p.push({value:t,label:d(t)})})),this.label=d(h),this.uqLabel=d(c),this.medianLabel=d(l),this.lqLabel=d(u),this.minLabel=d(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return h["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){h["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(r){r.ratio=n(r.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return h["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(432),u=n(s),l=i(430),c=n(l),h=i(335),f=n(h),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,r=this.rawSeriesData.map(function(r){var o=[],a=r.data,s=r.markers,l=r.ranges,c=s.length,h=l.length;return l&&h&&(l.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:f["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,h)),a&&o.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:f["default"].BULLET_TYPE_ACTUAL})),s&&c&&(s.forEach(function(i){o.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:f["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,c)),o});return this.maxMarkerCount=n,this.maxRangeCount=i,r},e.prototype._createSeriesGroupsFromRawData=function(){return c["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(c["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(430),l=n(u),c=i(438),h=n(c),f=i(335),p=n(f),d=i(351),g=n(d),y=i(333),m=n(y),v=function(t){function e(){r(this,e);for(var i=arguments.length,n=Array(i),a=0;a1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!m["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(p["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(p["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(p["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(351),a=n(o),s=i(334),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n){r(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),r=n,o={legend:this.label||"",value:n,label:r,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return c["default"].isExisty(i)&&(o.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),o.colorRatio=this.colorRatio),o},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return c["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(440),o=n(r),a=i(446),s=n(a),u=i(335),l=n(u),c=i(342),h=n(c);e["default"]={_createBoundsModel:function(t,e){return new o["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,r){var o=t.get(n),a=null,s=[];if(o){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:o.options,theme:o.theme,yAxisLabels:s,isVertical:r})}},_setLayoutBoundsAndScale:function(t,e,i,n,r){var o=r.options,a=r.scaleOption,s=void 0===a?{}:a,u=r.addingDataMode,c=r.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,r.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:r.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var f=n.scaleDataMap;f.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(f.legend.limit),this._registerYAxisDimension(e,i,f,"yAxis",c),this._registerYAxisDimension(e,i,f,"rightYAxis",c),s.xAxis&&n.addScale("xAxis",o.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),r.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&o.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(h["default"].isAutoTickInterval(o.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(r.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),r=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,r,i);var o={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:r.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return r.axisDataMap&&(o.axisDataMap=r.axisDataMap),h["default"].isBubbleChart(i.chartType)&&(o.maxRadius=n.calculateMaxRadius(r.axisDataMap)),r.scaleDataMap.legend&&(o.legendScaleData=r.scaleDataMap.legend),o}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(335),a=n(o),s=i(342),u=n(s),l=i(334),c=n(l),h=i(332),f=n(h),p=i(441),d=n(p),g=i(442),y=n(g),m=i(443),v=n(m),_=i(444),x=n(_),b=i(445),T=n(b),E=i(333),A=n(E),S=A["default"].browser,w=a["default"].LEGEND_AREA_H_PADDING,D=S.msie&&S.version<=8,M=function(){function t(e){r(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=A["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=A["default"].isExisty(t.title),i=this.theme.title,n=e?f["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,r=n||0;r&&(r+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:r})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:y["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=A["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,r=v["default"].calculate(e,i,t,n);this._registerDimension("legend",r)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,r=this.options.legend.align,o=void 0;if(u["default"].isHorizontalLegend(r)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(r);o=T["default"]._makeHorizontalDimension(e,n,a,s)}else o=T["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",o),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,r=t.yAxisLabels,o=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,c=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&o)return;l=this.dataProcessor.getCategories(!0)}c=A["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:y["default"].calculateYAxisWidth(l,c,n,r,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=c["default"].getRenderedLabelHeight(t,this.theme.title));var n=x["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!D&&(n-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+w),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=c["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),x["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),r=this.theme.chart.fontFamily,o=d["default"].calculateCircleLegendWidth(e,t,n,r),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,o=Math.min(o,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=o-s;this._registerDimension("circleLegend",{width:o,height:o}),l>0&&this._updateLegendAndSeriesWidth(o,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,r=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+r-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,r=0,o=void 0,s=void 0;return u["default"].isHorizontalLegend(n.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,r=u["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(n.align)?s=this.chartLeftPadding:(o=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width, +s=this.chartLeftPadding+o+e.width),r=i+a["default"].SERIES_AREA_V_PADDING),{top:r,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),r=this.getDimension("legend"),o=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-r.width)/2,o=u["default"].isLegendAlignTop(e)?i.top-r.height:i.top+n.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),o=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var c={top:o,left:s};return l&&(c.right=l),c},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,r=void 0,o=void 0;return r=u["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,u["default"].isVerticalLegend(n.align)&&n.visible&&(o=this.getDimension("legend").width+a["default"].CHART_PADDING,r+=(o-i.width)/2),{top:t.top+e.height-i.height,left:r}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),r=u["default"].isLegendAlignTop(e)&&i,o=u["default"].isLegendAlignLeft(e)&&i,s=r?n.height:0,l=o?n.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),f=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=c["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),p=Math.max(0,Math.max(s,f)-a["default"].TITLE_PADDING),d=h+p;h||(d=Math.max(s,f));var g={top:d+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=g,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=c["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,n=c["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return d["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:o["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var r=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*r,a)+o["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),r=t.circleLegend.width;return i?Math.min((r-o["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a),u=i(334),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,r=n?n+o["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(o["default"].MAX_HEIGHT_WORD,e.label),u=r+o["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,r){var a=e.labelMargin,u=e.prefix,c=e.suffix,h=e.isCenter,f=e.type,p=e.dateFormat,d=e.showLabel,g=e.title,y=0,m=0,v=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,c),n=l["default"].addPrefixSuffix(n,u,c),h&&(v+=o["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(f)&&(t=l["default"].formatDates(t,p),n=l["default"].formatDates(n,p)),a&&a>0&&(v+=a),t=n.length?n:t,d!==!1&&(m=l["default"].getRenderedLabelsMaxWidth(t,i.label)),g&&(y=l["default"].getRenderedLabelWidth(g.text,i.title)),v+=(r?Math.max(m,y):m)+o["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a),u=i(351),l=n(u),c=i(334),h=n(c),f=i(337),p=n(f),d=o["default"].LEGEND_CHECKBOX_SIZE,g=o["default"].LEGEND_ICON_WIDTH,y=o["default"].LEGEND_LABEL_LEFT_PADDING,m=o["default"].LEGEND_V_LABEL_RIGHT_PADDING,v=o["default"].LEGEND_H_LABEL_RIGHT_PADDING,_=o["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,n){var r=l["default"].sum([_,i,g,y]),o=l["default"].sum(t.map(function(t){var i=h["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=r,i+v}));return o=o-v+_},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),n=[],r=[];return t.forEach(function(t){r.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return h["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(o["default"].LEGEND_CHECKBOX_SIZE,i),o["default"].LINE_MARGIN_TOP]),r=n*t.length-o["default"].LINE_MARGIN_TOP+o["default"].SERIES_AREA_V_PADDING;return r},_makeHorizontalDimension:function(t,e,i,n,r){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,r),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+o["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,o["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var r=h["default"].getRenderedLabelsMaxWidth(e,t),o=0;return n&&r>n&&(r=n),o=l["default"].sum([2*_,i,g,y,r,m]),{width:o,height:0}},calculate:function(t,e,i,n){var r=t.showCheckbox===!1?0:d+y,o=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,r,o):this._makeVerticalDimension(e,i,r,o):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(342),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,r=t.yAxis,a=t.rightYAxis,u=t.legend,l=r.width+a.width,c=u,h=0,f=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(h=c?c.width:0),h||a.width||!i||(f=i/2),n-2*o["default"].CHART_PADDING-l-h-f},calculateHeight:function(t,e,i){var n=t.chart.height,r=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-o["default"].TITLE_PADDING),c=r+l,h=s["default"].isLegendAlignBottom(e.align)?a:0,f=t.xAxis.height+h;return n-2*o["default"].CHART_PADDING-c-f}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=i(335),o=n(r),a=i(334),s=n(a),u=i(351),l=n(u),c=o["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,h=o["default"].MAP_LEGEND_WEDGE_SIZE,f=o["default"].MAP_LEGEND_AREA_PADDING_WIDE,p=o["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,d=o["default"].MAP_LEGEND_GRAPH_SIZE,g=o["default"].MAP_LEGEND_LABEL_PADDING,y=o["default"].VERTICAL_MAP_LEGEND_HEIGHT,m=o["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,v=o["default"].MAP_LEGEND_AREA_PADDING_NARROW,_=o["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),r=s["default"].getRenderedLabelWidth(e,i),o=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*c,o,h]);return{width:l["default"].sum([f,a,p,d,g,Math.max(n,r)]),height:y}},_makeHorizontalDimension:function(t,e,i,n){var r=s["default"].getRenderedLabelHeight(t,e),o=l["default"].sum([2*m,r,h]),a=i?v:f,u=n?f:0;return{width:_,height:l["default"].sum([a,o,p,d,g,r,g,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=i(447),a=n(o),s=i(449),u=n(s),l=i(450),c=n(l),h=i(342),f=n(h),p=i(334),d=n(p),g=i(333),y=n(g),m=function(){function t(e){r(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var r=t.chartType,o="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(r,n.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(o),l=Object.assign(e,{isVertical:o,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return f["default"].isBubbleChart(r)&&(l.overflowItem=this.dataProcessor.findOverflowItem(r,t.valueType)),(f["default"].isMapChart(r)||f["default"].isHeatmapChart(r)||f["default"].isTreemapChart(r))&&(l.useSpectrumLegend=!0),a["default"].makeScaleData(s,u,r,l)},t.prototype._createScaleLabels=function(t,e,i,n){var r=this.dataProcessor.getFormatFunctions(),o=Object.assign(i,{dateFormat:n});return u["default"].createFormattedLabels(t,e,o,r)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,r=e.chartType||this.chartType;e.chartType=r,n=n[r]||n;var o={stackType:i.stackType||n.stackType,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,o,t,i);return y["default"].extend(a,{labels:this._createScaleLabels(a,e,o,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,r){var o=this.dataProcessor.hasCategories(),a=!n&&!o&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,f=c["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!r});if(a){var p=this.dataProcessor.getValues(this.chartType,"x"),d=c["default"].makeAdditionalDataForCoordinateLineType(s,p,u,l,h);y["default"].extend(f,d)}return f},t.prototype._createLabelAxisData=function(t,e,i,n,r){var o=t.categories||this.dataProcessor.getCategories(n);return c["default"].makeLabelAxisData({labels:o,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!r,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,r){var o=f["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,o,n,r):this._createLabelAxisData(e,i,o,n,r)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=y["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],r={};return r.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),r.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(r.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),r.rightYAxis.aligned||(r.rightYAxis.aligned=r.yAxis.aligned)),r},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,r=this.axisDataMap.xAxis,o=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?c["default"].updateLabelAxisDataForAutoTickInterval(r,o,a,e):c["default"].updateLabelAxisDataForStackingDynamicData(r,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=r.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,r=this.theme.xAxis.label,o=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=d["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=y["default"].filter(s,function(t){return!!t});o=y["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(o+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?c["default"].makeAdditionalDataForMultilineLabels(s,o,r,n,i):c["default"].makeAdditionalDataForRotatedLabels(u,o,r,n,i),this.prevValidLabelCount=o,y["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,r={};return n.xAxis&&(r.xAxis=n.xAxis.limit),n.yAxis&&(r.yAxis=n.yAxis.limit),n.rightYAxis&&(r.rightYAxis=n.rightYAxis.limit),n.legend&&(r.legend=n.legend.limit),t.forEach(function(t,n){r[t]=i._findLimit(r,n,e)}),r},t}();e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){r=!0,o=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=i(335),a=n(o),s=i(342),u=n(s),l=i(351),c=n(l),h=i(337),f=n(h),p=i(448),d=n(p),g=i(333),y=n(g),m={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,r=t.max;return i.min&&(n=c["default"].subtract(n,e)),i.max&&(r=c["default"].add(r,e)),{min:n,max:r}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,r=this.millisecondMap,o=n.length-1,s=void 0;return i?n.every(function(t,a){var u=r[t],l=Math.floor(i/u),c=void 0;return l&&(c=a0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),r=n.dataLimit;i&&(r=this._makeLimitForDivergingOption(r));var o=(0,d["default"])({min:r.min,max:r.max,offsetSize:e,minimumStepSize:1});return o=this._restoreScaleToDatetimeType(o,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===c["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===c["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,r=e.useSpectrumLegend,o=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),c=y["default"].isExisty(n.min),h=y["default"].isExisty(n.max),f=l.min,p=l.max,g=void 0,m=t.options.stepCount;c&&(f=n.min,m=null),h&&(p=n.max,m=null);var v=(0,d["default"])({min:f,max:p,stepCount:m,offsetSize:o});return r||(g=this._isOverflowed(a,v,l,c,h)),g&&!u["default"].isMapTypeChart(s)&&(v.limit=this._adjustLimitForOverflow(v.limit,v.step,g)),t.isDiverging&&(v.limit=this._makeLimitForDivergingOption(v.limit)),v},_isOverflowed:function(t,e,i,n,r){var o=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=o||!n&&s.min===i.min&&0!==s.min,l=a||!r&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var r=void 0,o=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stackType)?r=this._calculatePercentStackedScale(t,o):u["default"].isDatetimeType(n.type)?r=this._calculateDatetimeScale(t,e,o):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),r=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:o,chartType:i,options:n})),r}};e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function o(t){for(var e=void 0,i=0,n=d.length;i1?1:1/o,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(r(t),r(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),r=Math.abs(n.max-n.min),o=u(r,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:o}}function c(t,e,i,n,r){var o=Math.abs(e-t),a=o/i;n||(n=Math.ceil(i/g));var s=i/n,u=a*s;return p["default"].isNumber(r)&&ui.labelInterval&&(r=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(r=d["default"].formatDates(r,i.dateFormat)),t.aligned||(n+=1),{labels:r,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,r=t.step,o=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:r,options:o,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,r){var o=y["default"].min(e),a=y["default"].max(e),s=a-o,u=0,l=1;return s&&(i.mina&&(i.max-=n,l-=(a-i.max)/s,r-=1,t.pop())),{labels:t,tickCount:r,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:r,dataMin:o}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,r=parseInt(e/i,10),o=null,a=parseInt(t/r,10);return a>1&&(n=t-a*r,n>=a&&(r+=parseInt(n/a,0),n%=a),o={blockCount:r,beforeRemainBlockCount:n,interval:a}),o},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],r=f["default"].divisors(t);if(r.forEach(function(i){var r=i/t*e;r>=_&&r<=x&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var o=v["default"].range(_,x,b);n=o.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=y["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var r=t.tickCount-1,o=this._calculateAdjustingIntervalInfo(r,e);if(o){t.eventTickCount=t.tickCount;var a=o.blockCount,s=o.beforeRemainBlockCount,u=o.interval,l=a+1,c=0,h=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,c,u),s>0&&t.labels.push(h),v["default"].extend(t,{startIndex:c,tickCount:l,interval:u,positionRatio:c/r,sizeRatio:1-s/r,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,r=e.startIndex,o=t.tickCount-1,a=i?i-1:0,s=o/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,r,n),s=t.labels.length-1;var u=o-n*s;v["default"].extend(t,{startIndex:r,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:r/o,sizeRatio:1-u/o})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(/\s+/),o=[],a=r(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=d["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(o.push(s),s=t):s+=" "+t}),s&&o.push(s),o.join("
")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return d["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,r){var o=r.series.width,a=this._calculateXAxisLabelAreaWidth(n,o,e),s=this._createMultilineLabels(t,i,o),u=this._calculateMultilineHeight(s,i,a),l=d["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-r.yAxis.width}},_findRotationDegree:function(t,e,i){var n=null;return a["default"].DEGREE_CANDIDATES.every(function(r){var o=c["default"].calculateRotatedWidth(r,e,i);return n=r,!(o<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var r=d["default"].getRenderedLabelWidth(e,n),o=c["default"].calculateRotatedWidth(t,r,i);return o-=c["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,r){var o=d["default"].getRenderedLabelsMaxWidth(t,i),s=r.series.width,u=r.yAxis.width+r.rightYAxis?r.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(n,s,e),h=null,f=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),r=n[0],o=n[1];if(o.stackType){var a=e.findChartType(r);p["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=o.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},r=void 0;r=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var r=n[i]||n,o=r.stackType;e.dataProcessor.addDataRatios(t[i],o,i)},_["default"].forEachArray(i,r)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=h["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(_["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:f["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=o(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},f["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(464),c=n(l),h=i(335),f=n(h),p=function(t){function e(i,n,a){r(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=f["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],r=i(t.coordinate,n);return c["default"].extend(n,r),r})},t.prototype._findBoundFromCoordinates=function(t){var e=c["default"].pluck(t,"x").filter(function(t){return!c["default"].isUndefined(t)}),i=c["default"].pluck(t,"y").filter(function(t){return!c["default"].isUndefined(t)}),n=u["default"].max(e),r=u["default"].min(e),o=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:n-r,height:o-a},position:{left:r,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),r=e.dataProcessor.getValueMapDatum(t.code),o=void 0,a=void 0,s=void 0,u=void 0;r&&(s=r.label,u=r.ratio,o=r.name||t.name,a=r.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:o,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),r=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(r)-u["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(429),u=n(s),l=i(334),c=n(l),h=i(333),f=n(h),p=function(t){function e(i,n,a){r(this,e);var s=o(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:c["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return f["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(412),c=n(l),h=function(t){function e(i,n,a){r(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=c["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){r(this,e),c["default"].appendOutliersToSeriesData(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,r=i[n]||i,o=r.stackType;this.dataProcessor.addDataRatios(t[n],o,n)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){r(this,e),c["default"]._makeRawSeriesDataForBulletChart(i);var s=o(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var r=i(335),o=n(r),a=i(361),s=n(a),u=i(362),l=n(u);s["default"].register(o["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file diff --git a/dist/tui-chart-polyfill.js b/dist/tui-chart-polyfill.js index b24330a71..a2f0f5d37 100644 --- a/dist/tui-chart-polyfill.js +++ b/dist/tui-chart-polyfill.js @@ -2,10 +2,10 @@ * tui-chart-polyfill * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:09 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:18 GMT+0900 (KST)" */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') @@ -11548,6 +11548,7 @@ return /******/ (function(modules) { // webpackBootstrap beforeShowTooltip: true, afterShowTooltip: true, beforeHideTooltip: true, + changeCheckedLegends: true, zoom: true }, /** for radial */ @@ -16837,6 +16838,7 @@ return /******/ (function(modules) { // webpackBootstrap * RaphaelLineCharts is graph renderer for line chart. * @constructs RaphaelRadialLineSeries * @extends RaphaelLineTypeBase + * @ignore */ function RaphaelRadialLineSeries() { _classCallCheck(this, RaphaelRadialLineSeries); @@ -24218,6 +24220,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -24295,6 +24298,10 @@ return /******/ (function(modules) { // webpackBootstrap var _boundsAndScaleBuilder2 = _interopRequireDefault(_boundsAndScaleBuilder); + var _themeManager = __webpack_require__(361); + + var _themeManager2 = _interopRequireDefault(_themeManager); + var _predicate = __webpack_require__(342); var _predicate2 = _interopRequireDefault(_predicate); @@ -24329,6 +24336,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * theme * @type {object} + * @ignore */ this.theme = params.theme; @@ -24351,42 +24359,49 @@ return /******/ (function(modules) { // webpackBootstrap /** * whether chart has axes or not * @type {boolean} + * @ignore */ this.hasAxes = params.hasAxes; /** * whether vertical or not * @type {boolean} + * @ignore */ this.isVertical = !!params.isVertical; /** * data processor * @type {DataProcessor} + * @ignore */ this.dataProcessor = this._createDataProcessor(params); /** * event bus for transmitting message * @type {object} + * @ignore */ this.eventBus = new _tuiCodeSnippet2['default'].CustomEvents(); /** * previous xAxis data * @type {null|object} + * @ignore */ this.prevXAxisData = null; /** * component manager * @type {ComponentManager} + * @ignore */ this.componentManager = this._createComponentManager(); /** * Whether has right y axis or not. * @type {boolean} + * @ignore */ this.hasRightYAxis = _tuiCodeSnippet2['default'].isArray(this.options.yAxis) && this.options.yAxis.length > 1; @@ -24406,17 +24421,7 @@ return /******/ (function(modules) { // webpackBootstrap ChartBase.prototype._sendHostName = function _sendHostName() { - var _location = location, - hostname = _location.hostname; - - _tuiCodeSnippet2['default'].imagePing('https://www.google-analytics.com/collect', { - v: 1, - t: 'event', - tid: 'UA-115377265-9', - cid: hostname, - dp: hostname, - dh: 'chart' - }); + _tuiCodeSnippet2['default'].sendHostname('chart'); }; /** @@ -24593,6 +24598,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components. * @abstract + * @ignore */ @@ -24601,6 +24607,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Get scale option. * @abstract + * @ignore */ @@ -24667,6 +24674,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add data ratios. * @abstract + * @ignore */ @@ -24676,6 +24684,7 @@ return /******/ (function(modules) { // webpackBootstrap * Make chart ready for render, it should be invoked before render, rerender, resize and zoom. * @param {?boolean} addingDataMode - whether adding data mode or not * @returns {object} Bounds and scale data + * @ignore */ @@ -24694,6 +24703,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Render chart. * @param {HTMLElement} wrapper chart wrapper element + * @ignore */ @@ -24720,19 +24730,19 @@ return /******/ (function(modules) { // webpackBootstrap componentManager.render('render', boundsAndScale, { checkedLegends: seriesVisibilityMap }, container); - this.chartContainer = container; this.paper = raphaelPaper; }; /** - * Rerender. - * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * protectedRerender + * @param {{line: Array., column: Array.}} checkedLegends checked legends * @param {?object} rawData rawData + * @ignore */ - ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + ChartBase.prototype.protectedRerender = function protectedRerender(checkedLegends, rawData) { var dataProcessor = this.dataProcessor; @@ -24747,20 +24757,125 @@ return /******/ (function(modules) { // webpackBootstrap this.componentManager.render('rerender', boundsAndScale, { checkedLegends: checkedLegends }, this.chartContainer); }; + /** + * rerender + * @param {{column: Array., line: Array.}} checkedLegends data that whether series has checked or not + * @param {object} rawData rawData + * @api + * @deprecated + */ + + + ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + checkedLegends = checkedLegends || this.getCheckedLegend(); + rawData = rawData || this.dataProcessor.getOriginalRawData(); + + var seriesData = rawData.series; + + rawData.series = Object.keys(seriesData).reduce(function (result, item) { + var series = seriesData[item]; + var checkedInfo = checkedLegends[item]; + + result[item] = series.map(function (seriesItem, index) { + seriesItem.visible = checkedInfo[index]; + + return seriesItem; + }); + + return result; + }, {}); + + this.setData(rawData); + }; + + /** + * setData + * @param {object} rawData rawData + * @api + */ + + + ChartBase.prototype.setData = function setData() { + var rawData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + var data = this._initializeRawData(rawData); + var dataProcessor = this.dataProcessor; + var _options = this.options, + chartType = _options.chartType, + themeOptions = _options.theme; + + + dataProcessor.initData(data, true); + + var theme = _themeManager2['default'].get(themeOptions, chartType, data.series); + + this.theme = theme; + this.componentManager.presetForChangeData(theme); + this.protectedRerender(dataProcessor.getLegendVisibility()); + }; + + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @api + */ + + + ChartBase.prototype.getCheckedLegend = function getCheckedLegend() { + var componentManager = this.componentManager, + dataProcessor = this.dataProcessor; + + var hasLegendComponent = componentManager.has('legend'); + + return hasLegendComponent ? componentManager.get('legend').getCheckedIndexes() : dataProcessor.getLegendVisibility(); + }; + + /** + * initialize rawData + * @param {object} rawData rawData + * @returns {object} - remaked rawData + * @private + */ + + + ChartBase.prototype._initializeRawData = function _initializeRawData(rawData) { + var data = _objectUtil2['default'].deepCopy(rawData); + var _options2 = this.options, + chartType = _options2.chartType, + seriesOption = _options2.series; + + + if (chartType !== 'combo' && _tuiCodeSnippet2['default'].isArray(data.series)) { + var clonedSeries = data.series; + data.series = {}; + data.series[chartType] = clonedSeries; + } + + _rawDataHandler2['default'].updateRawSeriesDataByOptions(data, seriesOption); + + if (chartType === 'boxplot') { + _rawDataHandler2['default'].appendOutliersToSeriesData(data); + } + + return data; + }; + /** * On change checked legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds + * @ignore */ ChartBase.prototype.onChangeCheckedLegends = function onChangeCheckedLegends(checkedLegends, rawData, boundsParams) { - this.rerender(checkedLegends, rawData, boundsParams); + this.protectedRerender(checkedLegends, rawData, boundsParams); }; /** * Animate chart. + * @ignore */ @@ -24772,6 +24887,7 @@ return /******/ (function(modules) { // webpackBootstrap * Register of user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -24785,6 +24901,7 @@ return /******/ (function(modules) { // webpackBootstrap * Remove user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -25047,6 +25164,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} index - category index * @param {number} seriesIndex - series index * @returns {object} + * @private */ @@ -25405,14 +25523,13 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} name component name * @param {string} classType component factory name * @param {object} [params={}] optional params that for alternative charts + * @ignore */ ComponentManager.prototype.register = function register(name, classType) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var optionKey = void 0; - var index = params.index || 0; var componentFactory = COMPONENT_FACTORY_MAP[classType]; var componentType = componentFactory.componentType; @@ -25423,33 +25540,78 @@ return /******/ (function(modules) { // webpackBootstrap params.chartOptions = this.options; params.seriesTypes = this.seriesTypes; - if (componentType === 'axis') { - // Get theme and options by axis name - // As axis has 3 types(xAxis, yAxis, rightYAxis) - optionKey = name; - } else { - optionKey = componentType; - } + var optionKey = this._getOptionKey(componentType, name); - params.theme = this.theme[optionKey]; - params.options = this.options[optionKey]; + params.theme = this._makeTheme(optionKey, name); + params.options = this._makeOptions(optionKey, name, index); - if (!params.theme && optionKey === 'rightYAxis') { - params.theme = this.theme.yAxis; + params.dataProcessor = this.dataProcessor; + params.hasAxes = this.hasAxes; + params.isVertical = this.isVertical; + params.eventBus = this.eventBus; + + // alternative scale models for charts that do not use common scale models like maps + params.alternativeModel = this.alternativeModel; + + var component = componentFactory(params); + + // component creation can be refused by factory, according to option data + if (component) { + component.componentName = name; + component.componentType = componentType; + + this.components.push(component); + this.componentMap[name] = component; } + }; + + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ - if (!params.options && optionKey === 'rightYAxis') { - params.options = this.options.yAxis; + + ComponentManager.prototype.presetForChangeData = function presetForChangeData(theme) { + var _this = this; + + this.theme = theme; + this.components.forEach(function (component) { + if (component.presetForChangeData) { + var componentType = component.componentType, + componentName = component.componentName; + + var optionKey = _this._getOptionKey(componentType, componentName); + + component.presetForChangeData(_this._makeTheme(optionKey, componentName)); + } + }); + }; + + /** + * Make option + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @param {number} index index of chart for series option + * @returns {object} option + * @private + */ + + + ComponentManager.prototype._makeOptions = function _makeOptions(optionKey, name, index) { + var options = this.options[optionKey]; + + if (!options && optionKey === 'rightYAxis') { + options = this.options.yAxis; } if (optionKey === 'series') { this.seriesTypes.forEach(function (seriesType) { if (name.indexOf(seriesType) === 0) { - params.options = params.options[seriesType] || params.options; // For combo chart, options are set for each chart - params.theme = params.theme[seriesType]; // For combo, single chart, themes are set for each chart + options = options[seriesType] || options; // For combo chart, options are set for each chart - if (_tuiCodeSnippet2['default'].isArray(params.options)) { - params.options = params.options[index] || {}; + if (_tuiCodeSnippet2['default'].isArray(options)) { + options = options[index] || {}; } return false; @@ -25459,24 +25621,51 @@ return /******/ (function(modules) { // webpackBootstrap }); } - params.dataProcessor = this.dataProcessor; - params.hasAxes = this.hasAxes; - params.isVertical = this.isVertical; - params.eventBus = this.eventBus; + return options; + }; - // alternative scale models for charts that do not use common scale models like maps - params.alternativeModel = this.alternativeModel; + /** + * Make option key + * @param {string} type type of component + * @param {name} name name of component + * @returns {string} optionKey Key on which to create the option. + * @private + */ - var component = componentFactory(params); - // component creation can be refused by factory, according to option data - if (component) { - component.componentName = name; - component.componentType = componentType; + ComponentManager.prototype._getOptionKey = function _getOptionKey(type, name) { + return type === 'axis' ? name : type; + }; - this.components.push(component); - this.componentMap[name] = component; + /** + * Make theme + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @returns {object} theme + * @private + */ + + + ComponentManager.prototype._makeTheme = function _makeTheme(optionKey, name) { + var theme = this.theme[optionKey]; + + if (!theme && optionKey === 'rightYAxis') { + theme = this.theme.yAxis; } + + if (optionKey === 'series') { + this.seriesTypes.forEach(function (seriesType) { + if (name.indexOf(seriesType) === 0) { + theme = theme[seriesType]; // For combo, single chart, themes are set for each chart + + return false; + } + + return true; + }); + } + + return theme; }; /** @@ -25532,7 +25721,7 @@ return /******/ (function(modules) { // webpackBootstrap ComponentManager.prototype.render = function render(funcName, boundsAndScale, additionalData, container) { - var _this = this; + var _this2 = this; var elements = this.components.map(function (component) { var element = null; @@ -25540,8 +25729,8 @@ return /******/ (function(modules) { // webpackBootstrap if (component[funcName]) { var name = component.componentName; var type = component.componentType; - var paper = _this.drawingToolPicker.getPaper(container, component.drawingType); - var data = _this._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); + var paper = _this2.drawingToolPicker.getPaper(container, component.drawingType); + var data = _this2._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); var result = component[funcName](data); @@ -26530,6 +26719,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function Plot(params) { _classCallCheck(this, Plot); @@ -26594,6 +26784,19 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Plot.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + }; + /** * Render plot area. * @param {object} paper paper object @@ -27459,6 +27662,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} params.theme title theme * @param {object} params.options title options * @param {object} params.text title text content + * @ignore */ function Title(params) { _classCallCheck(this, Title); @@ -27659,6 +27863,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function RadialPlot(params) { _classCallCheck(this, RadialPlot); @@ -29641,6 +29846,27 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Legend.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + + this.legendModel = new _legendModel2['default']({ + theme: this.theme, + labels: this.dataProcessor.getLegendLabels(), + legendData: this.dataProcessor.getLegendData(), + seriesTypes: this.seriesTypes, + chartType: this.chartType + }); + }; + /** * Set data for rendering. * @param {{ @@ -29679,7 +29905,6 @@ return /******/ (function(modules) { // webpackBootstrap Legend.prototype.render = function render(data) { this._render(data); - this._listenEvents(); }; @@ -29802,6 +30027,16 @@ return /******/ (function(modules) { // webpackBootstrap this.eventBus.fire('changeCheckedLegends', this.legendModel.getCheckedIndexes()); }; + /** + * Fire changeCheckedLegends public event. + * @private + */ + + + Legend.prototype._fireChangeCheckedLegendsPublicEvent = function _fireChangeCheckedLegendsPublicEvent() { + this.eventBus.fire(PUBLIC_EVENT_PREFIX + 'changeCheckedLegends', this.legendModel.getCheckedIndexes()); + }; + /** * Fire selectLegend event. * @param {{chartType: string, index: number}} data data @@ -29878,6 +30113,17 @@ return /******/ (function(modules) { // webpackBootstrap return checkedIndexes; }; + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @ignore + */ + + + Legend.prototype.getCheckedIndexes = function getCheckedIndexes() { + return this.legendModel.getCheckedIndexes(); + }; + /** * Check legend. * @private @@ -29892,6 +30138,7 @@ return /******/ (function(modules) { // webpackBootstrap } this._fireChangeCheckedLegendsEvent(); + this._fireChangeCheckedLegendsPublicEvent(); if (selectedData) { this._fireSelectLegendEvent(selectedData); @@ -30320,10 +30567,14 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype._addSendingDatum = function _addSendingDatum(index) { var legendDatum = this.getDatum(index); - if (!this.checkedIndexesMap[legendDatum.chartType]) { - this.checkedIndexesMap[legendDatum.chartType] = []; + var chartType = legendDatum.chartType, + chartIndex = legendDatum.index; + + + if (!this.checkedIndexesMap[chartType]) { + this.checkedIndexesMap[chartType] = new Array(this.labels[chartType].length).fill(false); } - this.checkedIndexesMap[legendDatum.chartType][legendDatum.index] = true; + this.checkedIndexesMap[chartType][chartIndex] = true; }; /** @@ -30344,7 +30595,15 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.getCheckedIndexes = function getCheckedIndexes() { - return this.checkedIndexesMap; + var _this3 = this; + + return Object.keys(this.checkedIndexesMap).reduce(function (booleanizeObject, chartType) { + booleanizeObject[chartType] = Array.from(_this3.checkedIndexesMap[chartType], function (checked) { + return !!checked; + }); + + return booleanizeObject; + }, {}); }; /** @@ -30365,12 +30624,12 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.updateCheckedLegendsWith = function updateCheckedLegendsWith(indexes) { - var _this3 = this; + var _this4 = this; this._resetCheckedData(); indexes.forEach(function (index) { - _this3._updateCheckedIndex(index); - _this3._addSendingDatum(index); + _this4._updateCheckedIndex(index); + _this4._addSendingDatum(index); }); this._setData(); }; @@ -31729,6 +31988,20 @@ return /******/ (function(modules) { // webpackBootstrap this._attachToEventBus(); } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + TooltipBase.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + this.originalTheme = _objectUtil2['default'].deepCopy(theme); + }; + /** * Attach to event bus. * @private @@ -37816,7 +38089,6 @@ return /******/ (function(modules) { // webpackBootstrap * Theme * @type {object} */ - this.orgTheme = this.theme = params.theme; /** @@ -37939,6 +38211,23 @@ return /******/ (function(modules) { // webpackBootstrap return decorateFunc(targetLabel, labelPrefix, labelSuffix); }; + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Series.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.orgTheme; + + this.orgTheme = theme; + this.theme = theme; + if (this.chartType === 'treemap') { + this.boundMap = null; + } + }; + /** * Attach to event bus. * @private @@ -44754,16 +45043,24 @@ return /******/ (function(modules) { // webpackBootstrap /** * Initialize data. * @param {rawData} rawData raw data + * @param {boolean} originalChange whether the original has changed */ DataProcessor.prototype.initData = function initData(rawData) { + var originalChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + /** * raw data * @type {rawData} */ this.rawData = rawData; + if (originalChange) { + this.originalRawData = _objectUtil2['default'].deepCopy(rawData); + this.originalLegendData = null; + } + /** * categoriesMap * @type {null|object} @@ -44788,6 +45085,18 @@ return /******/ (function(modules) { // webpackBootstrap */ this.seriesDataModelMap = {}; + /** + * legendVisiblities + * @type {{column: Array., line: Array. | Array.}} + */ + this.legendVisibilities = null; + + /** + * zoomed raw data + * @type {object} zoomed raw data + */ + this.zoomedRawData = null; + /** * SeriesGroups * @type {Array.} @@ -46516,6 +46825,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} options - options * @param {Array.} formatFunctions - format functions * @param {boolean} isCoordinateType - whether coordinate type or not + * @private */ function SeriesDataModel(rawSeriesData, chartType, options, formatFunctions, isCoordinateType) { _classCallCheck(this, SeriesDataModel); @@ -48160,6 +48470,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} chartType - chart type * @param {object} options - options * @param {Array.} formatFunctions - format functions + * @private */ function SeriesDataModelForBoxplot(rawSeriesData, chartType, options, formatFunctions) { _classCallCheck(this, SeriesDataModelForBoxplot); @@ -53424,6 +53735,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -53863,7 +54175,7 @@ return /******/ (function(modules) { // webpackBootstrap } this.checkedLegends = checkedLegends; - chart.rerender(checkedLegends, rawData, boundsParams); + chart.protectedRerender(checkedLegends, rawData, boundsParams); if (!pastPaused) { setTimeout(function () { @@ -54022,6 +54334,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _areaChartSeries2['default']; @@ -54033,6 +54346,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -54046,6 +54360,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds * @override + * @ignore */ @@ -54058,6 +54373,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data ratios. * from axisTypeMixer * @override + * @ignore */ @@ -54087,6 +54403,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components * @override + * @ignore */ @@ -54110,6 +54427,7 @@ return /******/ (function(modules) { // webpackBootstrap * from lineTypeMixer * @returns {{xAxis: ?{valueType:string}, yAxis: ?(boolean|{valueType:string})}} * @override + * @ignore */ @@ -54197,6 +54515,7 @@ return /******/ (function(modules) { // webpackBootstrap * nnfrom chart/zoomMixer * @param {Array.} indexRange - index range for zoom * @override + * @ignore */ @@ -54210,6 +54529,7 @@ return /******/ (function(modules) { // webpackBootstrap * On reset zoom. * from chart/zoomMixer * @override + * @ignore */ @@ -54333,6 +54653,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -54347,7 +54668,7 @@ return /******/ (function(modules) { // webpackBootstrap this.chartTypes = typeData.chartTypes; this.seriesTypes = typeData.seriesTypes; - this.rerender(checkedLegends, rawData, typeData); + this.protectedRerender(checkedLegends, rawData, typeData); }; /** @@ -54785,6 +55106,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * yAxis options * @type {object} + * @ignore */ var _this = _possibleConstructorReturn(this, _ChartBase.call(this, { rawData: rawData, @@ -54811,6 +55133,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -54928,6 +55251,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -56380,6 +56704,7 @@ return /******/ (function(modules) { // webpackBootstrap * @constructs MapChartMapModel * @param {MapChartDataProcessor} dataProcessor Map chart data processor * @param {Array.<{name: string, path: string, labelCoordinate: ?{x: number, y:number}}>} rawMapData raw map data + * @ignore */ function MapChartMapModel(dataProcessor, rawMapData) { _classCallCheck(this, MapChartMapModel); @@ -57097,6 +57422,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _lineChartSeries2['default']; return _this; @@ -57246,6 +57572,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ diff --git a/dist/tui-chart-polyfill.min.js b/dist/tui-chart-polyfill.min.js index f429455da..fe30f7d4a 100644 --- a/dist/tui-chart-polyfill.min.js +++ b/dist/tui-chart-polyfill.min.js @@ -2,26 +2,26 @@ * tui-chart-polyfill.min * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:23 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:28 GMT+0900 (KST)" */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael"),require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["raphael","tui-code-snippet"],e):"object"==typeof exports?exports.chart=e(require("raphael"),require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael,t.tui&&t.tui.util))}(this,function(__WEBPACK_EXTERNAL_MODULE_330__,__WEBPACK_EXTERNAL_MODULE_333__){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){i(2),t.exports=i(328)},,function(t,e,i){(function(t){"use strict";function e(t,e,i){t[e]||Object[n](t,e,{writable:!0,configurable:!0,value:i})}if(i(3),i(324),i(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,i){i(4),i(52),i(53),i(54),i(55),i(57),i(60),i(61),i(62),i(63),i(64),i(65),i(66),i(67),i(68),i(70),i(72),i(74),i(76),i(79),i(80),i(81),i(85),i(87),i(89),i(92),i(93),i(94),i(95),i(97),i(98),i(99),i(100),i(101),i(102),i(103),i(105),i(106),i(107),i(109),i(110),i(111),i(113),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(125),i(126),i(127),i(132),i(133),i(137),i(138),i(139),i(140),i(142),i(143),i(144),i(145),i(146),i(147),i(148),i(149),i(150),i(151),i(152),i(153),i(154),i(155),i(156),i(158),i(159),i(161),i(162),i(168),i(169),i(171),i(172),i(173),i(177),i(178),i(179),i(180),i(181),i(183),i(184),i(185),i(186),i(189),i(191),i(192),i(193),i(195),i(197),i(199),i(200),i(201),i(203),i(204),i(205),i(206),i(217),i(221),i(222),i(224),i(225),i(229),i(230),i(232),i(233),i(234),i(235),i(236),i(237),i(238),i(239),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250),i(252),i(253),i(254),i(255),i(256),i(258),i(259),i(260),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(271),i(272),i(274),i(275),i(276),i(277),i(280),i(281),i(283),i(284),i(285),i(286),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(297),i(299),i(300),i(301),i(302),i(303),i(304),i(305),i(306),i(307),i(308),i(309),i(311),i(312),i(313),i(314),i(315),i(316),i(317),i(318),i(319),i(320),i(321),i(322),i(323),t.exports=i(10)},function(t,e,i){"use strict";var n=i(5),o=i(6),r=i(7),a=i(9),s=i(19),u=i(23).KEY,l=i(8),c=i(24),h=i(26),p=i(20),f=i(27),d=i(28),y=i(29),g=i(30),m=i(45),_=i(13),v=i(14),T=i(33),b=i(17),x=i(18),E=i(46),A=i(49),D=i(51),S=i(12),M=i(31),L=D.f,C=S.f,w=A.f,P=n.Symbol,O=n.JSON,R=O&&O.stringify,I="prototype",k=f("_hidden"),B=f("toPrimitive"),N={}.propertyIsEnumerable,F=c("symbol-registry"),G=c("symbols"),H=c("op-symbols"),V=Object[I],j="function"==typeof P,z=n.QObject,W=!z||!z[I]||!z[I].findChild,Y=r&&l(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=L(V,e);n&&delete V[e],C(t,e,i),n&&t!==V&&C(V,e,n)}:C,U=function(t){var e=G[t]=E(P[I]);return e._k=t,e},X=j&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,i){return t===V&&Z(H,e,i),_(t),e=b(e,!0),_(i),o(G,e)?(i.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),i=E(i,{enumerable:x(0,!1)})):(o(t,k)||C(t,k,x(1,{})),t[k][e]=!0),Y(t,e,i)):C(t,e,i)},K=function(t,e){_(t);for(var i,n=g(e=T(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},q=function(t,e){return void 0===e?E(t):K(E(t),e)},J=function(t){var e=N.call(this,t=b(t,!0));return!(this===V&&o(G,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,k)&&this[k][t])||e)},Q=function(t,e){if(t=T(t),e=b(e,!0),t!==V||!o(G,e)||o(H,e)){var i=L(t,e);return!i||!o(G,e)||o(t,k)&&t[k][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=w(T(t)),n=[],r=0;i.length>r;)o(G,e=i[r++])||e==k||e==u||n.push(e);return n},tt=function(t){for(var e,i=t===V,n=w(i?H:T(t)),r=[],a=0;n.length>a;)!o(G,e=n[a++])||i&&!o(V,e)||r.push(G[e]);return r};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),Y(this,t,x(1,i))};return r&&W&&Y(V,t,{configurable:!0,set:e}),U(t)},s(P[I],"toString",function(){return this._k}),D.f=Q,S.f=Z,i(50).f=A.f=$,i(44).f=J,i(43).f=tt,r&&!i(25)&&s(V,"propertyIsEnumerable",J,!0),d.f=function(t){return U(f(t))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)f(et[it++]);for(var nt=M(f.store),ot=0;nt.length>ot;)y(nt[ot++]);a(a.S+a.F*!j,"Symbol",{"for":function(t){return o(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),O&&a(a.S+a.F*(!j||l(function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(v(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!X(e))return e}),n[1]=e,R.apply(O,n)}}),P[I][B]||i(11)(P[I],B,P[I].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){t.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,i){var n=i(5),o=i(10),r=i(11),a=i(19),s=i(21),u="prototype",l=function(t,e,i){var c,h,p,f,d=t&l.F,y=t&l.G,g=t&l.S,m=t&l.P,_=t&l.B,v=y?n:g?n[e]||(n[e]={}):(n[e]||{})[u],T=y?o:o[e]||(o[e]={}),b=T[u]||(T[u]={});y&&(i=e);for(c in i)h=!d&&v&&void 0!==v[c],p=(h?v:i)[c],f=_&&h?s(p,n):m&&"function"==typeof p?s(Function.call,p):p,v&&a(v,c,p,t&l.U),T[c]!=p&&r(T,c,f),m&&b[c]!=p&&(b[c]=p)};n.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(12),o=i(18);t.exports=i(7)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(13),o=i(15),r=i(17),a=Object.defineProperty;e.f=i(7)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(s){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(14);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){t.exports=!i(7)&&!i(8)(function(){return 7!=Object.defineProperty(i(16)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(14),o=i(5).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(5),o=i(11),r=i(6),a=i(20)("src"),s="toString",u=Function[s],l=(""+u).split(s);i(10).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,i,s){var u="function"==typeof i;u&&(r(i,"name")||o(i,"name",e)),t[e]!==i&&(u&&(r(i,a)||o(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:o(t,e,i):(delete t[e],o(t,e,i)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(20)("meta"),o=i(14),r=i(6),a=i(12).f,s=0,u=Object.isExtensible||function(){return!0},l=!i(8)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},f=function(t){return l&&d.NEED&&u(t)&&!r(t,n)&&c(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:p,onFreeze:f}},function(t,e,i){var n=i(10),o=i(5),r="__core-js_shared__",a=o[r]||(o[r]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,i){var n=i(12).f,o=i(6),r=i(27)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e,i){var n=i(24)("wks"),o=i(20),r=i(5).Symbol,a="function"==typeof r,s=t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))};s.store=n},function(t,e,i){e.f=i(27)},function(t,e,i){var n=i(5),o=i(10),r=i(25),a=i(28),s=i(12).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var n=i(31),o=i(43),r=i(44);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),u=r.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,i){var n=i(32),o=i(42);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(6),o=i(33),r=i(37)(!1),a=i(41)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),u=0,l=[];for(i in s)i!=a&&n(s,i)&&l.push(i);for(;e.length>u;)n(s,i=e[u++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(34),o=i(36);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(33),o=i(38),r=i(40);t.exports=function(t){return function(e,i,a){var s,u=n(e),l=o(u.length),c=r(a,l);if(t&&i!=i){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var n=i(39),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(39),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},function(t,e,i){var n=i(24)("keys"),o=i(20);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(35);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(13),o=i(47),r=i(42),a=i(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var t,e=i(16)("iframe"),n=r.length,o="<",a=">";for(e.style.display="none",i(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),l=t.F;n--;)delete l[u][r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[u]=n(t),i=new s,s[u]=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(12),o=i(13),r=i(31);t.exports=i(7)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,u=0;s>u;)n.f(t,i=a[u++],e[i]);return t}},function(t,e,i){var n=i(5).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(33),o=i(50).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},function(t,e,i){var n=i(32),o=i(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n=i(44),o=i(18),r=i(33),a=i(17),s=i(6),u=i(15),l=Object.getOwnPropertyDescriptor;e.f=i(7)?l:function(t,e){if(t=r(t),e=a(e,!0),u)try{return l(t,e)}catch(i){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(9);n(n.S,"Object",{create:i(46)})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperty:i(12).f})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperties:i(47)})},function(t,e,i){var n=i(33),o=i(51).f;i(56)("getOwnPropertyDescriptor",function(){return function(t,e){return o(n(t),e)}})},function(t,e,i){var n=i(9),o=i(10),r=i(8);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},function(t,e,i){var n=i(58),o=i(59);i(56)("getPrototypeOf",function(){return function(t){return o(n(t))}})},function(t,e,i){var n=i(36);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(6),o=i(58),r=i(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){var n=i(58),o=i(31);i(56)("keys",function(){return function(t){return o(n(t))}})},function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(49).f})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14);i(56)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(9);n(n.S+n.F,"Object",{assign:i(69)})},function(t,e,i){"use strict";var n=i(31),o=i(43),r=i(44),a=i(58),s=i(34),u=Object.assign;t.exports=!u||i(8)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=a(t),u=arguments.length,l=1,c=o.f,h=r.f;u>l;)for(var p,f=s(arguments[l++]),d=c?n(f).concat(c(f)):n(f),y=d.length,g=0;y>g;)h.call(f,p=d[g++])&&(i[p]=f[p]);return i}:u},function(t,e,i){var n=i(9);n(n.S,"Object",{is:i(71)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,i){var n=i(9);n(n.S,"Object",{setPrototypeOf:i(73).set})},function(t,e,i){var n=i(14),o=i(13),r=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i(21)(Function.call,i(51).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,i){return r(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:r}},function(t,e,i){"use strict";var n=i(75),o={};o[i(27)("toStringTag")]="z",o+""!="[object z]"&&i(19)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(35),o=i(27)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(9);n(n.P,"Function",{bind:i(77)})},function(t,e,i){"use strict";var n=i(22),o=i(14),r=i(78),a=[].slice,s={},u=function(t,e,i){if(!(e in s)){for(var n=[],o=0;o>>0||(a.test(i)?16:10))}:n},function(t,e,i){var n=i(9),o=i(36),r=i(8),a=i(84),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,i){var o={},s=r(function(){return!!a[t]()||u[t]()!=u}),l=o[t]=s?e(p):a[t];i&&(o[i]=l),n(n.P+n.F*s,"String",o)},p=h.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},function(t,e){t.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(9),o=i(86);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},function(t,e,i){var n=i(5).parseFloat,o=i(83).trim;t.exports=1/n(i(84)+"-0")!==-(1/0)?function(t){var e=o(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){"use strict";var n=i(5),o=i(6),r=i(35),a=i(88),s=i(17),u=i(8),l=i(50).f,c=i(51).f,h=i(12).f,p=i(83).trim,f="Number",d=n[f],y=d,g=d.prototype,m=r(i(46)(g))==f,_="trim"in String.prototype,v=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=_?e.trim():p(e,3);var i,n,o,r=e.charCodeAt(0);if(43===r||45===r){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;lo)return NaN;return parseInt(u,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof d&&(m?u(function(){g.valueOf.call(i)}):r(i)!=f)?a(new y(v(e)),i,d):v(e)};for(var T,b=i(7)?l(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)o(y,T=b[x])&&!o(d,T)&&h(d,T,c(y,T));d.prototype=g,g.constructor=d,i(19)(n,f,d)}},function(t,e,i){var n=i(14),o=i(73).set;t.exports=function(t,e,i){var r,a=e.constructor;return a!==i&&"function"==typeof a&&(r=a.prototype)!==i.prototype&&n(r)&&o&&o(t,r),t}},function(t,e,i){"use strict";var n=i(9),o=i(39),r=i(90),a=i(91),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h="0",p=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=u(n/1e7)},f=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=u(i/t),i=i%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+a.call(h,7-i.length)+i}return e},y=function(t,e,i){return 0===e?i:e%2===1?y(t,e-1,i*t):y(t*t,e/2,i)},g=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(8)(function(){s.call({})})),"Number",{toFixed:function(t){var e,i,n,s,u=r(this,c),l=o(t),m="",_=h;if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=g(u*y(2,69,1))-69,i=e<0?u*y(2,-e,1):u/y(2,e,1),i*=4503599627370496,e=52-e,e>0){for(p(0,i),n=l;n>=7;)p(1e7,0),n-=7;for(p(y(10,n,1),0),n=e-1;n>=23;)f(1<<23),n-=23;f(1<0?(s=_.length,_=m+(s<=l?"0."+a.call(h,l-s)+_:_.slice(0,s-l)+"."+_.slice(s-l))):_=m+_,_}})},function(t,e,i){var n=i(35);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){"use strict";var n=i(39),o=i(36);t.exports=function(t){var e=String(o(this)),i="",r=n(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},function(t,e,i){"use strict";var n=i(9),o=i(8),r=i(90),a=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=r(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(9),o=i(5).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{isInteger:i(96)})},function(t,e,i){var n=i(14),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e,i){var n=i(9);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(9),o=i(96),r=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return o(t)&&r(t)<=9007199254740991}})},function(t,e,i){var n=i(9);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(9);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(9),o=i(86);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,i){var n=i(9),o=i(82);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,i){var n=i(9),o=i(104),r=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+r(t-1)*r(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=i(9),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(9),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(9),o=i(108);n(n.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,i){var n=i(9);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(9),o=Math.exp;n(n.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,i){var n=i(9),o=i(112);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||i(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(9);n(n.S,"Math",{fround:i(114)})},function(t,e,i){var n=i(108),o=Math.pow,r=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126),l=function(t){return t+1/r-1/r};t.exports=Math.fround||function(t){var e,i,o=Math.abs(t),c=n(t);return os||i!=i?c*(1/0):c*i)}},function(t,e,i){var n=i(9),o=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,r=0,a=0,s=arguments.length,u=0;a0?(n=i/u,r+=n*n):r+=i;return u===1/0?1/0:u*Math.sqrt(r)}})},function(t,e,i){var n=i(9),o=Math.imul;n(n.S+n.F*i(8)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(t,e){var i=65535,n=+t,o=+e,r=i&n,a=i&o;return 0|r*a+((i&n>>>16)*a+r*(i&o>>>16)<<16>>>0)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log1p:i(104)})},function(t,e,i){var n=i(9);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(9);n(n.S,"Math",{sign:i(108)})},function(t,e,i){var n=i(9),o=i(112),r=Math.exp;n(n.S+n.F*i(8)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(r(t-1)-r(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(9),o=i(112),r=Math.exp;n(n.S,"Math",{tanh:function(t){var e=o(t=+t),i=o(-t);return e==1/0?1:i==1/0?-1:(e-i)/(r(t)+r(-t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(9),o=i(40),r=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?r(e):r(((e-=65536)>>10)+55296,e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(9),o=i(33),r=i(38);n(n.S,"String",{raw:function(t){for(var e=o(t.raw),i=r(e.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(39),o=i(36);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(r=s.charCodeAt(u),r<55296||r>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):r:t?s.slice(u,u+2):(r-55296<<10)+(a-56320)+65536)}}},function(t,e,i){"use strict";var n=i(25),o=i(9),r=i(19),a=i(11),s=i(130),u=i(131),l=i(26),c=i(59),h=i(27)("iterator"),p=!([].keys&&"next"in[].keys()),f="@@iterator",d="keys",y="values",g=function(){return this};t.exports=function(t,e,i,m,_,v,T){u(i,e,m);var b,x,E,A=function(t){if(!p&&t in L)return L[t];switch(t){case d:return function(){return new i(this,t)};case y:return function(){return new i(this,t)}}return function(){return new i(this,t)}},D=e+" Iterator",S=_==y,M=!1,L=t.prototype,C=L[h]||L[f]||_&&L[_],w=C||A(_),P=_?S?A("entries"):w:void 0,O="Array"==e?L.entries||C:C;if(O&&(E=c(O.call(new t)),E!==Object.prototype&&E.next&&(l(E,D,!0),n||"function"==typeof E[h]||a(E,h,g))),S&&C&&C.name!==y&&(M=!0,w=function(){return C.call(this)}),n&&!T||!p&&!M&&L[h]||a(L,h,w),s[e]=w,s[D]=g,_)if(b={values:S?w:A(y),keys:v?w:A(d),entries:P},T)for(x in b)x in L||r(L,x,b[x]);else o(o.P+o.F*(p||M),e,b);return b}},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(46),o=i(18),r=i(26),a={};i(11)(a,i(27)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){"use strict";var n=i(9),o=i(128)(!1);n(n.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,i){"use strict";var n=i(9),o=i(38),r=i(134),a="endsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{endsWith:function(t){var e=r(this,t,a),i=arguments.length>1?arguments[1]:void 0,n=o(e.length),u=void 0===i?n:Math.min(o(i),n),l=String(t);return s?s.call(e,l,u):e.slice(u-l.length,u)===l}})},function(t,e,i){var n=i(135),o=i(36);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(o(t))}},function(t,e,i){var n=i(14),o=i(35),r=i(27)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},function(t,e,i){var n=i(27)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(o){}}return!0}},function(t,e,i){"use strict";var n=i(9),o=i(134),r="includes";n(n.P+n.F*i(136)(r),"String",{includes:function(t){return!!~o(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(9);n(n.P,"String",{repeat:i(91)})},function(t,e,i){"use strict";var n=i(9),o=i(38),r=i(134),a="startsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{startsWith:function(t){var e=r(this,t,a),i=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){"use strict";i(141)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){var n=i(9),o=i(8),r=i(36),a=/"/g,s=function(t,e,i,n){var o=String(r(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";i(141)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){"use strict";i(141)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){"use strict";i(141)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){"use strict";i(141)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){"use strict";i(141)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){"use strict";i(141)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){"use strict";i(141)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){"use strict";i(141)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){"use strict";i(141)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){"use strict";i(141)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){"use strict";i(141)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){"use strict";i(141)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(9);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17);n(n.P+n.F*i(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({ -toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),i=r(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(9),o=i(157);n(n.P+n.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,i){"use strict";var n=i(8),o=Date.prototype.getTime,r=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-5e13-1))})||!n(function(){r.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}:r},function(t,e,i){var n=Date.prototype,o="Invalid Date",r="toString",a=n[r],s=n.getTime;new Date(NaN)+""!=o&&i(19)(n,r,function(){var t=s.call(this);return t===t?a.call(this):o})},function(t,e,i){var n=i(27)("toPrimitive"),o=Date.prototype;n in o||i(11)(o,n,i(160))},function(t,e,i){"use strict";var n=i(13),o=i(17),r="number";t.exports=function(t){if("string"!==t&&t!==r&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),t!=r)}},function(t,e,i){var n=i(9);n(n.S,"Array",{isArray:i(45)})},function(t,e,i){"use strict";var n=i(21),o=i(9),r=i(58),a=i(163),s=i(164),u=i(38),l=i(165),c=i(166);o(o.S+o.F*!i(167)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,o,h,p=r(t),f="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,g=void 0!==y,m=0,_=c(p);if(g&&(y=n(y,d>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(e=u(p.length),i=new f(e);e>m;m++)l(i,m,g?y(p[m],m):p[m]);else for(h=_.call(p),i=new f;!(o=h.next()).done;m++)l(i,m,g?a(h,y,[o.value,m],!0):o.value);return i.length=m,i}})},function(t,e,i){var n=i(13);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(r){var a=t["return"];throw void 0!==a&&n(a.call(t)),r}}},function(t,e,i){var n=i(130),o=i(27)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){"use strict";var n=i(12),o=i(18);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e,i){var n=i(75),o=i(27)("iterator"),r=i(130);t.exports=i(10).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(27)("iterator"),o=!1;try{var r=[7][n]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:i=!0}},r[n]=function(){return a},t(r)}catch(s){}return i}},function(t,e,i){"use strict";var n=i(9),o=i(165);n(n.S+n.F*i(8)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)o(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(9),o=i(33),r=[].join;n(n.P+n.F*(i(34)!=Object||!i(170)(r)),"Array",{join:function(t){return r.call(o(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(8);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){"use strict";var n=i(9),o=i(48),r=i(35),a=i(40),s=i(38),u=[].slice;n(n.P+n.F*i(8)(function(){o&&u.call(o)}),"Array",{slice:function(t,e){var i=s(this.length),n=r(this);if(e=void 0===e?i:e,"Array"==n)return u.call(this,t,e);for(var o=a(t,i),l=a(e,i),c=s(l-o),h=new Array(c),p=0;pb;b++)if((p||b in _)&&(y=_[b],g=v(y,b,m),t))if(i)x[b]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return b;case 2:x.push(y)}else if(c)return!1;return h?-1:l||c?c:x}}},function(t,e,i){var n=i(176);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(14),o=i(45),r=i(27)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&(e=e[r],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(9),o=i(174)(1);n(n.P+n.F*!i(170)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(2);n(n.P+n.F*!i(170)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(3);n(n.P+n.F*!i(170)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(4);n(n.P+n.F*!i(170)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(182);n(n.P+n.F*!i(170)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){var n=i(22),o=i(58),r=i(34),a=i(38);t.exports=function(t,e,i,s,u){n(e);var l=o(t),c=r(l),h=a(l.length),p=u?h-1:0,f=u?-1:1;if(i<2)for(;;){if(p in c){s=c[p],p+=f;break}if(p+=f,u?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:h>p;p+=f)p in c&&(s=e(s,c[p],p,l));return s}},function(t,e,i){"use strict";var n=i(9),o=i(182);n(n.P+n.F*!i(170)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(9),o=i(37)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!i(170)(r)),"Array",{indexOf:function(t){return a?r.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(33),r=i(39),a=i(38),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(u||!i(170)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=o(this),i=a(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,r(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(9);n(n.P,"Array",{copyWithin:i(187)}),i(188)("copyWithin")},function(t,e,i){"use strict";var n=i(58),o=i(40),r=i(38);t.exports=[].copyWithin||function(t,e){var i=n(this),a=r(i.length),s=o(t,a),u=o(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:o(l,a))-u,a-s),h=1;for(u0;)u in i?i[s]=i[u]:delete i[s],s+=h,u+=h;return i}},function(t,e,i){var n=i(27)("unscopables"),o=Array.prototype;void 0==o[n]&&i(11)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,i){var n=i(9);n(n.P,"Array",{fill:i(190)}),i(188)("fill")},function(t,e,i){"use strict";var n=i(58),o=i(40),r=i(38);t.exports=function(t){for(var e=n(this),i=r(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:o(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){"use strict";var n=i(9),o=i(174)(5),r="find",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(r)},function(t,e,i){"use strict";var n=i(9),o=i(174)(6),r="findIndex",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(r)},function(t,e,i){i(194)("Array")},function(t,e,i){"use strict";var n=i(5),o=i(12),r=i(7),a=i(27)("species");t.exports=function(t){var e=n[t];r&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(188),o=i(196),r=i(130),a=i(33);t.exports=i(129)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(5),o=i(88),r=i(12).f,a=i(50).f,s=i(135),u=i(198),l=n.RegExp,c=l,h=l.prototype,p=/a/g,f=/a/g,d=new l(p)!==p;if(i(7)&&(!d||i(8)(function(){return f[i(27)("match")]=!1,l(p)!=p||l(f)==f||"/a/i"!=l(p,"i")}))){l=function(t,e){var i=this instanceof l,n=s(t),r=void 0===e;return!i&&n&&t.constructor===l&&r?t:o(d?new c(n&&!r?t.source:t,e):c((n=t instanceof l)?t.source:t,n&&r?u.call(t):e),i?this:h,l)};for(var y=(function(t){t in l||r(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}),g=a(c),m=0;g.length>m;)y(g[m++]);h.constructor=l,l.prototype=h,i(19)(n,"RegExp",l)}i(194)("RegExp")},function(t,e,i){"use strict";var n=i(13);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){"use strict";i(200);var n=i(13),o=i(198),r=i(7),a="toString",s=/./[a],u=function(t){i(19)(RegExp.prototype,a,t,!0)};i(8)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(t,e,i){i(7)&&"g"!=/./g.flags&&i(12).f(RegExp.prototype,"flags",{configurable:!0,get:i(198)})},function(t,e,i){i(202)("match",1,function(t,e,i){return[function(i){"use strict";var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){"use strict";var n=i(11),o=i(19),r=i(8),a=i(36),s=i(27);t.exports=function(t,e,i){var u=s(t),l=i(a,u,""[t]),c=l[0],h=l[1];r(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,c),n(RegExp.prototype,u,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,i){i(202)("replace",2,function(t,e,i){return[function(n,o){"use strict";var r=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,r,o):i.call(String(r),n,o)},i]})},function(t,e,i){i(202)("search",1,function(t,e,i){return[function(i){"use strict";var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){i(202)("split",2,function(t,e,n){"use strict";var o=i(135),r=n,a=[].push,s="split",u="length",l="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];n=function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!o(t))return r.call(i,t,e);var n,s,h,p,f,d=[],y=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=void 0===e?4294967295:e>>>0,_=new RegExp(t.source,y+"g");for(c||(n=new RegExp("^"+_.source+"$(?!\\s)",y));(s=_.exec(i))&&(h=s.index+s[0][u],!(h>g&&(d.push(i.slice(g,s.index)),!c&&s[u]>1&&s[0].replace(n,function(){for(f=1;f1&&s.index=m)));)_[l]===s.index&&_[l]++;return g===i[u]?!p&&_.test("")||d.push(""):d.push(i.slice(g)),d[u]>m?d.slice(0,m):d}}else"0"[s](void 0,0)[u]&&(n=function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)});return[function(i,o){var r=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},n]})},function(t,e,i){"use strict";var n,o,r,a,s=i(25),u=i(5),l=i(21),c=i(75),h=i(9),p=i(14),f=i(22),d=i(207),y=i(208),g=i(209),m=i(210).set,_=i(211)(),v=i(212),T=i(213),b=i(214),x=i(215),E="Promise",A=u.TypeError,D=u.process,S=D&&D.versions,M=S&&S.v8||"",L=u[E],C="process"==c(D),w=function(){},P=o=v.f,O=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[i(27)("species")]=function(t){t(w,w)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e&&0!==M.indexOf("6.6")&&b.indexOf("Chrome/66")===-1}catch(n){}}(),R=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var i=t._c;_(function(){for(var n=t._v,o=1==t._s,r=0,a=function(e){var i,r,a,s=o?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),s===!0?i=n:(c&&c.enter(),i=s(n),c&&(c.exit(),a=!0)),i===e.promise?l(A("Promise-chain cycle")):(r=R(i))?r.call(i,u,l):u(i)):l(n)}catch(h){c&&!a&&c.exit(),l(h)}};i.length>r;)a(i[r++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){m.call(u,function(){var e,i,n,o=t._v,r=B(t);if(r&&(e=T(function(){C?D.emit("unhandledRejection",o,t):(i=u.onunhandledrejection)?i({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=C||B(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,function(){var e;C?D.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},G=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw A("Promise can't be resolved itself");(e=R(t))?_(function(){var n={_w:i,_d:!1};try{e.call(t,l(G,n,1),l(F,n,1))}catch(o){F.call(n,o)}}):(i._v=t,i._s=1,I(i,!1))}catch(n){F.call({_w:i,_d:!1},n)}}};O||(L=function(t){d(this,L,E,"_h"),f(t),n.call(this);try{t(l(G,this,1),l(F,this,1))}catch(e){F.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(216)(L.prototype,{then:function(t,e){var i=P(g(this,L));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?D.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&I(this,!1),i.promise},"catch":function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(G,t,1),this.reject=l(F,t,1)},v.f=P=function(t){return t===L||t===a?new r(t):o(t)}),h(h.G+h.W+h.F*!O,{Promise:L}),i(26)(L,E),i(194)(E),a=i(10)[E],h(h.S+h.F*!O,E,{reject:function(t){var e=P(this),i=e.reject;return i(t),e.promise}}),h(h.S+h.F*(s||!O),E,{resolve:function(t){return x(s&&this===a?L:this,t)}}),h(h.S+h.F*!(O&&i(167)(function(t){L.all(t)["catch"](w)})),E,{all:function(t){var e=this,i=P(e),n=i.resolve,o=i.reject,r=T(function(){var i=[],r=0,a=1;y(t,!1,function(t){var s=r++,u=!1;i.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,i[s]=t,--a||n(i))},o)}),--a||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=P(e),n=i.reject,o=T(function(){y(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(21),o=i(163),r=i(164),a=i(13),s=i(38),u=i(166),l={},c={},e=t.exports=function(t,e,i,h,p){var f,d,y,g,m=p?function(){return t}:u(t),_=n(i,h,e?2:1),v=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(r(m)){for(f=s(t.length);f>v;v++)if(g=e?_(a(d=t[v])[0],d[1]):_(t[v]),g===l||g===c)return g}else for(y=m.call(t);!(d=y.next()).done;)if(g=o(y,_,d.value,e),g===l||g===c)return g};e.BREAK=l,e.RETURN=c},function(t,e,i){var n=i(13),o=i(22),r=i(27)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||void 0==(i=n(a)[r])?e:o(i)}},function(t,e,i){var n,o,r,a=i(21),s=i(78),u=i(48),l=i(16),c=i(5),h=c.process,p=c.setImmediate,f=c.clearImmediate,d=c.MessageChannel,y=c.Dispatch,g=0,m={},_="onreadystatechange",v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},T=function(t){v.call(t.data)};p&&f||(p=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},n(g),g},f=function(t){delete m[t]},"process"==i(35)(h)?n=function(t){h.nextTick(a(v,t,1))}:y&&y.now?n=function(t){y.now(a(v,t,1))}:d?(o=new d,r=o.port2,o.port1.onmessage=T,n=a(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",T,!1)):n=_ in l("script")?function(t){u.appendChild(l("script"))[_]=function(){u.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:p,clear:f}},function(t,e,i){var n=i(5),o=i(210).set,r=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==i(35)(a);t.exports=function(){var t,e,i,l=function(){var n,o;for(u&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?i():e=void 0,r}}e=void 0,n&&n.enter()};if(u)i=function(){a.nextTick(l)};else if(!r||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);i=function(){c.then(l)}}else i=function(){o.call(n,l)};else{var h=!0,p=document.createTextNode("");new r(l).observe(p,{characterData:!0}),i=function(){p.data=h=!h}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,i()),e=o}}},function(t,e,i){"use strict";function n(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=o(e),this.reject=o(i)}var o=i(22);t.exports.f=function(t){return new n(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},function(t,e,i){var n=i(5),o=n.navigator;t.exports=o&&o.userAgent||""},function(t,e,i){var n=i(13),o=i(14),r=i(212);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var i=r.f(t),a=i.resolve;return a(e),i.promise}},function(t,e,i){var n=i(19);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},function(t,e,i){"use strict";var n=i(218),o=i(219),r="Map";t.exports=i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(o(this,r),t);return e&&e.v},set:function(t,e){return n.def(o(this,r),0===t?0:t,e)}},n,!0)},function(t,e,i){"use strict";var n=i(12).f,o=i(46),r=i(216),a=i(21),s=i(207),u=i(208),l=i(129),c=i(196),h=i(194),p=i(7),f=i(23).fastKey,d=i(219),y=p?"_s":"size",g=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var c=t(function(t,n){s(t,c,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,void 0!=n&&u(n,i,t[l],t)});return r(c.prototype,{clear:function(){for(var t=d(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[y]=0},"delete":function(t){var i=d(this,e),n=g(i,t);if(n){var o=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),i._f==n&&(i._f=o),i._l==n&&(i._l=r),i[y]--}return!!n},forEach:function(t){d(this,e);for(var i,n=a(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!g(d(this,e),t)}}),p&&n(c.prototype,"size",{get:function(){return d(this,e)[y]}}),c},def:function(t,e,i){var n,o,r=g(t,e);return r?r.v=i:(t._l=r={i:o=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=r),n&&(n.n=r),t[y]++,"F"!==o&&(t._i[o]=r)),t},getEntry:g,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=d(t,e),this._k=i,this._l=void 0},function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?"keys"==e?c(0,i.k):"values"==e?c(0,i.v):c(0,[i.k,i.v]):(t._t=void 0,c(1))},i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){"use strict";var n=i(5),o=i(9),r=i(19),a=i(216),s=i(23),u=i(208),l=i(207),c=i(14),h=i(8),p=i(167),f=i(26),d=i(88);t.exports=function(t,e,i,y,g,m){var _=n[t],v=_,T=g?"set":"add",b=v&&v.prototype,x={},E=function(t){var e=b[t];r(b,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof v&&(m||b.forEach&&!h(function(){(new v).entries().next()}))){var A=new v,D=A[T](m?{}:-0,1)!=A,S=h(function(){A.has(1)}),M=p(function(t){new v(t)}),L=!m&&h(function(){for(var t=new v,e=5;e--;)t[T](e,e);return!t.has(-0)});M||(v=e(function(e,i){l(e,v,t);var n=d(new _,e,v);return void 0!=i&&u(i,g,n[T],n),n}),v.prototype=b,b.constructor=v),(S||L)&&(E("delete"),E("has"),g&&E("get")),(L||D)&&E(T),m&&b.clear&&delete b.clear}else v=y.getConstructor(e,t,g,T),a(v.prototype,i),s.NEED=!0;return f(v,t),x[t]=v,o(o.G+o.W+o.F*(v!=_),x),m||y.setStrong(v,t,g),v}},function(t,e,i){"use strict";var n=i(218),o=i(219),r="Set";t.exports=i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,r),t=0===t?0:t,t)}},n)},function(t,e,i){"use strict";var n,o=i(174)(0),r=i(19),a=i(23),s=i(69),u=i(223),l=i(14),c=i(8),h=i(219),p="WeakMap",f=a.getWeak,d=Object.isExtensible,y=u.ufstore,g={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(l(t)){var e=f(t);return e===!0?y(h(this,p)).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(h(this,p),t,e)}},v=t.exports=i(220)(p,m,_,u,!0,!0);c(function(){return 7!=(new v).set((Object.freeze||Object)(g),7).get(g)})&&(n=u.getConstructor(m,p),s(n.prototype,_),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=v.prototype,i=e[t];r(e,t,function(e,o){if(l(e)&&!d(e)){this._f||(this._f=new n);var r=this._f[t](e,o);return"set"==t?this:r}return i.call(this,e,o)})}))},function(t,e,i){"use strict";var n=i(216),o=i(23).getWeak,r=i(13),a=i(14),s=i(207),u=i(208),l=i(174),c=i(6),h=i(219),p=l(5),f=l(6),d=0,y=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return p(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var i=m(this,t);i?i[1]=e:this.a.push([t,e])},"delete":function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,r){var l=t(function(t,n){s(t,l,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=n&&u(n,i,t[r],t)});return n(l.prototype,{"delete":function(t){if(!a(t))return!1;var i=o(t);return i===!0?y(h(this,e))["delete"](t):i&&c(i,this._i)&&delete i[this._i]},has:function(t){if(!a(t))return!1;var i=o(t);return i===!0?y(h(this,e)).has(t):i&&c(i,this._i)}}),l},def:function(t,e,i){var n=o(r(e),!0);return n===!0?y(t).set(e,i):n[t._i]=i,t},ufstore:y}},function(t,e,i){"use strict";var n=i(223),o=i(219),r="WeakSet";i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,r),t,!0)}},n,!1,!0)},function(t,e,i){"use strict";var n=i(9),o=i(226),r=i(227),a=i(13),s=i(40),u=i(38),l=i(14),c=i(5).ArrayBuffer,h=i(209),p=r.ArrayBuffer,f=r.DataView,d=o.ABV&&c.isView,y=p.prototype.slice,g=o.VIEW,m="ArrayBuffer";n(n.G+n.W+n.F*(c!==p),{ArrayBuffer:p}),n(n.S+n.F*!o.CONSTR,m,{isView:function(t){return d&&d(t)||l(t)&&g in t}}),n(n.P+n.U+n.F*i(8)(function(){return!new p(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var i=a(this).byteLength,n=s(t,i),o=s(void 0===e?i:e,i),r=new(h(this,p))(u(o-n)),l=new f(this),c=new f(r),d=0;n>1,c=23===e?V(2,-24)-V(2,-77):0,h=0,p=t<0||0===t&&1/t<0?1:0;for(t=H(t),t!=t||t===F?(o=t!=t?1:0,n=u):(n=j(z(t)/W),t*(r=V(2,-n))<1&&(n--,r*=2),t+=n+l>=1?c/r:c*V(2,1-l),t*r>=2&&(n++,r/=2),n+l>=u?(o=0,n=u):n+l>=1?(o=(t*r-1)*V(2,e),n+=l):(o=t*V(2,l-1)*V(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*p,a}function o(t,e,i){var n,o=8*i-e-1,r=(1<>1,s=o-7,u=i-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=e;s>0;n=256*n+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===r)return n?NaN:l?-F:F;n+=V(2,e),c-=a}return(l?-1:1)*n*V(2,c-e)}function r(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function c(t){return n(t,23,4)}function h(t,e,i){S(t[P],e,{get:function(){return this[i]}})}function p(t,e,i,n){var o=+i,r=A(o);if(r+e>t[K])throw N(R);var a=t[Z]._b,s=r+t[q],u=a.slice(s,s+e);return n?u:u.reverse()}function f(t,e,i,n,o,r){var a=+i,s=A(a);if(s+e>t[K])throw N(R);for(var u=t[Z]._b,l=s+t[q],c=n(+o),h=0;htt;)(J=$[tt++])in I||_(I,J,G[J]);g||(Q.constructor=I)}var et=new k(new I(2)),it=k[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||v(k[P],{setInt8:function(t,e){it.call(this,t,e<<24>>24)},setUint8:function(t,e){it.call(this,t,e<<24>>24)}},!0)}else I=function(t){b(this,I,C);var e=A(t);this._b=M.call(new Array(e),0),this[K]=e},k=function(t,e,i){b(this,k,w),b(t,I,w);var n=t[K],o=x(e);if(o<0||o>n)throw N("Wrong offset!");if(i=void 0===i?n-o:E(i),o+i>n)throw N(O);this[Z]=t,this[q]=o,this[K]=i},y&&(h(I,U,"_l"),h(k,Y,"_b"),h(k,U,"_l"),h(k,X,"_o")),v(k[P],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var e=p(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=p(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return r(p(this,4,t,arguments[1]))},getUint32:function(t){return r(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,a,e)},setUint8:function(t,e){f(this,1,t,a,e)},setInt16:function(t,e){f(this,2,t,s,e,arguments[2])},setUint16:function(t,e){f(this,2,t,s,e,arguments[2])},setInt32:function(t,e){f(this,4,t,u,e,arguments[2])},setUint32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,c,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,l,e,arguments[2])}});L(I,C),L(k,w),_(k[P],m.VIEW,!0),e[C]=I,e[w]=k},function(t,e,i){var n=i(39),o=i(38);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=o(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(9);n(n.G+n.W+n.F*!i(226).ABV,{DataView:i(227).DataView})},function(t,e,i){i(231)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){"use strict";if(i(7)){var n=i(25),o=i(5),r=i(8),a=i(9),s=i(226),u=i(227),l=i(21),c=i(207),h=i(18),p=i(11),f=i(216),d=i(39),y=i(38),g=i(228),m=i(40),_=i(17),v=i(6),T=i(75),b=i(14),x=i(58),E=i(164),A=i(46),D=i(59),S=i(50).f,M=i(166),L=i(20),C=i(27),w=i(174),P=i(37),O=i(209),R=i(195),I=i(130),k=i(167),B=i(194),N=i(190),F=i(187),G=i(12),H=i(51),V=G.f,j=H.f,z=o.RangeError,W=o.TypeError,Y=o.Uint8Array,U="ArrayBuffer",X="Shared"+U,Z="BYTES_PER_ELEMENT",K="prototype",q=Array[K],J=u.ArrayBuffer,Q=u.DataView,$=w(0),tt=w(2),et=w(3),it=w(4),nt=w(5),ot=w(6),rt=P(!0),at=P(!1),st=R.values,ut=R.keys,lt=R.entries,ct=q.lastIndexOf,ht=q.reduce,pt=q.reduceRight,ft=q.join,dt=q.sort,yt=q.slice,gt=q.toString,mt=q.toLocaleString,_t=C("iterator"),vt=C("toStringTag"),Tt=L("typed_constructor"),bt=L("def_constructor"),xt=s.CONSTR,Et=s.TYPED,At=s.VIEW,Dt="Wrong length!",St=w(1,function(t,e){return Pt(O(t,t[bt]),e)}),Mt=r(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Lt=!!Y&&!!Y[K].set&&r(function(){new Y(1).set({})}),Ct=function(t,e){var i=d(t);if(i<0||i%e)throw z("Wrong offset!");return i},wt=function(t){if(b(t)&&Et in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(b(t)&&Tt in t))throw W("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return Rt(O(t,t[bt]),e)},Rt=function(t,e){for(var i=0,n=e.length,o=Pt(t,n);n>i;)o[i]=e[i++];return o},It=function(t,e,i){V(t,e,{get:function(){return this._d[i]}})},kt=function(t){var e,i,n,o,r,a,s=x(t),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,p=M(s);if(void 0!=p&&!E(p)){for(a=p.call(s),n=[],e=0;!(r=a.next()).done;e++)n.push(r.value);s=n}for(h&&u>2&&(c=l(c,arguments[2],2)),e=0,i=y(s.length),o=Pt(this,i);i>e;e++)o[e]=h?c(s[e],e):s[e];return o},Bt=function(){for(var t=0,e=arguments.length,i=Pt(this,e);e>t;)i[t]=arguments[t++];return i},Nt=!!Y&&r(function(){mt.call(new Y(1))}),Ft=function(){return mt.apply(Nt?yt.call(wt(this)):wt(this),arguments)},Gt={copyWithin:function(t,e){return F.call(wt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(wt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(wt(this),arguments)},filter:function(t){return Ot(this,tt(wt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(wt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(wt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(wt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(wt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(wt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(wt(this),arguments)},lastIndexOf:function(t){return ct.apply(wt(this),arguments)},map:function(t){return St(wt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(wt(this),arguments)},reduceRight:function(t){return pt.apply(wt(this),arguments)},reverse:function(){for(var t,e=this,i=wt(e).length,n=Math.floor(i/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return dt.call(wt(this),t)},subarray:function(t,e){var i=wt(this),n=i.length,o=m(t,n);return new(O(i,i[bt]))(i.buffer,i.byteOffset+o*i.BYTES_PER_ELEMENT,y((void 0===e?n:m(e,n))-o))}},Ht=function(t,e){return Ot(this,yt.call(wt(this),t,e))},Vt=function(t){wt(this);var e=Ct(arguments[1],1),i=this.length,n=x(t),o=y(n.length),r=0;if(o+e>i)throw z(Dt);for(;r255?255:255&n),o.v[f](i*e+o.o,n,Mt)},C=function(t,e){V(t,e,{get:function(){return M(this,e)},set:function(t){return L(this,e,t)},enumerable:!0})};v?(d=i(function(t,i,n,o){c(t,d,l,"_d");var r,a,s,u,h=0,f=0;if(b(i)){if(!(i instanceof J||(u=T(i))==U||u==X))return Et in i?Rt(d,i):kt.call(d,i);r=i,f=Ct(n,e);var m=i.byteLength;if(void 0===o){if(m%e)throw z(Dt);if(a=m-f,a<0)throw z(Dt)}else if(a=y(o)*e,a+f>m)throw z(Dt);s=a/e}else s=g(i),a=s*e,r=new J(a);for(p(t,"_d",{b:r,o:f,l:a,e:s,v:new Q(r)});h=i.length)return{value:void 0,done:!0};while(!((t=i[e._i++])in e._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,i){function n(t,e){var i,s,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(i=o.f(t,e))?a(i,"value")?i.value:void 0!==i.get?i.get.call(c):void 0:u(s=r(t))?n(s,e,c):void 0}var o=i(51),r=i(59),a=i(6),s=i(9),u=i(14),l=i(13);s(s.S,"Reflect",{get:n})},function(t,e,i){var n=i(51),o=i(9),r=i(13);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(r(t),e)}})},function(t,e,i){var n=i(9),o=i(59),r=i(13);n(n.S,"Reflect",{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(9),o=i(13),r=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return o(t),!r||r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{ownKeys:i(251)})},function(t,e,i){var n=i(50),o=i(43),r=i(13),a=i(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(9),o=i(13),r=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){o(t);try{return r&&r(t),!0}catch(e){return!1}}})},function(t,e,i){function n(t,e,i){var u,p,f=arguments.length<4?t:arguments[3],d=r.f(c(t),e);if(!d){if(h(p=a(t)))return n(p,e,i,f);d=l(0)}if(s(d,"value")){if(d.writable===!1||!h(f))return!1;if(u=r.f(f,e)){if(u.get||u.set||u.writable===!1)return!1;u.value=i,o.f(f,e,u)}else o.f(f,e,l(0,i));return!0}return void 0!==d.set&&(d.set.call(f,i),!0)}var o=i(12),r=i(51),a=i(59),s=i(6),u=i(9),l=i(18),c=i(13),h=i(14);u(u.S,"Reflect",{set:n})},function(t,e,i){var n=i(9),o=i(73);o&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(i){return!1}}})},function(t,e,i){"use strict";var n=i(9),o=i(37)(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)("includes")},function(t,e,i){"use strict";var n=i(9),o=i(257),r=i(58),a=i(38),s=i(22),u=i(175);n(n.P,"Array",{flatMap:function(t){var e,i,n=r(this);return s(t),e=a(n.length),i=u(n,0),o(i,n,n,e,0,1,t,arguments[1]),i}}),i(188)("flatMap")},function(t,e,i){"use strict";function n(t,e,i,l,c,h,p,f){for(var d,y,g=c,m=0,_=!!p&&s(p,f,3);m0)g=n(t,e,d,a(d.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=d}g++}m++}return g}var o=i(45),r=i(14),a=i(38),s=i(21),u=i(27)("isConcatSpreadable");t.exports=n},function(t,e,i){"use strict";var n=i(9),o=i(257),r=i(58),a=i(38),s=i(39),u=i(175);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=r(this),i=a(e.length),n=u(e,0);return o(n,e,e,i,0,void 0===t?1:s(t)),n}}),i(188)("flatten")},function(t,e,i){"use strict";var n=i(9),o=i(128)(!0);n(n.P,"String",{at:function(t){return o(this,t)}})},function(t,e,i){"use strict";var n=i(9),o=i(261),r=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){var n=i(38),o=i(91),r=i(36);t.exports=function(t,e,i,a){var s=String(r(t)),u=s.length,l=void 0===i?" ":String(i),c=n(e);if(c<=u||""==l)return s;var h=c-u,p=o.call(l,Math.ceil(h/l.length));return p.length>h&&(p=p.slice(0,h)),a?p+s:s+p}},function(t,e,i){"use strict";var n=i(9),o=i(261),r=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){"use strict";i(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,i){"use strict";i(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,i){"use strict";var n=i(9),o=i(36),r=i(38),a=i(135),s=i(198),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};i(131)(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in u?String(t.flags):s.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=r(t.lastIndex),new l(n,e)}})},function(t,e,i){i(29)("asyncIterator")},function(t,e,i){i(29)("observable")},function(t,e,i){var n=i(9),o=i(251),r=i(33),a=i(51),s=i(165);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=r(t),u=a.f,l=o(n),c={},h=0;l.length>h;)i=u(n,e=l[h++]),void 0!==i&&s(c,e,i);return c}})},function(t,e,i){var n=i(9),o=i(270)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,i){var n=i(31),o=i(33),r=i(44).f;t.exports=function(t){return function(e){for(var i,a=o(e),s=n(a),u=s.length,l=0,c=[];u>l;)r.call(a,i=s[l++])&&c.push(t?[i,a[i]]:a[i]);return c}}},function(t,e,i){var n=i(9),o=i(270)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:r(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";t.exports=i(25)||!i(8)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(5)[t]})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:r(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupGetter__:function(t){var e,i=o(this),n=r(t,!0);do if(e=s(i,n))return e.get;while(i=a(i))}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupSetter__:function(t){var e,i=o(this),n=r(t,!0);do if(e=s(i,n))return e.set;while(i=a(i))}})},function(t,e,i){var n=i(9);n(n.P+n.R,"Map",{toJSON:i(278)("Map")})},function(t,e,i){var n=i(75),o=i(279);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,i){var n=i(208);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},function(t,e,i){var n=i(9);n(n.P+n.R,"Set",{toJSON:i(278)("Set")})},function(t,e,i){i(282)("Map")},function(t,e,i){"use strict";var n=i(9);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,i){i(282)("Set")},function(t,e,i){i(282)("WeakMap")},function(t,e,i){i(282)("WeakSet")},function(t,e,i){i(287)("Map")},function(t,e,i){"use strict";var n=i(9),o=i(22),r=i(21),a=i(208);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,u=arguments[1];return o(this),e=void 0!==u,e&&o(u),void 0==t?new this:(i=[],e?(n=0,s=r(u,arguments[2],2),a(t,!1,function(t){i.push(s(t,n++))})):a(t,!1,i.push,i),new this(i))}})}},function(t,e,i){i(287)("Set")},function(t,e,i){i(287)("WeakMap")},function(t,e,i){i(287)("WeakSet")},function(t,e,i){var n=i(9);n(n.G,{global:i(5)})},function(t,e,i){var n=i(9);n(n.S,"System",{global:i(5)})},function(t,e,i){var n=i(9),o=i(35);n(n.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,i){var n=i(9),o=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*o}})},function(t,e,i){var n=i(9),o=i(298),r=i(114);n(n.S,"Math",{fscale:function(t,e,i,n,a){return r(o(t,e,i,n,a))}})},function(t,e){t.exports=Math.scale||function(t,e,i,n,o){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||o!=o?NaN:t===1/0||t===-(1/0)?t:(t-e)*(o-n)/(i-e)+n}},function(t,e,i){var n=i(9);n(n.S,"Math",{iaddh:function(t,e,i,n){var o=t>>>0,r=e>>>0,a=i>>>0;return r+(n>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{isubh:function(t,e,i,n){var o=t>>>0,r=e>>>0,a=i>>>0;return r-(n>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{imulh:function(t,e){var i=65535,n=+t,o=+e,r=n&i,a=o&i,s=n>>16,u=o>>16,l=(s*a>>>0)+(r*a>>>16);return s*u+(l>>16)+((r*u>>>0)+(l&i)>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,i){var n=i(9),o=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*o}})},function(t,e,i){var n=i(9);n(n.S,"Math",{scale:i(298)})},function(t,e,i){var n=i(9);n(n.S,"Math",{umulh:function(t,e){var i=65535,n=+t,o=+e,r=n&i,a=o&i,s=n>>>16,u=o>>>16,l=(s*a>>>0)+(r*a>>>16);return s*u+(l>>>16)+((r*u>>>0)+(l&i)>>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,i){"use strict";var n=i(9),o=i(10),r=i(5),a=i(209),s=i(215);n(n.P+n.R,"Promise",{"finally":function(t){var e=a(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return s(e,t()).then(function(){return i})}:t,i?function(i){return s(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var n=i(9),o=i(212),r=i(213);n(n.S,"Promise",{"try":function(t){var e=o.f(this),i=r(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){var n=i(310),o=i(13),r=n.key,a=n.set;n.exp({defineMetadata:function(t,e,i,n){a(t,e,o(i),r(n))}})},function(t,e,i){var n=i(217),o=i(9),r=i(24)("metadata"),a=r.store||(r.store=new(i(222))),s=function(t,e,i){var o=a.get(t);if(!o){if(!i)return;a.set(t,o=new n)}var r=o.get(e);if(!r){if(!i)return;o.set(e,r=new n)}return r},u=function(t,e,i){var n=s(e,i,!1);return void 0!==n&&n.has(t)},l=function(t,e,i){var n=s(e,i,!1);return void 0===n?void 0:n.get(t)},c=function(t,e,i,n){s(i,n,!0).set(t,e)},h=function(t,e){var i=s(t,e,!1),n=[];return i&&i.forEach(function(t,e){n.push(e)}),n},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},f=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:h,key:p,exp:f}},function(t,e,i){var n=i(310),o=i(13),r=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:r(arguments[2]),n=a(o(e),i,!1);if(void 0===n||!n["delete"](t))return!1;if(n.size)return!0;var u=s.get(e);return u["delete"](i),!!u.size||s["delete"](e)}})},function(t,e,i){var n=i(310),o=i(13),r=i(59),a=n.has,s=n.get,u=n.key,l=function(t,e,i){var n=a(t,e,i);if(n)return s(t,e,i);var o=r(e);return null!==o?l(t,o,i):void 0};n.exp({getMetadata:function(t,e){return l(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,i){var n=i(221),o=i(279),r=i(310),a=i(13),s=i(59),u=r.keys,l=r.key,c=function(t,e){var i=u(t,e),r=s(t);if(null===r)return i;var a=c(r,e);return a.length?i.length?o(new n(i.concat(a))):a:i};r.exp({getMetadataKeys:function(t){return c(a(t),arguments.length<2?void 0:l(arguments[1]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return r(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return r(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,i){var n=i(310),o=i(13),r=i(59),a=n.has,s=n.key,u=function(t,e,i){var n=a(t,e,i);if(n)return!0;var o=r(e);return null!==o&&u(t,o,i)};n.exp({hasMetadata:function(t,e){return u(t,o(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return r(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=i(22),a=n.key,s=n.set;n.exp({metadata:function(t,e){return function(i,n){s(t,e,(void 0!==n?o:r)(i),a(n))}}})},function(t,e,i){var n=i(9),o=i(211)(),r=i(5).process,a="process"==i(35)(r);n(n.G,{asap:function(t){var e=a&&r.domain;o(e?e.bind(t):t)}})},function(t,e,i){"use strict";var n=i(9),o=i(5),r=i(10),a=i(211)(),s=i(27)("observable"),u=i(22),l=i(13),c=i(207),h=i(216),p=i(11),f=i(208),d=f.RETURN,y=function(t){return null==t?void 0:u(t)},g=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},_=function(t){m(t)||(t._o=void 0,g(t))},v=function(t,e){l(t),this._c=void 0,this._o=t,t=new T(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:u(i),this._c=i)}catch(o){return void t.error(o)}m(this)&&g(this)};v.prototype=h({},{unsubscribe:function(){_(this)}});var T=function(t){this._s=t};T.prototype=h({},{next:function(t){var e=this._s;if(!m(e)){var i=e._o;try{var n=y(i.next);if(n)return n.call(i,t)}catch(o){try{_(e)}finally{throw o}}}},error:function(t){var e=this._s;if(m(e))throw t;var i=e._o;e._o=void 0;try{var n=y(i.error);if(!n)throw t;t=n.call(i,t)}catch(o){try{g(e)}finally{throw o}}return g(e),t},complete:function(t){var e=this._s;if(!m(e)){var i=e._o;e._o=void 0;try{var n=y(i.complete);t=n?n.call(i,t):void 0}catch(o){try{g(e)}finally{throw o}}return g(e),t}}});var b=function(t){c(this,b,"Observable","_f")._f=u(t)};h(b.prototype,{subscribe:function(t){return new v(t,this._f)},forEach:function(t){var e=this;return new(r.Promise||o.Promise)(function(i,n){u(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(i){n(i),o.unsubscribe()}},error:n,complete:i})})}}),h(b,{from:function(t){var e="function"==typeof this?this:b,i=y(l(t)[s]);if(i){var n=l(i.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var i=!1;return a(function(){if(!i){try{if(f(t,!1,function(t){if(e.next(t),i)return d})===d)return}catch(n){if(i)throw n;return void e.error(n)}e.complete()}}),function(){i=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t2,o=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};o(o.G+o.B+o.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(t,e,i){var n=i(9),o=i(210);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,i){for(var n=i(195),o=i(31),r=i(19),a=i(5),s=i(11),u=i(130),l=i(27),c=l("iterator"),h=l("toStringTag"),p=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(f),y=0;y=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&_.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),p(i),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;p(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:d(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=g),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}())},function(t,e,i){i(326),t.exports=i(10).RegExp.escape},function(t,e,i){var n=i(9),o=i(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e){t.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(329),r=i(357),a=n(r),s=i(334),u=n(s),l=i(337),c=n(l),h=i(465),p=n(h);i(474),a["default"].registerPlugin("Raphael",o.pluginRaphael,o.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=c["default"],a["default"].colorutil=p["default"],t.exports=a["default"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),o=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),o.setAttribute("in","flood"),o.setAttribute("result","mask"),o.setAttribute("in2","SourceGraphic"),o.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(o),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),n=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),n.setAttributeNS(null,"result","blurOut"),n.setAttributeNS(null,"in","offOut"),n.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(o),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(330),s=n(a),u=i(331),l=n(u),c=i(338),h=n(c),p=i(339),f=n(p),d=i(340),y=n(d),g=i(343),m=n(g),_=i(345),v=n(_),T=i(346),b=n(T),x=i(347),E=n(x),A=i(348),D=n(A),S=i(349),M=n(S),L=i(350),C=n(L),w=i(352),P=n(w),O=i(353),R=n(O),I=i(354),k=n(I),B=i(355),N=n(B),F=i(356),G=n(F);e.pluginRaphael={bar:l["default"],boxplot:h["default"],bullet:f["default"],column:l["default"],line:y["default"],area:m["default"],pie:v["default"],bubble:E["default"],scatter:E["default"],heatmap:D["default"],treemap:D["default"],map:M["default"],radial:b["default"],legend:C["default"],mapLegend:P["default"],circleLegend:R["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),n=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(o(i),r(i)),i.pushDownBackgroundToBottom=function(){n.toBack()},i.changeChartBackgroundColor=function(t){n.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){n.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){n.attr({width:t,height:e})},n.attr({fill:"#fff","stroke-width":0}),i}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_330__},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),p=700,f=1,d=.3,y=.2,g=8,m=2,_=.4,v=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,o=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=o,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=n,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var n=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return n.node.setAttribute("class","auto-shape-rendering"),n},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=t.map(function(t,o){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(o,r),s=n?i[o]:i[r],u=e._renderBar(t.start,s); -return{rect:u,color:s,bound:t.end,item:a,groupIndex:o,index:r,isRange:a.isRange}})});return o},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var n=i.value,o=null;if("bar"===e||n>=0||i.isRange){var r=l["default"].extend({},t.leftTop);r.left-="column"===e||n<0?1:0,o=s["default"].makeLinePath(r,t.rightTop).join(" ")}return o},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),o={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return l["default"].filter(o,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,n){var o=this._makeBorderLinesPaths(t,i,n),a={};return Object.entries(o).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];a[n]=s["default"].renderLine(self.paper,o,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=l["default"].map(t,function(t,n){return l["default"].map(t,function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,self.chartType,r)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-m/2,y:e.height?e.top:e.top-m/2,width:e.width?e.width:m,height:e.height?e.height:m,opacity:e.height&&e.width?1:_},p,">")},t.prototype._animateBorders=function(t,e,i,n){var o=this._makeBorderLinesPaths(e,i,n);l["default"].forEach(t,function(t,e){t.animate({path:o[e]},p,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,n,o){var r=i[n]&&i[n][o];t&&(e._animateRect(t.rect,t.bound),r&&e._animateBorders(r,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},p))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+g,height:i.height+g,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(n.width,n.height),s["default"].forEach2dArray(this.groupBars,function(t,n,r){if(t){var a=i[n]&&i[n][r],u=o[n][r].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=h["default"].color(e.color),n=this.theme.selectionColor,o=n||s["default"].makeChangedLuminanceColor(i.hex,y),r=this.theme.borderColor;if(r){var a=h["default"].color(r);r=s["default"].makeChangedLuminanceColor(a.hex,y)}this._changeBarColor(t,o,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(n,o,r){if(n){var a=e[o]&&e[o][r],s=i||t===r?f:d;n.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r=o||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r},u=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var r=e[n][o],l=s["default"].renderText(t,r.end,i.end,a),c=l.node.style;if(c.userSelect="none",c.cursor="default",u.push(l),r.start){var h=s["default"].renderText(t,r.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",u.push(h)}})}),u},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var r=i(333),a=n(r),s=i(334),u=n(s),l=i(330),c=n(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],o=[e.left,e.top],r=i%2/2;return n.forEach(function(t,e){t===o[e]&&(n[e]=o[e]=Math.round(t)-r)}),["M"].concat(n,["L"],o)},renderLine:function(t,e,i,n){var o=t.path([e]),r={stroke:i,"stroke-width":a["default"].isUndefined(n)?2:n,"stroke-linecap":"butt"};return"transparent"===i&&(r.stroke="#fff",r["stroke-opacity"]=0),o.attr(r).node.setAttribute("class","auto-shape-rendering"),o},getEllipsisText:function(t,e,i){for(var n=t.split(""),o=n.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var o=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return n&&(n["dominant-baseline"]?o.node.setAttribute("dominant-baseline",n["dominant-baseline"]):o.node.setAttribute("dominant-baseline","central"),o.attr(n)),o},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var o=t.circle(e.left,e.top,i);return n&&o.attr(n),o},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),o=n+n*e;return o=Math.round(Math.min(Math.max(0,o),255)).toString(16),u["default"].formatToZeroFill(o,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var n=(0,c["default"])(document.body,100,100),o=n.text(0,0,t).attr({"font-size":e,"font-family":i}),r=o.getBBox();return o.remove(),n.remove(),{width:r.width,height:r.height}},animateOpacity:function(t,e,i,n){var r=o(n)?n:600,a=o(e)?e:0,s=o(i)?i:1,u=c["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)}}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_333__},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return d["default"].forEach(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,o=e.fontWeight,r=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),o&&(t.style.fontWeight=o),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),o=this.sizeCache[n];if(!o){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerHTML=t,this._addCssStyle(r,e),document.body.appendChild(r),o=a[i],document.body.removeChild(r),this.sizeCache[n]=o}return o},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=c["default"].create("DIV","tui-chart-size-check-element"),e=c["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var o=d["default"].map(t,function(t){return i(t,e)});n=p["default"].max(o)}return n},getRenderedLabelsMaxWidth:function(t,e){var i=d["default"].bind(this.getRenderedLabelWidth,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},getRenderedLabelsMaxHeight:function(t,e){var i=d["default"].bind(this.getRenderedLabelHeight,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,o=e.height,r=void 0===o?0:o;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){d["default"].isUndefined(e)||d["default"].forEachArray(["top","bottom","left","right"],function(i){var n=e[i];d["default"].isNumber(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=T.makeFontCssText(e),o=c["default"].create("DIV",i);return o.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),o.style.cssText=n,o},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,r=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(o(i||[]));return d["default"].reduce(l,function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,o=i.areaType,r=i.valueType;return e&&e.length?d["default"].map(t,function(t){return T.formatValue({value:t,formatFunctions:e,chartType:n,areaType:o,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=d["default"].isDate(t)?t:new Date(t);return d["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return d["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete o.id,i&&i()):o.id=requestAnimationFrame(n)}var o={},r=(new Date).getTime();return o.id=requestAnimationFrame(n),o},isOldBrowser:function(){return g},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var c;s=t.split("").reverse(),u=s.length-1,s=d["default"].map(s,function(t,n){var o=[t];return n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?d["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=m?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=_+v;return v+=1,t}};g?(T.makeOpacityCssText=function(t){var e="";if(d["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},T.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(T.makeOpacityCssText=function(t){var e="";return d["default"].isExisty(t)&&(e=";opacity:"+t),e},T.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=T},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,o=void 0;return o=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=r,n=t)})}else n=Math.max.apply(Math,o(t));return n}function s(t,e,i){var n=!1;return f["default"].forEach(t,function(o,r){return e.call(i,o,r,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return f["default"].forEach(t,function(o,r){return e.call(i,o,r,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var o=[];if(f["default"].isBoolean(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;f["default"].forEachArray(t,function(e,a){e=i.call(n,e,a,t),a&&r===e||o.push(e),r=e})}else f["default"].forEachArray(t,function(e,r){e=i.call(n,e,r,t),f["default"].inArray(e,o)===-1&&o.push(e)});return o}function c(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n0?1:-1,a=t.left,u=t.width,c=u/4,p="M"+(a+c)+","+t.top+"H"+(a+3*c),f=h["default"].oneLineTrim(s,a+2*c,t.top,t.top+Math.abs(o)*r),d=l["default"].renderLine(n,p,i,T),y=l["default"].renderLine(n,f,i,x),g=[];return d.attr({opacity:0}),y.attr({opacity:0}),g.push(d),g.push(y),g},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),o.push(a)}),o},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=l["default"].renderLine(this.paper,i,"#ffffff",b);return n.attr({opacity:0}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),o.push(a)}),o},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var o=this,r=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),n=i[0],r=i[1];s[n]=l["default"].renderLine(o.paper,r,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,e.chartType,r)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},g,">")},t.prototype.animate=function(t){var e=this,i=y["default"].animation({opacity:1},g);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(g))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},g))},t.prototype.showAnimation=function(t){f["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var o=i[e][n].end;t.bound=o,l["default"].updateRectBound(t.rect,o)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){ -var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=y["default"].color(e.color),n=this.theme.selectionColor,o=l["default"].makeChangedLuminanceColor,r=n||o(i.hex,v),a=this.theme.borderColor;if(a){var s=y["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,v)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=f["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,n,o){if(i){var r=e||t===o?m:_;i.rect.attr({"stroke-opacity":r})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,n,o){var r=e||t===o?m:_;i.attr({"stroke-opacity":r})}),l["default"].forEach2dArray(this.groupMedians,function(i,n,o){var r=e||t===o?m:_;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var s=e[n][o],u=l["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var c=l["default"].renderText(t,s.start,i.start,r);c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("filter","url(#glow)"),a.push(c)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=n+"_rect",o.id=n,o.appendChild(r.node),t.defs.appendChild(o),r}e.__esModule=!0;var a=i(332),s=n(a),u=i(335),l=n(u),c=i(333),h=n(c),p=i(334),f=n(p),d=h["default"].browser,y=d.msie&&d.version<=8,g=700,m=700,_=1,v=.3,T=20,b=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},m))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,o=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,o),this.paper.setSize(n,o)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=f["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=h["default"].isNull(t);this.groupBars.forEach(function(n,o){var r=i||t===o?_:v;e.groupBars[o].attr({"fill-opacity":r}),e.groupLabels[o].attr({opacity:r}),e.groupLabels[o].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=this,r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=o._renderLabel(t,e[n][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var o=s["default"].renderText(t,e,n,i),r=o.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),o},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],o=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var r=n[n.length-1],a=0;a<=o;a+=1)n.push(r);return n})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),p=n(h),f=1,d=.3,y=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=e.options,a=e.position,s=o.colors,u=r.showDot?1:0,l=r.spline,c=this.lineWidth=p["default"].isNumber(r.pointWidth)?r.pointWidth:this.lineWidth,h=this.makeBorderStyle(o.dot.strokeColor,u,o.dot.strokeWidth),f=this.makeOutDotStyle(u,h),d=void 0;return d=l?this._getSplineLinesPath(n,r.connectNulls):this._getLinesPath(n,r.connectNulls),this.paper=t,this.theme=o,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,d,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=s,this.borderStyle=h,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=d,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,o){var r=i[o]||"transparent",a=c["default"].renderLine(t,e.join(" "),r,n);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){t.endDot&&e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=this,i=p["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,o){var r=t===o,a=i||r?f:d,s=e.groupDots[o];n.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,n){var o=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],o=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var c=s(t,1),h=c[0],p=h;r=t.length,a=p,o=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(n,o){var r=t[o+2],s=i._getAnchor(a,n,r,e);return a=n,Math.abs(s.y1-h.top)>Math.abs(h.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-r.top)>Math.abs(r.top-n.top)&&(s.y2=n.top),h=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([o.left,o.top,o.left,o.top]),l.unshift(["M",p.left,p.top,"C",p.left,p.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),o=[];return n.forEach(function(t){o=o.concat(t)}),e.isBeConnected&&(o[0]=o[0].slice(3)),o},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&m["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,n){var o=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,m["default"].isUndefined(o.radius)?b:o.radius),s={fill:o.fillColor||i,"fill-opacity":m["default"].isNumber(n)?n:o.fillOpacity,stroke:o.strokeColor||i,"stroke-opacity":m["default"].isNumber(n)?n:o.strokeOpacity,"stroke-width":o.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,o){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,n)};if(r.hasRangeData){var a=m["default"].extend({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,n)}return o&&(o.push(i.endDot.dot),i.startDot&&o.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!m["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===D||n)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===S&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===D?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),o=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(n){if("area"===this.chartType){var s=o;a=s.startLine,o=s.line,r=5,this._updateAreaOpacity(D)}else r=this.lineWidth;this._updateLineStrokeOpacity(D,o),this._updateLineStrokeWidth(o,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=f["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=y["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],o=this.outDotStyle;n&&!m["default"].isUndefined(i)&&(o=m["default"].extend({r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]})),t.attr(o),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],o=this._findDotItem(n,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(o){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(S)}else a=this.lineWidth;u&&!m["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(S,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),o&&(this._hideDot(o.endDot.dot,i,u),o.startDot&&this._hideDot(o.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!m["default"].isNull(this.selectedLegendIndex),n=this.dotOpacity,o=this._getPivotGroupDots();o&&o[t]&&o[t].forEach(function(t,o){var r=n;r&&i&&e.selectedLegendIndex!==o&&(r=E),t.endDot&&e._hideDot(t.endDot.dot,o,r),t.startDot&&e._hideDot(t.startDot.dot,o,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=m["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,o=this.position,r=this._getClipRectId(),s=this.clipRect;!v&&n&&(s?s.attr({width:0,height:n.height}):(s=a(i,o,n,r),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+r+")")}),s.animate({width:n.width},T,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,x);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=h["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(337),s=n(a),u={isBarChart:function(t){return t===r["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===r["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===r["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===r["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===r["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isPercentStack(e);return i&&n},isComboChart:function(t){return t===r["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===r["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===r["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===r["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===r["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===r["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===r["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(r["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===r["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===r["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===r["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===r["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===r["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===r["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===r["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===r["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===r["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===r["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&_["default"].print(v,"warn"):d["default"].isUndefined(t)||_["default"].print(v,"error"),e},e}(c["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),p=180,f=360,d=.01,y=Math.PI/p,g=700,m=1,_=.3,v=.2,T="overlay",b=20,x=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.paper=t;var o=r(e.options.radiusRange,1);return this.holeRatio=o[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,o){var r=n*y,a=o*y,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=o-n>p?1:0,f=["M",t,e,"L",s,u,"A",i,i,0,h,1,l,c,"Z"];return{path:f}},t.prototype._makeDonutSectorPath=function(t,e,i,n,o,r){var a=n*y,s=o*y,u=r||i*this.holeRatio,l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=t+u*Math.sin(a),f=e-u*Math.cos(a),d=t+i*Math.sin(s),g=e-i*Math.cos(s),m=t+u*Math.sin(s),_=e-u*Math.cos(s),v=o-n>p?1:0,T=["M",l,c,"A",i,i,0,v,1,d,g,"L",m,_,"A",u,u,0,v,0,h,f,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",T),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var o=this,r=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,c=e[u],h=o._renderSector({paper:o.paper,circleBound:r,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});h.node.setAttribute("class","auto-shape-rendering"),h.data("index",u),h.data("legendIndex",u+i),h.data("chartType",o.chartType),s.push({sector:h,color:c,angles:t.angles.end,ratio:l}),n.push(h)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],o=n.angles.startAngle,r=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,o,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=[i.cx,i.cy,i.r],o=0;this.sectorInfos.forEach(function(t){var i=t.angles,r={fill:t.color},a=g*t.ratio;0===i.startAngle&&i.endAngle===f&&(i.endAngle=f-d),r[e]=n.concat([i.startAngle,i.endAngle]);var s=h["default"].animation(r,a,">");t.sector.animate(s.delay(o)),o+=a}),t&&setTimeout(t,o)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=h["default"].color(e.color),n=s["default"].makeChangedLuminanceColor(i.hex,v),o=this.selectionColor||n;e.sector.attr({fill:o})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,n){var o=e||t===n?m:_;i.sector.attr({"fill-opacity":o})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,o){var r=void 0;t.colors&&(n.fill=t.colors[o]),i&&(r=s["default"].renderText(t.paper,i,t.labels[o],n),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(r),t.labelSet.push(r)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),p=n(h),f=1,d=.3,y=6,g=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=y,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=o.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,c=this._getLinesPath(n),h=this.makeBorderStyle(o.strokeColor,a,o.strokeWidth),p=this.makeOutDotStyle(a,h),f=t.set(),d=this.lineWidth=l?l:this.lineWidth,y=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=o,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,c,r,f)),this.groupLines=this._renderLines(t,c,r,d,f),this.groupDots=this._renderDots(t,y,r,a,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=r,this.borderStyle=h,this.outDotStyle=p,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=a,this.isShowArea=u,f},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,o){return e.map(function(e,r){var a=i[r]||"transparent",s=c["default"].renderLine(t,e.join(" "),a,n);return o.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var o=this;return e.map(function(e,r){var a=i[r]||"transparent",s=c["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":o.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=p["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var o=e||t===n?f:d;i.attr({"stroke-opacity":o})})},e}(u["default"]);e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(332),a=n(r),s=i(333),u=n(s),l=i(330),c=n(l),h=700,p=.8,f=1,d=.8,y=.3,g=.2,m=2,_=20,v=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":f,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,o){return n.map(function(n,r){var s=null;if(n){var u=i[r],l=a["default"].renderCircle(e.paper,n,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",o),l.data("index",r),s={circle:l,color:u,bound:n}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:p},h,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,o){var r=n[i][o];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+m,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=y;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=d),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;u["default"].isUndefined(n);){var o=i.getElementByPoint(t.left,t.top);o?o.attrs.opacity>y?n=o:(e.push(o),o.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),o=[{},i,n,{left:t.left-_,top:t.top-_}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,o),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],o=c["default"].color(n.color),r=this.theme.selectionColor,s=r||a["default"].makeChangedLuminanceColor(o.hex,g);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,n,o){if(i){var r=e||t===o?d:y;i.circle.attr({opacity:r})}})},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(332),a=n(r),s=i(333),u=n(s),l=i(342),c=n(l),h=100,p=0,f=4,d=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?f:p},t.prototype._renderBoxes=function(t,e,i,n){var o=this,r=c["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!o.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);o._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=o.colorSpectrum?0:o._getStrokeWidth(s===e),l=o.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var c=o._getBound(t);if(c){var h=o._getColor(t,e);a={rect:o._renderRect(c,h,u,l),seriesItem:t,color:h},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,o){var r=n.depth;r===e?n.fillOpacity=1:r===e+1?n.fillOpacity=.05*o:r")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var o=e._getBound(t.seriesItem,i,n);o&&a["default"].updateRectBound(t.rect,o)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,s){var u=a["default"].renderText(t,e[n][s].end,i,r);u.node.style.userSelect="none",u.node.style.cursor="default",o.push(u)})}),this.labelSet=o,o},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var s=a["default"].renderText(t,e[n],i,r);s.node.style.userSelect="none",s.node.style.cursor="default",o.push(s)}}),this.labelSet=o,o},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){p["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(332),c=n(l),h=i(336),p=n(h),f=i(334),d=n(f),y=i(333),g=n(y),m=g["default"].browser,_=m.msie&&m.version<=8,v="gray",T=100,b="tui-chart-series-group",x="#eee",E=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),_||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,o=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?r.getColor(u):x,p=c["default"].renderArea(n,l,{fill:h,opacity:1,stroke:v,"stroke-width":.2,"stroke-opacity":1,transform:d["default"].oneLineTrim(s,e,e,o.left/e,o.top/e)});return p.data("index",a),i.push(p),{sector:p,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!g["default"].isUndefined(i)&&this.sectors[i];return n&&!g["default"].isUndefined(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,T,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:v,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,o){var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},c=o.width-this.dimension.width,h=o.height-this.dimension.height,p=l.e/l.a,f=l.f/l.d,d=-c/l.a,y=-h/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-f*t);var g=u.e/u.a+p,m=u.f/u.d+f;g>=0?u.e=-p*u.a:g=0?u.f=-f*u.a:m=0&&o>0?e.e=0:r<0&&r<-n/i.a&&o<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,o=e.f/e.d,r=o+i.f/i.d;r>=0&&o>0?e.f=0:r<0&&r<-n/i.d&&o<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:d["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},o=t.set();return e.forEach(function(e){var i=e.position,r=c["default"].renderText(t,i,e.name||e.code,n);o.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),_||self.g.appendChild(r.node)}),o},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=o(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(335),l=n(u),c=i(332),h=n(c),p=i(337),f=n(p),d=i(334),y=n(d),g=i(351),m=n(g),_=i(333),v=n(_),T=.5,b=8,x=10,E=x/2,A=3,D=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,o){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,c=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,p=n.left+e._calculateSingleLegendWidth(a,r),f=p>=e.paper.width;e.isHorizontal&&f&&(n.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:c.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[o]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,o=this.paper.height,r=t;if(!this.isHorizontal&&n+2*i>o){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=o-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=v["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),D.click(function(){i._currentPageCounti&&(n=i),n+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return h["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,o={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?T:1,"text-anchor":"start"},a=h["default"].renderText(this.paper,o,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,o=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=y["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+o,a,a,r,r),l=this.paper.set(),c=this.paper.rect(n,o,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(c.node.setAttribute("class","auto-shape-rendering"),l.push(c),e.isChecked){var h=this.paper.path(u).attr({stroke:"#555","stroke-width":2});h.node.setAttribute("class","auto-shape-rendering"),l.push(h)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=h["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?T:1}):(n=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?T:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";v["default"].isNull(i)||v["default"].isUndefined(i)?e.attr(n,1):v["default"].isUndefined(i)||(v["default"].isNumber(t)&&i!==t?e.attr(n,T):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:f["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(333),r=n(o),a=i(337),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var o=(e-t)/20;return i.max=e+o+n,e/6>t?i.min=n:i.min=t-o+n,i},makeTickPixelPositions:function(t,e,i,n){var o=[];return i=i||0,e>0&&(o=r["default"].range(0,e).map(function(n){var o=0===n?0:n/(e-1);return o*t+i}),o[o.length-1]-=1),n&&o.push(n),o},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),o=Math.round(t.max*i),a=r["default"].range(n,o+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=r["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=r["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},c=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},h=function(){for(var t=arguments.length,e=Array(t),i=0;ic.dimension[e]+d},g=void 0;n.forEach(function(n){var s="M";n+=o,y(n)||(r?a?(s+=f+","+(p+n),s+="H"+(f+5),s+="M"+h+","+(p+n),s+="H"+(h-5)):u?(s+=f+","+(p+n),s+="H"+(f+5)):(s+=h+","+(p+n),s+="H"+(h-5)):(s+=f+n+","+p,s+="V"+(p+5)),isNaN(n)||(g=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(g),e.ticks.push(g)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,o=i.dimension,r=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),c=1-l/(u+l),h="M",p=n.top,f=s+o.width;if(a){var d=p;f+=t.seriesDimension.width*c,h+=f+","+d;var y=p+e;h+="V"+y}else{h+=s,p-=t.seriesDimension.height*c,h+=","+p+"H";var g=s+e;h+=g}t.set.push(r.path(h).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,o=n.position,r=o.top,a=o.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,c=t.additionalSize,h=t.isPositionRight,p=t.isCenter,f=t.isVertical,d=t.tickColor,y=t.seriesDimension,g=e,m=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;h?(v+=a+","+r,v+="V"+m):f?(T=r,u&&(_+=y.width/2),v+=_+","+T,p?(v+="V"+m,v+="M"+a+","+T,v+="V"+m):(b=r+g,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:c,isNegativeStandard:u,seriesDimension:y,lineSize:g}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:d,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,o=e.theme,u=e.additionalWidth,l=e.otherSideDimension,c=e.areaSize,h=e.tickCount,f=e.layout,d=r(n,o),y=a(n,o),g=f.dimension.height,m=f.dimension.width,_=f.position.top,v=f.position.left+u,T=y/2-l.width,b={top:_+g-d/2,left:v+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=v+m/2):i.isDiverging||(b.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+c/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+m/2:i.isColumnType&&(b.left=v+m/(h-1)/2)),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(337),l=n(u),c=8,h=3,p=function(){function t(){o(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),n=r(i[0],1),o=n[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=k["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=R["default"].deepCopy(e),"combo"!==n){var o=e.series;e.series={},e.series[n]=o}i=i?R["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var r=C["default"].get(i.theme,n,e.series),a=D["default"].get(i.chartType,e,r,i);return a.render(t),a.animateChart(),a}function r(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function c(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_SCATTER)}function h(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function f(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COMBO)}function d(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_PIE)}function y(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_MAP)}function g(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_RADIAL)}function m(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){C["default"].register(t,e)}function T(t,e){P["default"].register(t,e)}function b(t,e,i){M["default"].register(t,e),N["default"].addRendererType(t,i)}var x=i(335),E=n(x),A=i(358),D=n(A),S=i(360),M=n(S),L=i(361),C=n(L),w=i(363),P=n(w),O=i(364),R=n(O),I=i(365),k=n(I),B=i(366),N=n(B);i(367),i(368),i(473),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:c,heatmapChart:h,treemapChart:p,comboChart:f,pieChart:d,mapChart:y,radialChart:g,boxplotChart:m,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(359),s=n(a),u=i(342),l=n(u),c={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[r["default"].CHART_TYPE_COLUMN]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[r["default"].CHART_TYPE_LINE]&&n[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[r["default"].CHART_TYPE_AREA]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:n[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var o=this._findKey(t,e),r=c[o];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,n)},register:function(t,e){c[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(337),c=n(l),h=i(333),p=n(h);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=c["default"].unique(i);e&&(n=n.slice(0,2));var o=n.filter(function(t){return!!t});return o.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var r=o(n,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var o=new n;return o},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(362),c=n(l),h=i(333),p=n(h),f={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),f[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var r=o(n,2),a=r[0],s=r[1],u=t[a];(u||0===u)&&(p["default"].isArray(u)?e[a]=u.slice():p["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){p["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var o=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||o._pickValidTheme(e,n);p["default"].keys(a).length?(r[t]=JSON.parse(JSON.stringify(c["default"][n])),o._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var n=[],o=t.length,r=i||0,a=0;a=o&&(r=0);return n},_setSeriesColors:function(t,e,i,n){var o=this,r=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(r=i[t].colors,s=!0):(r=i.colors||c["default"].series.colors,s=!1),a=o._getSeriesThemeColorCount(n[t]),e[t].colors=o._makeEachSeriesColors(r,a,!s&&u),s||(u=(a+u)%r.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,n){var o=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(o=JSON.parse(JSON.stringify(c["default"])),this._overwriteTheme(e,o)):o=JSON.parse(JSON.stringify(e)),o.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,o.yAxis,"yAxis"),o.series=this._createComponentThemeWithSeriesName(i,e.series,o.series,"series"),this._setSeriesColors(i,o.series,e.series,n),o},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return p["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),p["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;p["default"].forEach(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i){var n=f[t];if(!n)throw new Error("Not exist "+t+" theme."); -var o=this._pickSeriesNames(e,i),r=this._initTheme(t,n,o,i);return this._inheritThemeFont(r,o),this._copySeriesColorThemeToOther(r),r}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",o="lighter",r="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:o},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:o},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:o}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(333),a=n(r),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=u(r)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],n=c["default"].toArray(t.getElementsByTagName("TR"));c["default"].forEach(n,function(t,e){var n=0===e?"TH":"TD",o=c["default"].toArray(t.getElementsByTagName(n)),r=c["default"].pluck(o,"innerText");i.push(r)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){var t=location,e=t.hostname;A["default"].imagePing("https://www.google-analytics.com/collect",{v:1,t:"event",tid:"UA-115377265-9",cid:e,dp:e,dh:"chart"})},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){A["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=A["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;A["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=_["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||c["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return T["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=d["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,o=n.getLegendVisibility(),r=p["default"].filterCheckedRawData(n.rawData,o),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),g["default"].renderFontFamily(e,this.theme.chart.fontFamily),d["default"].append(t,e);var u=this.readyForRender();g["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:o},e),this.chartContainer=e,this.paper=s},t.prototype.rerender=function(t,e){var i=this.dataProcessor;e||(e=p["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.onChangeCheckedLegends=function(t,e,i){this.rerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var o=this.readyForRender(),r=o.dimensionMap.chart;g["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.componentManager.render("resize",o,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,o=-1,r=0;r=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(336),l=n(u),c=i(372),h=n(c),p=i(373),f=n(p),d=i(374),y=n(d),g=i(375),m=n(g),_=i(377),v=n(_),T=i(366),b=n(T),x=i(383),E=n(x),A=i(385),D=n(A),S=i(386),M=n(S),L=i(387),C=n(L),w=i(393),P=n(w),O=i(395),R=n(O),I=i(396),k=n(I),B=i(400),N=n(B),F=i(407),G=n(F),H=i(411),V=n(H),j=i(412),z=n(j),W=i(414),Y=n(W),U=i(415),X=n(U),Z=i(416),K=n(Z),q=i(418),J=n(q),Q=i(419),$=n(Q),tt=i(420),et=n(tt),it=i(421),nt=n(it),ot=i(422),rt=n(ot),at=i(424),st=n(at),ut=i(425),lt=n(ut),ct=i(426),ht=n(ct),pt=i(333),ft=n(pt),dt={axis:h["default"],plot:f["default"],radialPlot:m["default"],legend:E["default"],spectrumLegend:D["default"],circleLegend:M["default"],tooltip:C["default"],groupTooltip:P["default"],mapChartTooltip:R["default"],mapChartEventDetector:k["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:z["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:nt["default"],treemapSeries:rt["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:ht["default"],chartExportMenu:v["default"],title:y["default"]},yt=function(){function t(e){o(this,t);var i=e.options.chart,n=ft["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,r=ft["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:n,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,n){return t=t||this.options[e],t=ft["default"].isArray(t)?t[n]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,o=i.index||0,r=dt[e],a=r.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes,n="axis"===a?t:a,i.theme=this.theme[n],i.options=this.options[n],i.theme||"rightYAxis"!==n||(i.theme=this.theme.yAxis),i.options||"rightYAxis"!==n||(i.options=this.options.yAxis),"series"===n&&this.seriesTypes.forEach(function(e){return 0!==t.indexOf(e)||(i.options=i.options[e]||i.options,i.theme=i.theme[e],ft["default"].isArray(i.options)&&(i.options=i.options[o]||{}),!1)}),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=r(i);s&&(s.componentName=t,s.componentType=a,this.components.push(s),this.componentMap[t]=s)},t.prototype._makeDataForRendering=function(t,e,i,n,o){var r=Object.assign({paper:i},o);return n&&(Object.assign(r,n),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,n){var o=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=o.drawingToolPicker.getPaper(n,r.drawingType),c=o._makeDataForRendering(s,u,l,e,i),h=r[t](c);h&&!h.paper&&(a=h)}return a});n&&l["default"].append(n,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];return e[o]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,o=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},c=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),o||this._renderTickArea(t,e,n),a&&s&&!c&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,o=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(n/2,10)+1,u=o.slice(0,s),l=o.slice(s-1,n),c=r/s,h=r+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=c,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,h)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,o=n.positionRatio,r=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;o&&(l=u*o),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,o=i.isCenter,r=t.width;this.isLabelAxis=e,n?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=o?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,o=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=o[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,o=this.dataProcessor.getOption("yAxis"),r=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:r.diverging,isYAxisCenter:o&&"center"===o.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var o=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,c=r.isPositionRight,p=a?t:0,f=this.isYAxis,d=this.data.options,y=d.isCenter,g=d.divided,m=h["default"].makeTickPixelPositions(t*u,e,0,p),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=p?l+1:l;m.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:m,isVertical:f,isCenter:y,isDivided:g,additionalSize:n,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:c,tickColor:o,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var o=this.data,r=o.sizeRatio,a=void 0===r?1:r,s=o.remainLastBlockInterval,u=s?t:0,l=h["default"].makeTickPixelPositions(t*a,e,0,u),c=l[1]-l[0];this._renderLabels(l,i,c,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,c=i/_,h=this.layout.position,p=h.top,f=h.left,d=p+v,y=f,g=this.options.labelMargin||0;t.forEach(function(t,h){var p=t+(n||0),f={};a?(f.top=p+l,f.left=i+g):(f.top=d+g,f.left=y+p+c),r.renderRotatedLabel({degree:u,labelText:e[h],paper:o.paper,positionTopAndLeft:f,set:o.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,c=this.layout,h=this.data.isPositionRight,p=this.theme.label,f=this.options,d=f.labelMargin,g=void 0===d?0:d,m=f.pointOnColumn,_=f.isCenter,v=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),T=v&&m,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var f=u+n,d=i/2,m=o._isOverLapXAxisLabel(e[l],u,t[l+1]),x={};f<0||!a&&b&&m||(x=a?o._getYAxisLabelPosition(c,{labelPosition:f,isCategoryLabel:s,halfLabelDistance:d,isPositionRight:h}):o._getXAxisLabelPosition(c,{labelMargin:g,labelHeight:y["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:f,isCategoryLabel:s,isLineTypeChart:v,isPointOnColumn:T,halfLabelDistance:d}),x.top=Math.round(x.top),x.left=Math.round(x.left),r.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:e[l],paper:o.paper,positionTopAndLeft:x,set:o.axisSet,theme:p}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=y["default"].getRenderedLabelWidth(t);return!m["default"].isUndefined(i)&&i-e=0&&ne;var n=i.findAbsoluteCategoryIndex(t),o=i.findAbsoluteCategoryIndex(e);return n>=0&&n>o},t.prototype._renderOptionalLine=function(t,e,i,n){var o=this._createOptionalLinePositionMap(n,t,e),r=void 0;return o.start>=0&&o.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,r=this._renderLine(o.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,n){var o=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return o._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=o._renderBand(t.start+o.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,o,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,o,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+o.dimension.height),n=e.paper.path(i);n.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.left,u=a.top,l=n[1]-n[0];n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+o.dimension.width),a=e.paper.path(n);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=f["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),o=t-n,r=f["default"].makeTickPixelPositions(n,e),a=f["default"].makeTickPixelPositions(o,e,n+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=f["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,o){e._animateItemForAddingData(i,t,function(t){n[o].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,o){var r=t.getBBox();r.x-e.tickSize0&&p<180?"end":p>180&&p<360?"start":"middle",u.push({left:f.x,top:i-f.y,anchor:d})}return u}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(376),l=n(u),c=i(351),h=n(c),p=i(335),f=n(p),d=i(360),y=n(d),g=i(333),m=n(g),_=f["default"].COMPONENT_TYPE_RAPHAEL,v=f["default"].RADIAL_PLOT_PADDING,T=f["default"].RADIAL_MARGIN_FOR_CATEGORY,b=f["default"].RADIAL_CATEGORY_PADDING,x=function(){function t(e){o(this,t),this.className="tui-chart-plot-area",this.options=m["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=y["default"].get(_,"radialPlot"),this.drawingType=_}return t.prototype._renderPlotArea=function(t,e,i,n){var o={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(o)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,a=n.top,s=i.width,u=i.height;s=s-v-T,u=u-v-T;var l=h["default"].sum([s/2,v/2,T/2,o]),c=u/2-v/2-T/2-a,p=t.yAxis.tickCount,f=t.xAxis.labels.length;return r({width:s,height:u,centerX:l,centerY:c,angleStepCount:f,stepCount:p})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,r=n.top,s=i.width,u=i.height;s=s-v-b,u=u-v-b;var l=h["default"].sum([s/2,v/2,b/2,o]),c=u/2-v/2-b/2-r,p=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:c,angleStepCount:p})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,o=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";o=r+"~"+a}i.push(o)}return i}function l(t,e){for(var i=[],n=0;n",A["default"].forEach(t,function(t,o){var r=0!==i||0===o?' class="number"':"",a="<"+n+r+">"+t+"";e+=a}),e+=""}),e+=""}function d(t){var e=x["default"].oneLineTrim(g,f(t));return e}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,o=e.itemDelimiter,r=void 0===o?",":o,a=t.length-1,s="";return A["default"].forEachArray(t,function(t,e){var i=t.length-1;A["default"].forEachArray(t,function(t,e){var n=A["default"].isNumber(t)?t:'"'+t+'"';s+=n,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),m=i(380),_=n(m),v=i(335),T=n(v),b=i(334),x=n(b),E=i(333),A=n(E),D={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},S={xls:d,csv:y},M=[].concat(r(T["default"].DATA_EXTENSIONS)),L={downloadData:function(t,e,i,n){var o=a(i),r=D[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=S[e](o,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=D[e]+s),_["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=A["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return M}};Object.assign(L,{_makeCsvBodyWithRawData:y,_makeXlsBodyWithRawData:d,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:c,_get2DArrayFromHeatmapRawData:p,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=h["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),o=[],r=0;r0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();m["default"].CustomEvents.mixin(x),r.componentType="legend",r.Legend=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){ -for(var e=0,i=Array(t.length);e5;n=r?n.substr(0,4):String(o);var a=n+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return y["default"].isArray(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?h["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||f["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=o),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(388),s=n(a),u=i(393),l=n(u),c=i(395),h=n(c),p=i(342),f=n(p),d=i(333),y=n(d);r.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(390),h=n(c),p=i(335),f=n(p),d=i(342),y=n(d),g=i(391),m=n(g),_=i(333),v=n(_),T="#aaa",b=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(v["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=m["default"].tplDefault;return y["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):y["default"].isPieChart(this.chartType)||y["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=m["default"].tplPieChart:this.dataProcessor.coordinateType?e=m["default"].tplCoordinatetypeChart:y["default"].isBulletChart(this.chartType)?e=m["default"].tplBulletChartDefault:y["default"].isHeatmapChart(this.chartType)&&(e=m["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=m["default"].tplBoxplotChartDefault;return v["default"].isNumber(t.outlierIndex)&&(e=m["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),o=this._findTooltipColor(t,e,n);return y["default"].isBoxplotChart(this.chartType)&&v["default"].isNumber(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(o=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.chartType=this.chartType,n.cssText="background-color: "+o,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return y["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},v["default"].pick(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=y["default"].isBarTypeChart(this.chartType),o=y["default"].isBoxplotChart(this.chartType),r=(n||o)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return y["default"].isBulletChart(this.chartType)?s=a:y["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?T:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=f["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=f["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var o=n.chartType,r=n.label,a=v["default"].extend({chartType:o,legend:r,legendIndex:i,index:t.groupIndex},e);return y["default"].isBoxplotChart(o)&&v["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,o=this.labelFormatter,r={legend:t,label:n||(i.label?i.label:""),category:e};return o&&(r=o(i,r,"")),r.category=e,v["default"].extend(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=y["default"].isTreemapChart(this.chartType),n={},o={};return v["default"].isArray(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=y["default"].isBulletChart(r),s=e.map(function(e,o){var s=t.dataProcessor.makeTooltipCategory(i,o,t.isVertical),u=a?i:o;return e?t._makeTooltipDatum(n[r][u],s,e):null});o[r]||(o[r]=[]),o[r].push(s)},i),o},e}(l["default"]);h["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(333),a=n(r),s=i(330),u=n(s),l=i(364),c=n(l),h=i(335),p=n(h),f=i(336),d=n(f),y=i(342),g=n(y),m=i(334),_=n(m),v=function(){function t(e){o(this,t);var i=g["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=c["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?p["default"].TOOLTIP_PIE_ANIMATION_TIME:p["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=p["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?o-=r+a:e.indexOf("center")>-1&&r?o-=r/2:o+=a,o},_makeTopPositionOfNotBarChart:function(t,e,i,n){var o=t,r=i||0;return e.indexOf("bottom")>-1?o+=r+n:e.indexOf("middle")>-1&&r?o+=r/2:o-=r+s["default"].TOOLTIP_GAP,o},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,o=t.alignOption,r=void 0===o?"":o,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,c=e.left-this.layout.position.left+i.left,h=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(c,r,a,u),top:this._makeTopPositionOfNotBarChart(h,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},r["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=o.height-(i.height||0),u=o.width,l=i.left+i.width+n.left-e.left,c=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(c,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=f["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-o.width)/2+n.left-e.left,top:i.top+i.height/2-r+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,o=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",o=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",o=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:o})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,o=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var c=e.dimension[n],h=i[n],p=t[o]+(h+c)*u;t[o]=p}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),o=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},c=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,o)||c!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,c),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,o),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,o),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(o,e.silent),h["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var p=this._makeTooltipPosition(r["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,p,i),this.eventBus.fire("hoverSeries",o,e.chartType),this._fireAfterShowTooltipPublicEvent(o,{element:t,position:p},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){h["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,o=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",o,r),this._fireBeforeHideTooltipPublicEvent(o,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",o,r),this._isChangedIndexes(this.prevIndexes,o)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(o,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){r["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(392),r=n(o),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
',HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),o=e[0],r=e[1],a=new RegExp("{{\\s*"+o+"\\s*}}","g");n=n.replace(a,String(r).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){ -if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new w(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(394),h=n(c),p=i(335),f=n(p),d=i(336),y=n(d),g=i(334),m=n(g),_=i(362),v=n(_),T=i(391),b=n(T),x=i(333),E=n(x),A=i(342),D=n(A),S=f["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,M=f["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,L=f["default"].SERIES_EXPAND_SIZE,C=f["default"].PUBLIC_EVENT_PREFIX,w=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevIndex=null,n.isBullet=D["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var o=b["default"].tplGroupItem,r=b["default"].tplGroupCssText,a=D["default"].isBarTypeChart(this.chartType),s=D["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,n),c=void 0,h=e.map(function(t,e){var i=t.type,n="data"!==i&&c!==i,a="";return c=i,t.value?(n&&(a=b["default"].tplGroupType({type:i})),a+=o(E["default"].extend({cssText:r({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:h})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=S:this.options.align=M)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new h["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var o=e.originalTheme[n].colors;o.forEach(function(e,o){var r=t[n]||t;r[o]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var o=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:o}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),o=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=v["default"].series.colors.slice(0,n.length);return E["default"].pluck(n,"chartType").map(function(e){r!==e&&(o=t[e]?t[e].colors:a,i=0),r=e;var n=o[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,o=this.suffix;return t.map(function(t,r){var a={value:t.label,type:t.type,suffix:o,legend:""},s=void 0;return i.isBullet?s=n.getLegendItem(e):(s=n.getLegendItem(r),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=y["default"].create("DIV","tui-chart-group-tooltip-sector");y["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start,top:L}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:L,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,o){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(m["default"].renderDimension(r,s.dimension),m["default"].renderPosition(r,s.position),y["default"].addClass(r,"show")),o&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();y["default"].hasClass(e,"show")?y["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),y["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),o=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,o,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:o},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(C+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(C+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),y["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(C+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=function(){function t(e,i,n,r){o(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=r,this.positions={},this._setData(e,i,n,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var o=this._makeVerticalData(t,e,n.align),r=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=o,this.subData=r):(this.mainData=r,this.subData=o),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,o=9,r=5,s=n?o:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var o=void 0;return t<-n.areaPosition&&(o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(o,i,n)>0?-n.areaPosition:o),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var o=this._makePositionValueDiff(t,i,n);if(o>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});r<-n.areaPosition?t-=o:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,o=this.subData,r=this.positions[i];return r||(r={},r[n.positionType]=this._makeMainPositionValue(t,e,n),r[o.positionType]=this._makeSubPositionValue(t,o),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new _(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(389),h=n(c),p=i(390),f=n(p),d=i(391),y=n(d),g=i(333),m=n(g),_=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return y["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=m["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(h["default"]);f["default"].mixin(_),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),p=i(382),f=n(p),d=i(336),y=n(d),g=i(334),m=n(g),_=i(333),v=n(_),T=function(t){function e(i){o(this,e);var n=r(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=h["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){m["default"].renderDimension(t,this.layout.dimension),m["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,y["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||y["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*h["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].browser.firefox?f["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):f["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(398),a=n(r),s=i(399),u=n(s),l=i(335),c=n(l),h=i(382),p=n(h),f=i(342),d=n(f),y=i(336),g=n(y),m=i(334),_=n(m),v=i(333),T=n(v),b=function(){function t(e){if(o(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=d["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?c["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=d["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=c["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=_["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),o=n.dimension,r=n.position;_["default"].renderDimension(t,o),_["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return g["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),g["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=_["default"].getStyle(this.mouseEventDetectorContainer).height,_["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),o=n.left,r=n.right,a=n.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!T["default"].isUndefined(i)||i){var h=r-u,p=o+u;t=Math.min(Math.max(t,p),h)}return l.x=t-o+s.left-c["default"].CHART_PADDING,T["default"].isUndefined(e)||(l.y=e-a+s.top-c["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=_["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=d["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){g["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),g["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){p["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();T["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(342),a=n(r),s=i(337),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n,r,s){o(this,t),this.isLineType=a["default"].isLineTypeChart(n,s),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var n=e,o=i/2;return c["default"].range(0,t).map(function(){var t={min:n-o,max:n+o};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),o=this._getRanges(e,i||0,n);return o[e-1].max-=1,o},t.prototype._makeNormalData=function(t,e,i){var n=e-1,o=t/n,r=i||0;return c["default"].range(0,n).map(function(){var e=u["default"].min([t+r,o+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",o=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[o]):this._makeNormalData(t.dimension[n],e,t.position[o])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],n=void 0,o=void 0;return this.isLineType?(o=parseInt(i.max-(i.max-i.min)/2,10),n={start:o,end:o}):n={start:i.min-(e||0),end:i.max-(e||0)},n},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,r=t.top<=n&&t.bottom>=n;return o&&r},t.prototype.findData=function(t,e,i){var n=1e4,o=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,o=t.sendData)})}return o},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return f["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,o=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return o&&(e=i.sendData),!o}),e},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,o=e.series,r=o.zoomable,s=o.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(n)?g["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?d["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?c["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=o;var r=i(342),a=n(r),s=i(401),u=n(s),l=i(404),c=n(l),h=i(405),p=n(h),f=i(406),d=n(f),y=i(396),g=n(y);o.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(402),h=n(c),p=i(403),f=n(p),d=i(333),y=n(d),g=50,m=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(y["default"].extend(n,h["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new f["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,g,n)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(397),r=n(o),a=i(335),s=n(a),u=i(336),l=n(u),c=i(334),h=n(c),p=i(382),f=n(p),d=i(333),y=n(d);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){h["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=r["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,r["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),f["default"].on(document,"mousemove",this._onDrag,this),f["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),f["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),f["default"].off(document,"mousemove",this._onDrag,this),f["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),f["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,n=Math.abs(e-this.startLayerX),o=this.dragSelectionElement;o.style.left=i+"px",o.style.width=n+"px",l["default"].addClass(o,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(y["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),n=i[1]-i[0];return 0===n?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===n&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),o=n[1]-n[0]; -this.prevDistanceOfRange!==o&&(this.prevDistanceOfRange=o,this.reverseMove=i,this.eventBus.fire("zoom",n))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),y["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):r["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,o(a)),this.lastGroupIndex=r,(i=[]).concat.apply(i,o(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var n={},o=1e5,r=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+n||ea+o},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!y["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(h["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),p=i(342),f=n(p),d=i(336),y=n(d),g=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=y["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN),y["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),p=i(335),f=n(p),d=i(342),y=n(d),g=f["default"].OVERLAPPING_WIDTH,m=f["default"].TEXT_PADDING,_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:o,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+g),e},e.prototype._makeBarChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=n.ratioDistance,p=n.value,f=n.startRatio,d=n.stack,y=r*h,g=this._calculateAdditionalLeft(p),m=r*f,_=a+m+g,v=d!==e.prevStack,T=s*u>l,b=T?c:s,x=void 0;if(!i||!this.options.diverging&&v){var E=i?this.dataProcessor.findStackIndex(d):o;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}p>=0?(x=_+e.plusLeft,e.plusLeft+=y):(e.minusLeft-=y,x=_+e.minusLeft),e.prevStack=d;var A=e.top+c-s/2;return T||(A+=(c-s)/2*(u-1)),this._makeBound(y,s,A,_,x)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout,o=n.dimension,r=o.width,a=o.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,n){var o=n*u.groupSize+s,r={baseTop:o,top:o,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+m)/2},e}(l["default"]);h["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(333),a=n(r),s=i(335),u=n(s),l=i(336),c=n(l),h=i(342),p=n(h),f=i(334),d=n(f),y=i(360),g=n(y),m=i(332),_=n(m),v=600,T=a["default"].browser,b=T.msie&&7===T.version,x=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,A=u["default"].CLASS_NAME_SERIES_LABEL,D=function(){function t(e){o(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=g["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=x,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,o=e.labelSuffix,r=void 0===o?"":o,s=d["default"].addPrefixSuffix,u=d["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(d["default"]);return l(t,n,r)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),p["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=d["default"].isOldBrowser()?1:0;d["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,o=n-i,r=0,a=0;return i<=0&&n>=0?(r=(o+i)/o*t,a=(o-n)/o*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return c["default"].hasClass(t,A)?t:c["default"].findParentByClass(t,A)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&_["default"].animateOpacity(this.labelSet,0,1,v)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),o=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(o,e.index),s=void 0;return a["default"].isExisty(r)&&(s={chartType:n.chartType,legend:n.label,legendIndex:i},s.index=r.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&c["default"].hasClass(this.seriesLabelContainer,"show")&&(c["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&c["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(c["default"].removeClass(this.seriesLabelContainer,"show"),c["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=i(410),u=n(s),l=i(342),c=n(l),h=i(351),p=n(h),f=i(334),d=n(f),y=i(332),g=n(y),m=i(333),_=n(m),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,x=function(){function t(){o(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var h=o/(l+1),p=this.options.barWidth||this.options.pointWidth,f=h*b,d=a+s;f=this._getBarWidthOptionSize(h,p)||f,c["default"].isColumnChart(this.chartType)&&(d=e-d),c["default"].isBoxplotChart(this.chartType)&&a&&(d-=2*a),u={baseBarSize:e,groupSize:o,barSize:f,pointInterval:h,basePosition:d,itemCount:l,firstAdditionalPosition:h}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),o=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,o=t.endLabel,r={end:e.decorateLabel(o)};return _["default"].isExisty(i)&&(r.start=e.decorateLabel(n)),r})}),l=void 0;return l=c["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,o,r):u["default"].boundsToLabelPositionsForColumnChart(n,o,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return d["default"].formatValue({value:p["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,o=t.height;return{left:i+n/2,top:e+o/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var o=t.bounds[n],r=void 0;return o&&i&&(r=e._makeStackedLabelPosition(o.end)),{end:r}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,o=c["default"].isNormalStack(this.options.stackType);return t.map(function(t){var r=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(o){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],o=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,n),l=!0,h=c["default"].isNormalStack(this.options.stackType),p=c["default"].isBarChart(this.chartType),f=p?"width":"height",y=p?"left":"top",m=p?1:-1;return h&&(u.forEach(function(t,o){var r=i[o],a=n[o];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(d["default"].formatToComma(r))}),n.length&&t.push({end:e.decorateLabel(d["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,c=e._makeStackedLabelPosition(u),h=e._makeStackedLabelPosition(l),p=i[a],d=n[a],_=g["default"].getRenderedTextSize(p,o.fontSize,o.fontFamily),v=g["default"].getRenderedTextSize(d,o.fontSize,o.fontFamily),b=(u[f]+_[f])/2,x=(l[f]+v[f])/2;c[y]+=(b+T)*m,h[y]-=(x+T)*m,t.push({end:c}),n.length&&t.push({end:h})})),this.graphRenderer.renderSeriesLabel(t,s,u,o,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();x.mixin=function(t){Object.assign(t.prototype,x.prototype)},e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,o){var r=t.value,a=r>=0,s={end:o(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=r<0,s.start=o(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,o){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),o=!!o,t.map(function(t,o){var s=e[o];return t.map(function(t,e){var o=s[e].end;return r._makePositionMap(t,o,a,i,n)})},o)},_makePositionForBarChart:function(t,e,i,n,o){var r=s["default"].getRenderedLabelWidth(i,n),a=t.left;return o?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,o){var r=t.top;return o?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],o=void 0;return n&&(o=i._makePositionForBoundType(n)),o});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),p=i(335),f=n(p),d=i(342),y=n(d),g=i(334),m=n(g),_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:n,left:i,width:t,height:0},end:{top:o,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=Math.abs(r*n.ratioDistance),p=r*n.startRatio,d=a+p+f["default"].SERIES_EXPAND_SIZE,y=n.stack!==e.prevStack,g=s*u>l,m=g?c:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&y){var T=i?this.dataProcessor.findStackIndex(n.stack):o;e.left=e.baseLeft+m*T,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=h,_=d+e.plusTop):(_=d+e.minusTop,e.minusTop+=h),e.prevStack=n.stack,v=g?e.left+c-s/2:e.left+c-s/2+(c-s)/2*(u-1),this._makeBound(s,h,v,d,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+f["default"].TEXT_PADDING)/2},e}(l["default"]);h["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{ -constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new p(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),p=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(p),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(337),a=n(r),s=i(335),u=n(s),l=i(342),c=n(l),h=i(351),p=n(h),f=i(334),d=n(f),y=i(333),g=n(y),m=u["default"].SERIES_EXPAND_SIZE,_=u["default"].SERIES_LABEL_PADDING,v=u["default"].MAX_HEIGHT_WORD,T=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){o(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,o=this._getSeriesDataModel(),r=t||n||0,a=o.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=r/(a>1?a-1:a):(l=r/a,u+=l/2),o.map(function(t){return t.map(function(t,e){var n=void 0;return g["default"].isNull(t.end)||(n={left:u+l*e,top:s+i-t.ratio*i},g["default"].isExisty(t.startRatio)&&(n.startTop=s+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,o=this.axisDataMap.xAxis,r=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return o.sizeRatio&&(l=p["default"].multiply(s,o.positionRatio),s=p["default"].multiply(s,o.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return g["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:r+n-t.ratioMap.y*n},g["default"].isExisty(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var o=t.top,r=void 0;return r=c["default"].isValidStackOption(this.options.stackType)?(t.startTop+o-i)/2+1:e>=0&&!n||e<0&&n?o-i-_:o+_},t.prototype._makeLabelPosition=function(t,e,i,n,o){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,o)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=a["default"].pivot(this.seriesData.groupPositions),o=d["default"].getRenderedLabelHeight(v,e);return t.map(function(t,e){return t.map(function(t,r){var a=n[e][r],s=i._makeLabelPosition(a,o,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,o,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,o=t.startLabel,r={end:e.decorateLabel(i)};return n&&(r.start=e.decorateLabel(o)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,g["default"].bind(this._renderGraph,this)),this.animateComponent(!0),g["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=T,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=d["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+m},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,o=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(o,s);r&&(a+=e);var l=this._makePositions(a),c=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,c)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){g["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(335),h=n(c),p=i(351),f=n(p),d=i(376),y=n(d),g=i(333),m=n(g),_=h["default"].COMPONENT_TYPE_RAPHAEL,v=h["default"].RADIAL_PLOT_PADDING,T=h["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),p=i(342),f=n(p),d=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a=0&&!o&&(o=e),o},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,o=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||o,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return f["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,o=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:o,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return o&&o.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(d),s.componentType="series",s.AreaChartSeries=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new g(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(408),h=n(c),p=i(417),f=n(p),d=i(333),y=n(d),g=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:o},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,o)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,o=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:o,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&r&&(this.onSelectSeries({chartType:o,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(417),h=n(c),p=i(335),f=n(p),d=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0&&(t%=T),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=ei?T-(e-i):T},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,o=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),c=this.options.startAngle,h=.5*n;if(a&&(h+=h*a),!l)return null;var p=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=c+a,l=c+a/2,p={start:{startAngle:c,endAngle:c},end:{startAngle:c,endAngle:u}},f={cx:i,cy:o,angle:l};return c=u,{ratio:r,angles:p,centerPosition:e._getArcPosition(g["default"].extend({r:h},f)),outerPosition:e._getArcPosition(g["default"].extend({r:n+e.legendLongestWidth/2+b},f))}});return p},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/x,10)+1;return e&&t%x===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===C,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?E:A,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=n/2+s,c=o/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,c+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,c-=u):this._isInQuadrantRange(2,3)?c-=u:this._isInQuadrantRange(3,3)?(l+=u,c-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?c+=u:this._isInQuadrantRange(4,4)&&(l+=u,c+=u)),{cx:l,cy:c}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*D),top:t.cy-t.r*Math.cos(t.angle*D)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,o)},e.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",g["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:o},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return _["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,o=n.showLegend,r=n.showLabel,a=_["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=_["default"].getRenderedTextSize(this.valueLabels[0],S,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&o&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=g["default"].extend({},e.middle);i.left-1&&o!==i;n&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:o,legendIndex:e.legendIndex}},r),n&&o>-1&&(this.prevClickedIndex=o))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(c["default"]);s.componentType="series",s.PieChartSeries=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new p(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(410),h=n(c),p=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){ -var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var o=this.layout,r=o.dimension.height,a=o.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,o=i.height,r=n/this.dataProcessor.getCategoryCount(!1),a=o/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(r,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),o=n.ratio,r=n.label;this.eventBus.fire("showWedge",o,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,o=this.theme.label,r=this.selectedLegendIndex,a=h["default"].boundsToLabelPositions(i,n,o),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,o,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,o=this._getSeriesDataModel(),r=v["default"].extend({},this.layout.dimension,this.layout.position),a=o.findSeriesItemsByParent(t);return i=i||r,e=v["default"].extend(e||{},h["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],o=null;return i&&n(e)&&(o={end:i}),o},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var o=t.findParentByDepth(i.id,e.depth+1);o&&o.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),o=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=f["default"].boundsToLabelPostionsForTreemap(a,n,o);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){m["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(351),r=n(o),a=i(337),s=n(a),u=i(333),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/r["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale(l["default"].pluck(t,"value"),e,i),o=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return o},_worst:function(t,e,i,n){var o=t*t,r=n*n;return Math.max(r*i/o,o/(r*e))},_changedStackDirection:function(t,e,i,n){var o=s["default"].min(e),r=s["default"].max(e),a=this._worst(t,o,r,i),u=this._worst(t+n,Math.min(o,n),Math.max(r,n),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,d=h+e.plusTop):(d=h+e.minusTop,e.minusTop+=l);var y=e.left+r-a/2,g=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:y+a/2}});return{start:{top:h,left:y,width:a,height:0},end:{top:d,left:y,width:a,height:l},min:{top:s*(1-n.minRatio)+p,left:y,width:a,height:0},max:{top:s*(1-n.maxRatio)+p,left:y,width:a,height:0},median:{top:s*(1-n.medianRatio)+p,left:y,width:a,height:0},outliers:g}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=y["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+v)/2},e}(l["default"]);h["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new x(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(334),h=n(c),p=i(335),f=n(p),d=f["default"].BULLET_TYPE_ACTUAL,y=f["default"].BULLET_ACTUAL_HEIGHT_RATIO,g=f["default"].BULLET_TYPE_RANGE,m=f["default"].BULLET_RANGES_HEIGHT_RATIO,_=f["default"].BULLET_TYPE_MARKER,v=f["default"].BULLET_MARKERS_HEIGHT_RATIO,T=f["default"].BULLET_MARKER_DETECT_PADDING,b=f["default"].MAX_HEIGHT_WORD,x=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var o=t._makeBulletChartBound.bind(t,i,n),r=e.map(o);return t._updateIterationData(n,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=o,u=n,l=o):(u=o,l=n);var c=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:c}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,o=void 0;return n===d?o=this._makeBarBound(i,y,t,e):n===g?o=this._makeBarBound(i,m,t,e):n===_&&(o=this._makeLineBound(i,v,t,e)),o.type=n,o},e.prototype._makeBarBound=function(t,e,i,n){var o=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*o,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,o){return{top:t.top-o,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,o){return{top:t.top+(e.itemWidth-i)/2,left:t.left+o-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var o=i.itemWidth,r=i.valueAxisWidth,a=o*e,s=r*t.endRatio,u=T,l=T,c=void 0,h=void 0;return this.isVertical?(c=n.top-s,h=n.left+(o-a)/2,l=a):(c=n.top+(o-a)/2,h=n.left+s,u=a),{top:c,left:h,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==g&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,o=h["default"].getRenderedLabelHeight(b,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==g&&e.push(i._makePositionByBound(t,o))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,o={};if(this.isVertical){var r=t.width||t.length;o.top=i-e,o.left=n+r/2}else{var a=t.width||0,s=t.height||t.length;o.top=i+s/2,o.left=n+5+(a||0)}return o},e}(l["default"]);s.componentType="series",s.BulletChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new M(t)}e.__esModule=!0,e["default"]=r;var a=i(333),s=n(a),u=i(427),l=n(u),c=i(335),h=n(c),p=i(336),f=n(p),d=i(351),y=n(d),g=i(334),m=n(g),_=i(382),v=n(_),T=i(342),b=n(T),x=h["default"].COMPONENT_TYPE_DOM,E=h["default"].MAP_CHART_ZOOM_AREA_HEIGHT,A=h["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=h["default"].CHART_PADDING,S=s["default"].browser.msie&&s["default"].browser.version<=8,M=function(){function t(e){o(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=x,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!S){var i=y["default"].sum([t.positionMap.series.top,-E,A]);this.isMapLegendTop&&(i=t.positionMap.legend.top-A);var n={top:i,right:D};e=f["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,m["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return f["default"].hasClass(t,e)||(i=f["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),o=this._calculateMagn(n);return o>5?this.magn=5:o<1?this.magn=1:o>=1&&this._zoom(o),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(392),r=n(o),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),o=null;return i.forEach(function(i,r){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(o=r),I["default"].isNull(o)}),o},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var o=e===t;return o&&(i=n),!o}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",o=this.options[n]||{},r=this.options.tooltip||{};return S["default"].isDatetimeType(r.type)?i=L["default"].formatDate(i,r.dateFormat):S["default"].isDatetimeType(o.type)&&(i=L["default"].formatDate(i,o.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,o=this._getTooltipCategory(t,n),r=this.getCategoryCount(!n);return r&&(o+=", "+this._getTooltipCategory(r-e-1,!n)),o},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=A["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return I["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!I["default"].isExisty(t)){var e=this.chartType;t=S["default"].isCoordinateTypeChart(e),t=t||S["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||S["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=S["default"].isBoxplotChart(this.chartType)?g["default"]:S["default"].isTreemapChart(this.chartType)?T["default"]:S["default"].isBulletChart(this.chartType)?_["default"]:d["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,o){n._pushValue(t,e[o],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&I["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),o=n[0],r=n[1];e._pushValues(r,t[o],o)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],o=i[1];t._shiftValues(o,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new x["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return k(e.min)&&k(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return k(e.min)||k(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,o=this.options,r=o.plot,a=o[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),c=this.isLimitOptionsInsufficient(i),h=S["default"].isLineChart(t)||S["default"].isAreaChart(t)||S["default"].isLineAreaComboChart(t,this.seriesTypes),p=this.defaultValues;if(S["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&c)if(!l&&c&&(p=p.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),h&&r){var f=this.getValuesFromPlotOptions(r,s);n=n.concat(f)}}else n=p;else n=this.getSeriesDataModel(t).getValues(e);return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?I["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return I["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&(Object.entries(e).forEach(function(t){var e=u(t,2),o=e[0],r=e[1];i[o]=r.map(n)}),i=I["default"].filter(i,I["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],r=void 0;I["default"].isArray(e)?(r=[this.chartType],r[this.chartType]=e):(n=this.seriesTypes,r=e);var a=n.map(function(t){return r[t].map(function(e,n){var o=I["default"].isArray(i[t]);return{chartType:t,label:e,visible:o?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,o(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){S["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){ -var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=w["default"].sumPlusValues(t),n=w["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,o){var r=void 0;return S["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,n),S["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=S["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):S["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,o),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),o=function(t){return t.r/n>c["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,o),maxItem:i.findMaxSeriesItem(e,o)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(p["default"]);e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(337),a=n(r),s=i(334),u=n(s),l=i(351),c=n(l),h=i(333),p=n(h),f=function(){function t(){o(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),o=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),o=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=c["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[p["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[p["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=p["default"].pick(this.options,"chart","format"),e=[];return p["default"].isFunction(t)?e=[t]:p["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=g["default"].sumPlusValues(t),i=Math.abs(g["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=g["default"].sumPlusValues(e),n=Math.abs(g["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=d["default"].allowMinusPointRender(this.chartType),i=0;return!e&&d["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=d["default"].isAllowedStackOption(this.chartType);i&&d["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&d["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=g["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,o=e?_["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",o,0),T["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(351),s=n(a),u=i(333),l=n(u),c=function(){function t(e){o(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=s["default"].sum(o.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(334),l=n(u),c=i(351),h=n(c),p=i(342),f=n(p),d=i(333),y=n(d),g=function(){function t(e){o(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,f["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),n="makingSeriesLabel",o=i.length>1,a=r(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),y["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:n,legendName:this.legendName}),this.endLabel=this.label,o&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return y["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){y["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=h["default"].calculateRatio(this.value,t,e,i),y["default"].isExisty(this.start)&&(this.startRatio=h["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return y["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=g},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(342),s=n(a),u=i(334),l=n(u),c=i(333),h=n(c),p=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(h["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var n=r(t,4);this.r=n[2];var o=n[3];this.label=void 0===o?"":o}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=h["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var c=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+c}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!h["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return h["default"].isNumber(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return h["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(435),u=n(s),l=i(430),c=n(l),h=i(333),p=n(h),f=Array.prototype.concat,d=function(t){function e(i,n,a,s){o(this,e);var u=r(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=p["default"].isArray(i)?i:[].concat(i.data),o=n.map(function(n,o){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:o,legendName:i.name})});return o})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=f.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(c["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(334),s=n(a),u=i(351),l=n(u),c=i(333),h=n(c),p=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),o=r(n,5),a=o[0],u=o[1],l=o[2],c=o[3],h=o[4],p=n.length>5,f=void 0,d=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=c,this.median=l,this.lq=u,this.min=a,this.index=e,p&&(this.outliers=[],f=this.outliers,n.slice(5).forEach(function(t){f.push({value:t,label:d(t)})})),this.label=d(h),this.uqLabel=d(c),this.medianLabel=d(l),this.lqLabel=d(u),this.minLabel=d(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return h["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){h["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(o){o.ratio=n(o.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return h["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(432),u=n(s),l=i(430),c=n(l),h=i(335),p=n(h),f=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,o=this.rawSeriesData.map(function(o){var r=[],a=o.data,s=o.markers,l=o.ranges,c=s.length,h=l.length;return l&&h&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,h)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&c&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,c)),r});return this.maxMarkerCount=n,this.maxRangeCount=i,o},e.prototype._createSeriesGroupsFromRawData=function(){return c["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(c["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(430),l=n(u),c=i(438),h=n(c),p=i(335),f=n(p),d=i(351),y=n(d),g=i(333),m=n(g),_=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!m["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(f["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(f["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(f["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(351),a=n(r),s=i(334),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n){o(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),o=n,r={legend:this.label||"",value:n,label:o,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return c["default"].isExisty(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return c["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t -}}e.__esModule=!0;var o=i(440),r=n(o),a=i(446),s=n(a),u=i(335),l=n(u),c=i(342),h=n(c);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,o){var r=t.get(n),a=null,s=[];if(r){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:o})}},_setLayoutBoundsAndScale:function(t,e,i,n,o){var r=o.options,a=o.scaleOption,s=void 0===a?{}:a,u=o.addingDataMode,c=o.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,o.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:o.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var p=n.scaleDataMap;p.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(p.legend.limit),this._registerYAxisDimension(e,i,p,"yAxis",c),this._registerYAxisDimension(e,i,p,"rightYAxis",c),s.xAxis&&n.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),o.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(h["default"].isAutoTickInterval(r.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(o.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),o=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,o,i);var r={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:o.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return o.axisDataMap&&(r.axisDataMap=o.axisDataMap),h["default"].isBubbleChart(i.chartType)&&(r.maxRadius=n.calculateMaxRadius(o.axisDataMap)),o.scaleDataMap.legend&&(r.legendScaleData=o.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=i(342),u=n(s),l=i(334),c=n(l),h=i(332),p=n(h),f=i(441),d=n(f),y=i(442),g=n(y),m=i(443),_=n(m),v=i(444),T=n(v),b=i(445),x=n(b),E=i(333),A=n(E),D=A["default"].browser,S=a["default"].LEGEND_AREA_H_PADDING,M=D.msie&&D.version<=8,L=function(){function t(e){o(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=A["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=A["default"].isExisty(t.title),i=this.theme.title,n=e?p["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,o=n||0;o&&(o+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:o})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:g["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=A["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,o=_["default"].calculate(e,i,t,n);this._registerDimension("legend",o)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,o=this.options.legend.align,r=void 0;if(u["default"].isHorizontalLegend(o)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(o);r=x["default"]._makeHorizontalDimension(e,n,a,s)}else r=x["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,o=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,c=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}c=A["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:g["default"].calculateYAxisWidth(l,c,n,o,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=c["default"].getRenderedLabelHeight(t,this.theme.title));var n=T["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!M&&(n-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+S),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=c["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),T["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),o=this.theme.chart.fontFamily,r=d["default"].calculateCircleLegendWidth(e,t,n,o),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=r-s;this._registerDimension("circleLegend",{width:r,height:r}),l>0&&this._updateLegendAndSeriesWidth(r,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,o=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+o-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,o=0,r=void 0,s=void 0;return u["default"].isHorizontalLegend(n.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,o=u["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(n.align)?s=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,s=this.chartLeftPadding+r+e.width),o=i+a["default"].SERIES_AREA_V_PADDING),{top:o,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),o=this.getDimension("legend"),r=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-o.width)/2,r=u["default"].isLegendAlignTop(e)?i.top-o.height:i.top+n.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),r=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var c={top:r,left:s};return l&&(c.right=l),c},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,o=void 0,r=void 0;return o=u["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,u["default"].isVerticalLegend(n.align)&&n.visible&&(r=this.getDimension("legend").width+a["default"].CHART_PADDING,o+=(r-i.width)/2),{top:t.top+e.height-i.height,left:o}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),o=u["default"].isLegendAlignTop(e)&&i,r=u["default"].isLegendAlignLeft(e)&&i,s=o?n.height:0,l=r?n.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),p=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=c["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),f=Math.max(0,Math.max(s,p)-a["default"].TITLE_PADDING),d=h+f;h||(d=Math.max(s,p));var y={top:d+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=y,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=c["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,n=c["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return d["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var o=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*o,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),o=t.circleLegend.width;return i?Math.min((o-r["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a),u=i(334),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,o=n?n+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=o+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,o){var a=e.labelMargin,u=e.prefix,c=e.suffix,h=e.isCenter,p=e.type,f=e.dateFormat,d=e.showLabel,y=e.title,g=0,m=0,_=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,c),n=l["default"].addPrefixSuffix(n,u,c),h&&(_+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(p)&&(t=l["default"].formatDates(t,f),n=l["default"].formatDates(n,f)),a&&a>0&&(_+=a),t=n.length?n:t,d!==!1&&(m=l["default"].getRenderedLabelsMaxWidth(t,i.label)),y&&(g=l["default"].getRenderedLabelWidth(y.text,i.title)),_+=(o?Math.max(m,g):m)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a),u=i(351),l=n(u),c=i(334),h=n(c),p=i(337),f=n(p),d=r["default"].LEGEND_CHECKBOX_SIZE,y=r["default"].LEGEND_ICON_WIDTH,g=r["default"].LEGEND_LABEL_LEFT_PADDING,m=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,n){var o=l["default"].sum([v,i,y,g]),r=l["default"].sum(t.map(function(t){var i=h["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=o,i+_}));return r=r-_+v},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),n=[],o=[];return t.forEach(function(t){o.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return h["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),o=n*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return o},_makeHorizontalDimension:function(t,e,i,n,o){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,o),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var o=h["default"].getRenderedLabelsMaxWidth(e,t),r=0;return n&&o>n&&(o=n),r=l["default"].sum([2*v,i,y,g,o,m]),{width:r,height:0}},calculate:function(t,e,i,n){var o=t.showCheckbox===!1?0:d+g,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,o,r):this._makeVerticalDimension(e,i,o,r):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,o=t.yAxis,a=t.rightYAxis,u=t.legend,l=o.width+a.width,c=u,h=0,p=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(h=c?c.width:0),h||a.width||!i||(p=i/2),n-2*r["default"].CHART_PADDING-l-h-p},calculateHeight:function(t,e,i){var n=t.chart.height,o=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),c=o+l,h=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+h;return n-2*r["default"].CHART_PADDING-c-p}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a),u=i(351),l=n(u),c=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,h=r["default"].MAP_LEGEND_WEDGE_SIZE,p=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,f=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,d=r["default"].MAP_LEGEND_GRAPH_SIZE,y=r["default"].MAP_LEGEND_LABEL_PADDING,g=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,m=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),o=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*c,r,h]);return{width:l["default"].sum([p,a,f,d,y,Math.max(n,o)]),height:g}},_makeHorizontalDimension:function(t,e,i,n){var o=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*m,o,h]),a=i?_:p,u=n?p:0;return{width:v,height:l["default"].sum([a,r,f,d,y,o,y,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(447),a=n(r),s=i(449),u=n(s),l=i(450),c=n(l),h=i(342),p=n(h),f=i(334),d=n(f),y=i(333),g=n(y),m=function(){function t(e){o(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var o=t.chartType,r="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(o,n.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(r),l=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return p["default"].isBubbleChart(o)&&(l.overflowItem=this.dataProcessor.findOverflowItem(o,t.valueType)),(p["default"].isMapChart(o)||p["default"].isHeatmapChart(o)||p["default"].isTreemapChart(o))&&(l.useSpectrumLegend=!0),a["default"].makeScaleData(s,u,o,l)},t.prototype._createScaleLabels=function(t,e,i,n){var o=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:n});return u["default"].createFormattedLabels(t,e,r,o)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,o=e.chartType||this.chartType;e.chartType=o,n=n[o]||n;var r={stackType:i.stackType||n.stackType,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return g["default"].extend(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,o){var r=this.dataProcessor.hasCategories(),a=!n&&!r&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,p=c["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!o});if(a){var f=this.dataProcessor.getValues(this.chartType,"x"),d=c["default"].makeAdditionalDataForCoordinateLineType(s,f,u,l,h);g["default"].extend(p,d)}return p},t.prototype._createLabelAxisData=function(t,e,i,n,o){var r=t.categories||this.dataProcessor.getCategories(n);return c["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!o,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,o){var r=p["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,n,o):this._createLabelAxisData(e,i,r,n,o)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=g["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],o={};return o.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),o.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(o.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),o.rightYAxis.aligned||(o.rightYAxis.aligned=o.yAxis.aligned)),o},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,o=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?c["default"].updateLabelAxisDataForAutoTickInterval(o,r,a,e):c["default"].updateLabelAxisDataForStackingDynamicData(o,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=o.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,o=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=d["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=g["default"].filter(s,function(t){return!!t});r=g["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?c["default"].makeAdditionalDataForMultilineLabels(s,r,o,n,i):c["default"].makeAdditionalDataForRotatedLabels(u,r,o,n,i),this.prevValidLabelCount=r,g["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,o={};return n.xAxis&&(o.xAxis=n.xAxis.limit),n.yAxis&&(o.yAxis=n.yAxis.limit),n.rightYAxis&&(o.rightYAxis=n.rightYAxis.limit),n.legend&&(o.legend=n.legend.limit),t.forEach(function(t,n){o[t]=i._findLimit(o,n,e)}),o},t}();e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(351),c=n(l),h=i(337),p=n(h),f=i(448),d=n(f),y=i(333),g=n(y),m={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,o=t.max;return i.min&&(n=c["default"].subtract(n,e)),i.max&&(o=c["default"].add(o,e)),{min:n,max:o}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,o=this.millisecondMap,r=n.length-1,s=void 0;return i?n.every(function(t,a){var u=o[t],l=Math.floor(i/u),c=void 0;return l&&(c=a0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),o=n.dataLimit;i&&(o=this._makeLimitForDivergingOption(o));var r=(0,d["default"])({min:o.min,max:o.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===c["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===c["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,o=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),c=g["default"].isExisty(n.min),h=g["default"].isExisty(n.max),p=l.min,f=l.max,y=void 0,m=t.options.stepCount;c&&(p=n.min,m=null),h&&(f=n.max,m=null);var _=(0,d["default"])({min:p,max:f,stepCount:m,offsetSize:r});return o||(y=this._isOverflowed(a,_,l,c,h)),y&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,y)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,n,o){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!n&&s.min===i.min&&0!==s.min,l=a||!o&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var o=void 0,r=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stackType)?o=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(n.type)?o=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),o=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:n})),o}};e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,n=d.length;i1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(o(t),o(e));return Math.ceil(t*i/(e*i)); -}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),o=Math.abs(n.max-n.min),r=u(o,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:r}}function c(t,e,i,n,o){var r=Math.abs(e-t),a=r/i;n||(n=Math.ceil(i/y));var s=i/n,u=a*s;return f["default"].isNumber(o)&&ui.labelInterval&&(o=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(o=d["default"].formatDates(o,i.dateFormat)),t.aligned||(n+=1),{labels:o,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,o=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:o,options:r,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,o){var r=g["default"].min(e),a=g["default"].max(e),s=a-r,u=0,l=1;return s&&(i.mina&&(i.max-=n,l-=(a-i.max)/s,o-=1,t.pop())),{labels:t,tickCount:o,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:o,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,o=parseInt(e/i,10),r=null,a=parseInt(t/o,10);return a>1&&(n=t-a*o,n>=a&&(o+=parseInt(n/a,0),n%=a),r={blockCount:o,beforeRemainBlockCount:n,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],o=p["default"].divisors(t);if(o.forEach(function(i){var o=i/t*e;o>=v&&o<=T&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var r=_["default"].range(v,T,b);n=r.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=g["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var o=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(o,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,c=0,h=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,c,u),s>0&&t.labels.push(h),_["default"].extend(t,{startIndex:c,tickCount:l,interval:u,positionRatio:c/o,sizeRatio:1-s/o,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,o=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,o,n),s=t.labels.length-1;var u=r-n*s;_["default"].extend(t,{startIndex:o,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:o/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(/\s+/),r=[],a=o(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=d["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("
")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return d["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,o){var r=o.series.width,a=this._calculateXAxisLabelAreaWidth(n,r,e),s=this._createMultilineLabels(t,i,r),u=this._calculateMultilineHeight(s,i,a),l=d["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-o.yAxis.width}},_findRotationDegree:function(t,e,i){var n=null;return a["default"].DEGREE_CANDIDATES.every(function(o){var r=c["default"].calculateRotatedWidth(o,e,i);return n=o,!(r<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var o=d["default"].getRenderedLabelWidth(e,n),r=c["default"].calculateRotatedWidth(t,o,i);return r-=c["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,o){var r=d["default"].getRenderedLabelsMaxWidth(t,i),s=o.series.width,u=o.yAxis.width+o.rightYAxis?o.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(n,s,e),h=null,p=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),o=n[0],r=n[1];if(r.stackType){var a=e.findChartType(o);f["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=void 0;o=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var o=n[i]||n,r=o.stackType;e.dataProcessor.addDataRatios(t[i],r,i)},v["default"].forEachArray(i,o)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=h["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(v["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:p["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){ -if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},p["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(464),c=n(l),h=i(335),p=n(h),f=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],o=i(t.coordinate,n);return c["default"].extend(n,o),o})},t.prototype._findBoundFromCoordinates=function(t){var e=c["default"].pluck(t,"x").filter(function(t){return!c["default"].isUndefined(t)}),i=c["default"].pluck(t,"y").filter(function(t){return!c["default"].isUndefined(t)}),n=u["default"].max(e),o=u["default"].min(e),r=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:n-o,height:r-a},position:{left:o,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),o=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;o&&(s=o.label,u=o.ratio,r=o.name||t.name,a=o.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),o=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(o)-u["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(429),u=n(s),l=i(334),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:c["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return p["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(412),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=c["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){o(this,e),c["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,o=i[n]||i,r=o.stackType;this.dataProcessor.addDataRatios(t[n],r,n)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){o(this,e),c["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(335),r=n(o),a=i(361),s=n(a),u=i(362),l=n(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael"),require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["raphael","tui-code-snippet"],e):"object"==typeof exports?exports.chart=e(require("raphael"),require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael,t.tui&&t.tui.util))}(this,function(__WEBPACK_EXTERNAL_MODULE_330__,__WEBPACK_EXTERNAL_MODULE_333__){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){i(2),t.exports=i(328)},,function(t,e,i){(function(t){"use strict";function e(t,e,i){t[e]||Object[n](t,e,{writable:!0,configurable:!0,value:i})}if(i(3),i(324),i(325),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,i){i(4),i(52),i(53),i(54),i(55),i(57),i(60),i(61),i(62),i(63),i(64),i(65),i(66),i(67),i(68),i(70),i(72),i(74),i(76),i(79),i(80),i(81),i(85),i(87),i(89),i(92),i(93),i(94),i(95),i(97),i(98),i(99),i(100),i(101),i(102),i(103),i(105),i(106),i(107),i(109),i(110),i(111),i(113),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(125),i(126),i(127),i(132),i(133),i(137),i(138),i(139),i(140),i(142),i(143),i(144),i(145),i(146),i(147),i(148),i(149),i(150),i(151),i(152),i(153),i(154),i(155),i(156),i(158),i(159),i(161),i(162),i(168),i(169),i(171),i(172),i(173),i(177),i(178),i(179),i(180),i(181),i(183),i(184),i(185),i(186),i(189),i(191),i(192),i(193),i(195),i(197),i(199),i(200),i(201),i(203),i(204),i(205),i(206),i(217),i(221),i(222),i(224),i(225),i(229),i(230),i(232),i(233),i(234),i(235),i(236),i(237),i(238),i(239),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250),i(252),i(253),i(254),i(255),i(256),i(258),i(259),i(260),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(271),i(272),i(274),i(275),i(276),i(277),i(280),i(281),i(283),i(284),i(285),i(286),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(297),i(299),i(300),i(301),i(302),i(303),i(304),i(305),i(306),i(307),i(308),i(309),i(311),i(312),i(313),i(314),i(315),i(316),i(317),i(318),i(319),i(320),i(321),i(322),i(323),t.exports=i(10)},function(t,e,i){"use strict";var n=i(5),o=i(6),r=i(7),a=i(9),s=i(19),u=i(23).KEY,l=i(8),c=i(24),h=i(26),p=i(20),f=i(27),d=i(28),g=i(29),y=i(30),m=i(45),_=i(13),v=i(14),T=i(33),b=i(17),x=i(18),E=i(46),A=i(49),D=i(51),S=i(12),M=i(31),L=D.f,C=S.f,w=A.f,P=n.Symbol,O=n.JSON,R=O&&O.stringify,I="prototype",k=f("_hidden"),B=f("toPrimitive"),N={}.propertyIsEnumerable,F=c("symbol-registry"),G=c("symbols"),H=c("op-symbols"),V=Object[I],j="function"==typeof P,z=n.QObject,W=!z||!z[I]||!z[I].findChild,Y=r&&l(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=L(V,e);n&&delete V[e],C(t,e,i),n&&t!==V&&C(V,e,n)}:C,U=function(t){var e=G[t]=E(P[I]);return e._k=t,e},X=j&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,i){return t===V&&Z(H,e,i),_(t),e=b(e,!0),_(i),o(G,e)?(i.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),i=E(i,{enumerable:x(0,!1)})):(o(t,k)||C(t,k,x(1,{})),t[k][e]=!0),Y(t,e,i)):C(t,e,i)},K=function(t,e){_(t);for(var i,n=y(e=T(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},q=function(t,e){return void 0===e?E(t):K(E(t),e)},J=function(t){var e=N.call(this,t=b(t,!0));return!(this===V&&o(G,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,k)&&this[k][t])||e)},Q=function(t,e){if(t=T(t),e=b(e,!0),t!==V||!o(G,e)||o(H,e)){var i=L(t,e);return!i||!o(G,e)||o(t,k)&&t[k][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=w(T(t)),n=[],r=0;i.length>r;)o(G,e=i[r++])||e==k||e==u||n.push(e);return n},tt=function(t){for(var e,i=t===V,n=w(i?H:T(t)),r=[],a=0;n.length>a;)!o(G,e=n[a++])||i&&!o(V,e)||r.push(G[e]);return r};j||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===V&&e.call(H,i),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),Y(this,t,x(1,i))};return r&&W&&Y(V,t,{configurable:!0,set:e}),U(t)},s(P[I],"toString",function(){return this._k}),D.f=Q,S.f=Z,i(50).f=A.f=$,i(44).f=J,i(43).f=tt,r&&!i(25)&&s(V,"propertyIsEnumerable",J,!0),d.f=function(t){return U(f(t))}),a(a.G+a.W+a.F*!j,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)f(et[it++]);for(var nt=M(f.store),ot=0;nt.length>ot;)g(nt[ot++]);a(a.S+a.F*!j,"Symbol",{"for":function(t){return o(F,t+="")?F[t]:F[t]=P(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!j,"Object",{create:q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),O&&a(a.S+a.F*(!j||l(function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(v(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!X(e))return e}),n[1]=e,R.apply(O,n)}}),P[I][B]||i(11)(P[I],B,P[I].valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){t.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,i){var n=i(5),o=i(10),r=i(11),a=i(19),s=i(21),u="prototype",l=function(t,e,i){var c,h,p,f,d=t&l.F,g=t&l.G,y=t&l.S,m=t&l.P,_=t&l.B,v=g?n:y?n[e]||(n[e]={}):(n[e]||{})[u],T=g?o:o[e]||(o[e]={}),b=T[u]||(T[u]={});g&&(i=e);for(c in i)h=!d&&v&&void 0!==v[c],p=(h?v:i)[c],f=_&&h?s(p,n):m&&"function"==typeof p?s(Function.call,p):p,v&&a(v,c,p,t&l.U),T[c]!=p&&r(T,c,f),m&&b[c]!=p&&(b[c]=p)};n.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(12),o=i(18);t.exports=i(7)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(13),o=i(15),r=i(17),a=Object.defineProperty;e.f=i(7)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(s){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(14);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){t.exports=!i(7)&&!i(8)(function(){return 7!=Object.defineProperty(i(16)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(14),o=i(5).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(5),o=i(11),r=i(6),a=i(20)("src"),s="toString",u=Function[s],l=(""+u).split(s);i(10).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,i,s){var u="function"==typeof i;u&&(r(i,"name")||o(i,"name",e)),t[e]!==i&&(u&&(r(i,a)||o(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:o(t,e,i):(delete t[e],o(t,e,i)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(22);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(20)("meta"),o=i(14),r=i(6),a=i(12).f,s=0,u=Object.isExtensible||function(){return!0},l=!i(8)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},f=function(t){return l&&d.NEED&&u(t)&&!r(t,n)&&c(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:p,onFreeze:f}},function(t,e,i){var n=i(10),o=i(5),r="__core-js_shared__",a=o[r]||(o[r]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,i){var n=i(12).f,o=i(6),r=i(27)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e,i){var n=i(24)("wks"),o=i(20),r=i(5).Symbol,a="function"==typeof r,s=t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))};s.store=n},function(t,e,i){e.f=i(27)},function(t,e,i){var n=i(5),o=i(10),r=i(25),a=i(28),s=i(12).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var n=i(31),o=i(43),r=i(44);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),u=r.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},function(t,e,i){var n=i(32),o=i(42);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(6),o=i(33),r=i(37)(!1),a=i(41)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),u=0,l=[];for(i in s)i!=a&&n(s,i)&&l.push(i);for(;e.length>u;)n(s,i=e[u++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(34),o=i(36);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(33),o=i(38),r=i(40);t.exports=function(t){return function(e,i,a){var s,u=n(e),l=o(u.length),c=r(a,l);if(t&&i!=i){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var n=i(39),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(39),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},function(t,e,i){var n=i(24)("keys"),o=i(20);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(35);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(13),o=i(47),r=i(42),a=i(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var t,e=i(16)("iframe"),n=r.length,o="<",a=">";for(e.style.display="none",i(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),l=t.F;n--;)delete l[u][r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[u]=n(t),i=new s,s[u]=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(12),o=i(13),r=i(31);t.exports=i(7)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,u=0;s>u;)n.f(t,i=a[u++],e[i]);return t}},function(t,e,i){var n=i(5).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(33),o=i(50).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},function(t,e,i){var n=i(32),o=i(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n=i(44),o=i(18),r=i(33),a=i(17),s=i(6),u=i(15),l=Object.getOwnPropertyDescriptor;e.f=i(7)?l:function(t,e){if(t=r(t),e=a(e,!0),u)try{return l(t,e)}catch(i){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(9);n(n.S,"Object",{create:i(46)})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperty:i(12).f})},function(t,e,i){var n=i(9);n(n.S+n.F*!i(7),"Object",{defineProperties:i(47)})},function(t,e,i){var n=i(33),o=i(51).f;i(56)("getOwnPropertyDescriptor",function(){return function(t,e){return o(n(t),e)}})},function(t,e,i){var n=i(9),o=i(10),r=i(8);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},function(t,e,i){var n=i(58),o=i(59);i(56)("getPrototypeOf",function(){return function(t){return o(n(t))}})},function(t,e,i){var n=i(36);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(6),o=i(58),r=i(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,i){var n=i(58),o=i(31);i(56)("keys",function(){return function(t){return o(n(t))}})},function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(49).f})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14),o=i(23).onFreeze;i(56)("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(14);i(56)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(14);i(56)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(9);n(n.S+n.F,"Object",{assign:i(69)})},function(t,e,i){"use strict";var n=i(31),o=i(43),r=i(44),a=i(58),s=i(34),u=Object.assign;t.exports=!u||i(8)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=a(t),u=arguments.length,l=1,c=o.f,h=r.f;u>l;)for(var p,f=s(arguments[l++]),d=c?n(f).concat(c(f)):n(f),g=d.length,y=0;g>y;)h.call(f,p=d[y++])&&(i[p]=f[p]);return i}:u},function(t,e,i){var n=i(9);n(n.S,"Object",{is:i(71)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,i){var n=i(9);n(n.S,"Object",{setPrototypeOf:i(73).set})},function(t,e,i){var n=i(14),o=i(13),r=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i(21)(Function.call,i(51).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,i){return r(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:r}},function(t,e,i){"use strict";var n=i(75),o={};o[i(27)("toStringTag")]="z",o+""!="[object z]"&&i(19)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(35),o=i(27)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(9);n(n.P,"Function",{bind:i(77)})},function(t,e,i){"use strict";var n=i(22),o=i(14),r=i(78),a=[].slice,s={},u=function(t,e,i){if(!(e in s)){for(var n=[],o=0;o>>0||(a.test(i)?16:10))}:n},function(t,e,i){var n=i(9),o=i(36),r=i(8),a=i(84),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,i){var o={},s=r(function(){return!!a[t]()||u[t]()!=u}),l=o[t]=s?e(p):a[t];i&&(o[i]=l),n(n.P+n.F*s,"String",o)},p=h.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},function(t,e){t.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(9),o=i(86);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},function(t,e,i){var n=i(5).parseFloat,o=i(83).trim;t.exports=1/n(i(84)+"-0")!==-(1/0)?function(t){var e=o(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){"use strict";var n=i(5),o=i(6),r=i(35),a=i(88),s=i(17),u=i(8),l=i(50).f,c=i(51).f,h=i(12).f,p=i(83).trim,f="Number",d=n[f],g=d,y=d.prototype,m=r(i(46)(y))==f,_="trim"in String.prototype,v=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=_?e.trim():p(e,3);var i,n,o,r=e.charCodeAt(0);if(43===r||45===r){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var a,u=e.slice(2),l=0,c=u.length;lo)return NaN;return parseInt(u,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof d&&(m?u(function(){y.valueOf.call(i)}):r(i)!=f)?a(new g(v(e)),i,d):v(e)};for(var T,b=i(7)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)o(g,T=b[x])&&!o(d,T)&&h(d,T,c(g,T));d.prototype=y,y.constructor=d,i(19)(n,f,d)}},function(t,e,i){var n=i(14),o=i(73).set;t.exports=function(t,e,i){var r,a=e.constructor;return a!==i&&"function"==typeof a&&(r=a.prototype)!==i.prototype&&n(r)&&o&&o(t,r),t}},function(t,e,i){"use strict";var n=i(9),o=i(39),r=i(90),a=i(91),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h="0",p=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=u(n/1e7)},f=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=u(i/t),i=i%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+a.call(h,7-i.length)+i}return e},g=function(t,e,i){return 0===e?i:e%2===1?g(t,e-1,i*t):g(t*t,e/2,i)},y=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(8)(function(){s.call({})})),"Number",{toFixed:function(t){var e,i,n,s,u=r(this,c),l=o(t),m="",_=h;if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=y(u*g(2,69,1))-69,i=e<0?u*g(2,-e,1):u/g(2,e,1),i*=4503599627370496,e=52-e,e>0){for(p(0,i),n=l;n>=7;)p(1e7,0),n-=7;for(p(g(10,n,1),0),n=e-1;n>=23;)f(1<<23),n-=23;f(1<0?(s=_.length,_=m+(s<=l?"0."+a.call(h,l-s)+_:_.slice(0,s-l)+"."+_.slice(s-l))):_=m+_,_}})},function(t,e,i){var n=i(35);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){"use strict";var n=i(39),o=i(36);t.exports=function(t){var e=String(o(this)),i="",r=n(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},function(t,e,i){"use strict";var n=i(9),o=i(8),r=i(90),a=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=r(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(9),o=i(5).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Number",{isInteger:i(96)})},function(t,e,i){var n=i(14),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e,i){var n=i(9);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(9),o=i(96),r=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return o(t)&&r(t)<=9007199254740991}})},function(t,e,i){var n=i(9);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(9);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(9),o=i(86);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,i){var n=i(9),o=i(82);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,i){var n=i(9),o=i(104),r=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+r(t-1)*r(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=i(9),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(9),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(9),o=i(108);n(n.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,i){var n=i(9);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(9),o=Math.exp;n(n.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,i){var n=i(9),o=i(112);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||i(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(9);n(n.S,"Math",{fround:i(114)})},function(t,e,i){var n=i(108),o=Math.pow,r=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),u=o(2,-126),l=function(t){return t+1/r-1/r};t.exports=Math.fround||function(t){var e,i,o=Math.abs(t),c=n(t);return os||i!=i?c*(1/0):c*i)}},function(t,e,i){var n=i(9),o=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,r=0,a=0,s=arguments.length,u=0;a0?(n=i/u,r+=n*n):r+=i;return u===1/0?1/0:u*Math.sqrt(r)}})},function(t,e,i){var n=i(9),o=Math.imul;n(n.S+n.F*i(8)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(t,e){var i=65535,n=+t,o=+e,r=i&n,a=i&o;return 0|r*a+((i&n>>>16)*a+r*(i&o>>>16)<<16>>>0)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(9);n(n.S,"Math",{log1p:i(104)})},function(t,e,i){var n=i(9);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(9);n(n.S,"Math",{sign:i(108)})},function(t,e,i){var n=i(9),o=i(112),r=Math.exp;n(n.S+n.F*i(8)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(r(t-1)-r(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(9),o=i(112),r=Math.exp;n(n.S,"Math",{tanh:function(t){var e=o(t=+t),i=o(-t);return e==1/0?1:i==1/0?-1:(e-i)/(r(t)+r(-t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(9),o=i(40),r=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?r(e):r(((e-=65536)>>10)+55296,e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(9),o=i(33),r=i(38);n(n.S,"String",{raw:function(t){for(var e=o(t.raw),i=r(e.length),n=arguments.length,a=[],s=0;i>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(39),o=i(36);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),u=n(i),l=s.length;return u<0||u>=l?t?"":void 0:(r=s.charCodeAt(u),r<55296||r>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):r:t?s.slice(u,u+2):(r-55296<<10)+(a-56320)+65536)}}},function(t,e,i){"use strict";var n=i(25),o=i(9),r=i(19),a=i(11),s=i(130),u=i(131),l=i(26),c=i(59),h=i(27)("iterator"),p=!([].keys&&"next"in[].keys()),f="@@iterator",d="keys",g="values",y=function(){return this};t.exports=function(t,e,i,m,_,v,T){u(i,e,m);var b,x,E,A=function(t){if(!p&&t in L)return L[t];switch(t){case d:return function(){return new i(this,t)};case g:return function(){return new i(this,t)}}return function(){return new i(this,t)}},D=e+" Iterator",S=_==g,M=!1,L=t.prototype,C=L[h]||L[f]||_&&L[_],w=C||A(_),P=_?S?A("entries"):w:void 0,O="Array"==e?L.entries||C:C;if(O&&(E=c(O.call(new t)),E!==Object.prototype&&E.next&&(l(E,D,!0),n||"function"==typeof E[h]||a(E,h,y))),S&&C&&C.name!==g&&(M=!0,w=function(){return C.call(this)}),n&&!T||!p&&!M&&L[h]||a(L,h,w),s[e]=w,s[D]=y,_)if(b={values:S?w:A(g),keys:v?w:A(d),entries:P},T)for(x in b)x in L||r(L,x,b[x]);else o(o.P+o.F*(p||M),e,b);return b}},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(46),o=i(18),r=i(26),a={};i(11)(a,i(27)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){"use strict";var n=i(9),o=i(128)(!1);n(n.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,i){"use strict";var n=i(9),o=i(38),r=i(134),a="endsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{endsWith:function(t){var e=r(this,t,a),i=arguments.length>1?arguments[1]:void 0,n=o(e.length),u=void 0===i?n:Math.min(o(i),n),l=String(t);return s?s.call(e,l,u):e.slice(u-l.length,u)===l}})},function(t,e,i){var n=i(135),o=i(36);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(o(t))}},function(t,e,i){var n=i(14),o=i(35),r=i(27)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},function(t,e,i){var n=i(27)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(o){}}return!0}},function(t,e,i){"use strict";var n=i(9),o=i(134),r="includes";n(n.P+n.F*i(136)(r),"String",{includes:function(t){return!!~o(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(9);n(n.P,"String",{repeat:i(91)})},function(t,e,i){"use strict";var n=i(9),o=i(38),r=i(134),a="startsWith",s=""[a];n(n.P+n.F*i(136)(a),"String",{startsWith:function(t){var e=r(this,t,a),i=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){"use strict";i(141)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){var n=i(9),o=i(8),r=i(36),a=/"/g,s=function(t,e,i,n){var o=String(r(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";i(141)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){"use strict";i(141)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){"use strict";i(141)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){"use strict";i(141)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){"use strict";i(141)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){"use strict";i(141)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){"use strict";i(141)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){"use strict";i(141)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){"use strict";i(141)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){"use strict";i(141)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){"use strict";i(141)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){"use strict";i(141)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(9);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17);n(n.P+n.F*i(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({ +toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),i=r(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(9),o=i(157);n(n.P+n.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,i){"use strict";var n=i(8),o=Date.prototype.getTime,r=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-5e13-1))})||!n(function(){r.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(i>99?i:"0"+a(i))+"Z"}:r},function(t,e,i){var n=Date.prototype,o="Invalid Date",r="toString",a=n[r],s=n.getTime;new Date(NaN)+""!=o&&i(19)(n,r,function(){var t=s.call(this);return t===t?a.call(this):o})},function(t,e,i){var n=i(27)("toPrimitive"),o=Date.prototype;n in o||i(11)(o,n,i(160))},function(t,e,i){"use strict";var n=i(13),o=i(17),r="number";t.exports=function(t){if("string"!==t&&t!==r&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),t!=r)}},function(t,e,i){var n=i(9);n(n.S,"Array",{isArray:i(45)})},function(t,e,i){"use strict";var n=i(21),o=i(9),r=i(58),a=i(163),s=i(164),u=i(38),l=i(165),c=i(166);o(o.S+o.F*!i(167)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,o,h,p=r(t),f="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,y=void 0!==g,m=0,_=c(p);if(y&&(g=n(g,d>2?arguments[2]:void 0,2)),void 0==_||f==Array&&s(_))for(e=u(p.length),i=new f(e);e>m;m++)l(i,m,y?g(p[m],m):p[m]);else for(h=_.call(p),i=new f;!(o=h.next()).done;m++)l(i,m,y?a(h,g,[o.value,m],!0):o.value);return i.length=m,i}})},function(t,e,i){var n=i(13);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(r){var a=t["return"];throw void 0!==a&&n(a.call(t)),r}}},function(t,e,i){var n=i(130),o=i(27)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){"use strict";var n=i(12),o=i(18);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e,i){var n=i(75),o=i(27)("iterator"),r=i(130);t.exports=i(10).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(27)("iterator"),o=!1;try{var r=[7][n]();r["return"]=function(){o=!0},Array.from(r,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],a=r[n]();a.next=function(){return{done:i=!0}},r[n]=function(){return a},t(r)}catch(s){}return i}},function(t,e,i){"use strict";var n=i(9),o=i(165);n(n.S+n.F*i(8)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)o(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(9),o=i(33),r=[].join;n(n.P+n.F*(i(34)!=Object||!i(170)(r)),"Array",{join:function(t){return r.call(o(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(8);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){"use strict";var n=i(9),o=i(48),r=i(35),a=i(40),s=i(38),u=[].slice;n(n.P+n.F*i(8)(function(){o&&u.call(o)}),"Array",{slice:function(t,e){var i=s(this.length),n=r(this);if(e=void 0===e?i:e,"Array"==n)return u.call(this,t,e);for(var o=a(t,i),l=a(e,i),c=s(l-o),h=new Array(c),p=0;pb;b++)if((p||b in _)&&(g=_[b],y=v(g,b,m),t))if(i)x[b]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:x.push(g)}else if(c)return!1;return h?-1:l||c?c:x}}},function(t,e,i){var n=i(176);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(14),o=i(45),r=i(27)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&(e=e[r],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(9),o=i(174)(1);n(n.P+n.F*!i(170)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(2);n(n.P+n.F*!i(170)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(3);n(n.P+n.F*!i(170)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(174)(4);n(n.P+n.F*!i(170)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(182);n(n.P+n.F*!i(170)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){var n=i(22),o=i(58),r=i(34),a=i(38);t.exports=function(t,e,i,s,u){n(e);var l=o(t),c=r(l),h=a(l.length),p=u?h-1:0,f=u?-1:1;if(i<2)for(;;){if(p in c){s=c[p],p+=f;break}if(p+=f,u?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:h>p;p+=f)p in c&&(s=e(s,c[p],p,l));return s}},function(t,e,i){"use strict";var n=i(9),o=i(182);n(n.P+n.F*!i(170)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(9),o=i(37)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!i(170)(r)),"Array",{indexOf:function(t){return a?r.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(9),o=i(33),r=i(39),a=i(38),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(u||!i(170)(s)),"Array",{lastIndexOf:function(t){if(u)return s.apply(this,arguments)||0;var e=o(this),i=a(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,r(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(9);n(n.P,"Array",{copyWithin:i(187)}),i(188)("copyWithin")},function(t,e,i){"use strict";var n=i(58),o=i(40),r=i(38);t.exports=[].copyWithin||function(t,e){var i=n(this),a=r(i.length),s=o(t,a),u=o(e,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:o(l,a))-u,a-s),h=1;for(u0;)u in i?i[s]=i[u]:delete i[s],s+=h,u+=h;return i}},function(t,e,i){var n=i(27)("unscopables"),o=Array.prototype;void 0==o[n]&&i(11)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,i){var n=i(9);n(n.P,"Array",{fill:i(190)}),i(188)("fill")},function(t,e,i){"use strict";var n=i(58),o=i(40),r=i(38);t.exports=function(t){for(var e=n(this),i=r(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,i),u=a>2?arguments[2]:void 0,l=void 0===u?i:o(u,i);l>s;)e[s++]=t;return e}},function(t,e,i){"use strict";var n=i(9),o=i(174)(5),r="find",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(r)},function(t,e,i){"use strict";var n=i(9),o=i(174)(6),r="findIndex",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)(r)},function(t,e,i){i(194)("Array")},function(t,e,i){"use strict";var n=i(5),o=i(12),r=i(7),a=i(27)("species");t.exports=function(t){var e=n[t];r&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(188),o=i(196),r=i(130),a=i(33);t.exports=i(129)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(5),o=i(88),r=i(12).f,a=i(50).f,s=i(135),u=i(198),l=n.RegExp,c=l,h=l.prototype,p=/a/g,f=/a/g,d=new l(p)!==p;if(i(7)&&(!d||i(8)(function(){return f[i(27)("match")]=!1,l(p)!=p||l(f)==f||"/a/i"!=l(p,"i")}))){l=function(t,e){var i=this instanceof l,n=s(t),r=void 0===e;return!i&&n&&t.constructor===l&&r?t:o(d?new c(n&&!r?t.source:t,e):c((n=t instanceof l)?t.source:t,n&&r?u.call(t):e),i?this:h,l)};for(var g=(function(t){t in l||r(l,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})}),y=a(c),m=0;y.length>m;)g(y[m++]);h.constructor=l,l.prototype=h,i(19)(n,"RegExp",l)}i(194)("RegExp")},function(t,e,i){"use strict";var n=i(13);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){"use strict";i(200);var n=i(13),o=i(198),r=i(7),a="toString",s=/./[a],u=function(t){i(19)(RegExp.prototype,a,t,!0)};i(8)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):s.name!=a&&u(function(){return s.call(this)})},function(t,e,i){i(7)&&"g"!=/./g.flags&&i(12).f(RegExp.prototype,"flags",{configurable:!0,get:i(198)})},function(t,e,i){i(202)("match",1,function(t,e,i){return[function(i){"use strict";var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){"use strict";var n=i(11),o=i(19),r=i(8),a=i(36),s=i(27);t.exports=function(t,e,i){var u=s(t),l=i(a,u,""[t]),c=l[0],h=l[1];r(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,c),n(RegExp.prototype,u,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,i){i(202)("replace",2,function(t,e,i){return[function(n,o){"use strict";var r=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,r,o):i.call(String(r),n,o)},i]})},function(t,e,i){i(202)("search",1,function(t,e,i){return[function(i){"use strict";var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},i]})},function(t,e,i){i(202)("split",2,function(t,e,n){"use strict";var o=i(135),r=n,a=[].push,s="split",u="length",l="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[u]||2!="ab"[s](/(?:ab)*/)[u]||4!="."[s](/(.?)(.?)/)[u]||"."[s](/()()/)[u]>1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];n=function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!o(t))return r.call(i,t,e);var n,s,h,p,f,d=[],g=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,m=void 0===e?4294967295:e>>>0,_=new RegExp(t.source,g+"g");for(c||(n=new RegExp("^"+_.source+"$(?!\\s)",g));(s=_.exec(i))&&(h=s.index+s[0][u],!(h>y&&(d.push(i.slice(y,s.index)),!c&&s[u]>1&&s[0].replace(n,function(){for(f=1;f1&&s.index=m)));)_[l]===s.index&&_[l]++;return y===i[u]?!p&&_.test("")||d.push(""):d.push(i.slice(y)),d[u]>m?d.slice(0,m):d}}else"0"[s](void 0,0)[u]&&(n=function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)});return[function(i,o){var r=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},n]})},function(t,e,i){"use strict";var n,o,r,a,s=i(25),u=i(5),l=i(21),c=i(75),h=i(9),p=i(14),f=i(22),d=i(207),g=i(208),y=i(209),m=i(210).set,_=i(211)(),v=i(212),T=i(213),b=i(214),x=i(215),E="Promise",A=u.TypeError,D=u.process,S=D&&D.versions,M=S&&S.v8||"",L=u[E],C="process"==c(D),w=function(){},P=o=v.f,O=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[i(27)("species")]=function(t){t(w,w)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e&&0!==M.indexOf("6.6")&&b.indexOf("Chrome/66")===-1}catch(n){}}(),R=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var i=t._c;_(function(){for(var n=t._v,o=1==t._s,r=0,a=function(e){var i,r,a,s=o?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(o||(2==t._h&&N(t),t._h=1),s===!0?i=n:(c&&c.enter(),i=s(n),c&&(c.exit(),a=!0)),i===e.promise?l(A("Promise-chain cycle")):(r=R(i))?r.call(i,u,l):u(i)):l(n)}catch(h){c&&!a&&c.exit(),l(h)}};i.length>r;)a(i[r++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){m.call(u,function(){var e,i,n,o=t._v,r=B(t);if(r&&(e=T(function(){C?D.emit("unhandledRejection",o,t):(i=u.onunhandledrejection)?i({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=C||B(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){m.call(u,function(){var e;C?D.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},G=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw A("Promise can't be resolved itself");(e=R(t))?_(function(){var n={_w:i,_d:!1};try{e.call(t,l(G,n,1),l(F,n,1))}catch(o){F.call(n,o)}}):(i._v=t,i._s=1,I(i,!1))}catch(n){F.call({_w:i,_d:!1},n)}}};O||(L=function(t){d(this,L,E,"_h"),f(t),n.call(this);try{t(l(G,this,1),l(F,this,1))}catch(e){F.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(216)(L.prototype,{then:function(t,e){var i=P(y(this,L));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?D.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&I(this,!1),i.promise},"catch":function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(G,t,1),this.reject=l(F,t,1)},v.f=P=function(t){return t===L||t===a?new r(t):o(t)}),h(h.G+h.W+h.F*!O,{Promise:L}),i(26)(L,E),i(194)(E),a=i(10)[E],h(h.S+h.F*!O,E,{reject:function(t){var e=P(this),i=e.reject;return i(t),e.promise}}),h(h.S+h.F*(s||!O),E,{resolve:function(t){return x(s&&this===a?L:this,t)}}),h(h.S+h.F*!(O&&i(167)(function(t){L.all(t)["catch"](w)})),E,{all:function(t){var e=this,i=P(e),n=i.resolve,o=i.reject,r=T(function(){var i=[],r=0,a=1;g(t,!1,function(t){var s=r++,u=!1;i.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,i[s]=t,--a||n(i))},o)}),--a||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=P(e),n=i.reject,o=T(function(){g(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(21),o=i(163),r=i(164),a=i(13),s=i(38),u=i(166),l={},c={},e=t.exports=function(t,e,i,h,p){var f,d,g,y,m=p?function(){return t}:u(t),_=n(i,h,e?2:1),v=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(r(m)){for(f=s(t.length);f>v;v++)if(y=e?_(a(d=t[v])[0],d[1]):_(t[v]),y===l||y===c)return y}else for(g=m.call(t);!(d=g.next()).done;)if(y=o(g,_,d.value,e),y===l||y===c)return y};e.BREAK=l,e.RETURN=c},function(t,e,i){var n=i(13),o=i(22),r=i(27)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||void 0==(i=n(a)[r])?e:o(i)}},function(t,e,i){var n,o,r,a=i(21),s=i(78),u=i(48),l=i(16),c=i(5),h=c.process,p=c.setImmediate,f=c.clearImmediate,d=c.MessageChannel,g=c.Dispatch,y=0,m={},_="onreadystatechange",v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},T=function(t){v.call(t.data)};p&&f||(p=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},n(y),y},f=function(t){delete m[t]},"process"==i(35)(h)?n=function(t){h.nextTick(a(v,t,1))}:g&&g.now?n=function(t){g.now(a(v,t,1))}:d?(o=new d,r=o.port2,o.port1.onmessage=T,n=a(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",T,!1)):n=_ in l("script")?function(t){u.appendChild(l("script"))[_]=function(){u.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:p,clear:f}},function(t,e,i){var n=i(5),o=i(210).set,r=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==i(35)(a);t.exports=function(){var t,e,i,l=function(){var n,o;for(u&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?i():e=void 0,r}}e=void 0,n&&n.enter()};if(u)i=function(){a.nextTick(l)};else if(!r||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);i=function(){c.then(l)}}else i=function(){o.call(n,l)};else{var h=!0,p=document.createTextNode("");new r(l).observe(p,{characterData:!0}),i=function(){p.data=h=!h}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,i()),e=o}}},function(t,e,i){"use strict";function n(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=o(e),this.reject=o(i)}var o=i(22);t.exports.f=function(t){return new n(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},function(t,e,i){var n=i(5),o=n.navigator;t.exports=o&&o.userAgent||""},function(t,e,i){var n=i(13),o=i(14),r=i(212);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var i=r.f(t),a=i.resolve;return a(e),i.promise}},function(t,e,i){var n=i(19);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},function(t,e,i){"use strict";var n=i(218),o=i(219),r="Map";t.exports=i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(o(this,r),t);return e&&e.v},set:function(t,e){return n.def(o(this,r),0===t?0:t,e)}},n,!0)},function(t,e,i){"use strict";var n=i(12).f,o=i(46),r=i(216),a=i(21),s=i(207),u=i(208),l=i(129),c=i(196),h=i(194),p=i(7),f=i(23).fastKey,d=i(219),g=p?"_s":"size",y=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var c=t(function(t,n){s(t,c,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=n&&u(n,i,t[l],t)});return r(c.prototype,{clear:function(){for(var t=d(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[g]=0},"delete":function(t){var i=d(this,e),n=y(i,t);if(n){var o=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),i._f==n&&(i._f=o),i._l==n&&(i._l=r),i[g]--}return!!n},forEach:function(t){d(this,e);for(var i,n=a(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!y(d(this,e),t)}}),p&&n(c.prototype,"size",{get:function(){return d(this,e)[g]}}),c},def:function(t,e,i){var n,o,r=y(t,e);return r?r.v=i:(t._l=r={i:o=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=r),n&&(n.n=r),t[g]++,"F"!==o&&(t._i[o]=r)),t},getEntry:y,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=d(t,e),this._k=i,this._l=void 0},function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?"keys"==e?c(0,i.k):"values"==e?c(0,i.v):c(0,[i.k,i.v]):(t._t=void 0,c(1))},i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){"use strict";var n=i(5),o=i(9),r=i(19),a=i(216),s=i(23),u=i(208),l=i(207),c=i(14),h=i(8),p=i(167),f=i(26),d=i(88);t.exports=function(t,e,i,g,y,m){var _=n[t],v=_,T=y?"set":"add",b=v&&v.prototype,x={},E=function(t){var e=b[t];r(b,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof v&&(m||b.forEach&&!h(function(){(new v).entries().next()}))){var A=new v,D=A[T](m?{}:-0,1)!=A,S=h(function(){A.has(1)}),M=p(function(t){new v(t)}),L=!m&&h(function(){for(var t=new v,e=5;e--;)t[T](e,e);return!t.has(-0)});M||(v=e(function(e,i){l(e,v,t);var n=d(new _,e,v);return void 0!=i&&u(i,y,n[T],n),n}),v.prototype=b,b.constructor=v),(S||L)&&(E("delete"),E("has"),y&&E("get")),(L||D)&&E(T),m&&b.clear&&delete b.clear}else v=g.getConstructor(e,t,y,T),a(v.prototype,i),s.NEED=!0;return f(v,t),x[t]=v,o(o.G+o.W+o.F*(v!=_),x),m||g.setStrong(v,t,y),v}},function(t,e,i){"use strict";var n=i(218),o=i(219),r="Set";t.exports=i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,r),t=0===t?0:t,t)}},n)},function(t,e,i){"use strict";var n,o=i(174)(0),r=i(19),a=i(23),s=i(69),u=i(223),l=i(14),c=i(8),h=i(219),p="WeakMap",f=a.getWeak,d=Object.isExtensible,g=u.ufstore,y={},m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(l(t)){var e=f(t);return e===!0?g(h(this,p)).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(h(this,p),t,e)}},v=t.exports=i(220)(p,m,_,u,!0,!0);c(function(){return 7!=(new v).set((Object.freeze||Object)(y),7).get(y)})&&(n=u.getConstructor(m,p),s(n.prototype,_),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=v.prototype,i=e[t];r(e,t,function(e,o){if(l(e)&&!d(e)){this._f||(this._f=new n);var r=this._f[t](e,o);return"set"==t?this:r}return i.call(this,e,o)})}))},function(t,e,i){"use strict";var n=i(216),o=i(23).getWeak,r=i(13),a=i(14),s=i(207),u=i(208),l=i(174),c=i(6),h=i(219),p=l(5),f=l(6),d=0,g=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},m=function(t,e){return p(t.a,function(t){return t[0]===e})};y.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var i=m(this,t);i?i[1]=e:this.a.push([t,e])},"delete":function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,r){var l=t(function(t,n){s(t,l,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=n&&u(n,i,t[r],t)});return n(l.prototype,{"delete":function(t){if(!a(t))return!1;var i=o(t);return i===!0?g(h(this,e))["delete"](t):i&&c(i,this._i)&&delete i[this._i]},has:function(t){if(!a(t))return!1;var i=o(t);return i===!0?g(h(this,e)).has(t):i&&c(i,this._i)}}),l},def:function(t,e,i){var n=o(r(e),!0);return n===!0?g(t).set(e,i):n[t._i]=i,t},ufstore:g}},function(t,e,i){"use strict";var n=i(223),o=i(219),r="WeakSet";i(220)(r,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,r),t,!0)}},n,!1,!0)},function(t,e,i){"use strict";var n=i(9),o=i(226),r=i(227),a=i(13),s=i(40),u=i(38),l=i(14),c=i(5).ArrayBuffer,h=i(209),p=r.ArrayBuffer,f=r.DataView,d=o.ABV&&c.isView,g=p.prototype.slice,y=o.VIEW,m="ArrayBuffer";n(n.G+n.W+n.F*(c!==p),{ArrayBuffer:p}),n(n.S+n.F*!o.CONSTR,m,{isView:function(t){return d&&d(t)||l(t)&&y in t}}),n(n.P+n.U+n.F*i(8)(function(){return!new p(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(a(this),t);for(var i=a(this).byteLength,n=s(t,i),o=s(void 0===e?i:e,i),r=new(h(this,p))(u(o-n)),l=new f(this),c=new f(r),d=0;n>1,c=23===e?V(2,-24)-V(2,-77):0,h=0,p=t<0||0===t&&1/t<0?1:0;for(t=H(t),t!=t||t===F?(o=t!=t?1:0,n=u):(n=j(z(t)/W),t*(r=V(2,-n))<1&&(n--,r*=2),t+=n+l>=1?c/r:c*V(2,1-l),t*r>=2&&(n++,r/=2),n+l>=u?(o=0,n=u):n+l>=1?(o=(t*r-1)*V(2,e),n+=l):(o=t*V(2,l-1)*V(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<0;a[h++]=255&n,n/=256,s-=8);return a[--h]|=128*p,a}function o(t,e,i){var n,o=8*i-e-1,r=(1<>1,s=o-7,u=i-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(n=c&(1<<-s)-1,c>>=-s,s+=e;s>0;n=256*n+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===r)return n?NaN:l?-F:F;n+=V(2,e),c-=a}return(l?-1:1)*n*V(2,c-e)}function r(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function u(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function c(t){return n(t,23,4)}function h(t,e,i){S(t[P],e,{get:function(){return this[i]}})}function p(t,e,i,n){var o=+i,r=A(o);if(r+e>t[K])throw N(R);var a=t[Z]._b,s=r+t[q],u=a.slice(s,s+e);return n?u:u.reverse()}function f(t,e,i,n,o,r){var a=+i,s=A(a);if(s+e>t[K])throw N(R);for(var u=t[Z]._b,l=s+t[q],c=n(+o),h=0;htt;)(J=$[tt++])in I||_(I,J,G[J]);y||(Q.constructor=I)}var et=new k(new I(2)),it=k[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||v(k[P],{setInt8:function(t,e){it.call(this,t,e<<24>>24)},setUint8:function(t,e){it.call(this,t,e<<24>>24)}},!0)}else I=function(t){b(this,I,C);var e=A(t);this._b=M.call(new Array(e),0),this[K]=e},k=function(t,e,i){b(this,k,w),b(t,I,w);var n=t[K],o=x(e);if(o<0||o>n)throw N("Wrong offset!");if(i=void 0===i?n-o:E(i),o+i>n)throw N(O);this[Z]=t,this[q]=o,this[K]=i},g&&(h(I,U,"_l"),h(k,Y,"_b"),h(k,U,"_l"),h(k,X,"_o")),v(k[P],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var e=p(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=p(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return r(p(this,4,t,arguments[1]))},getUint32:function(t){return r(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,a,e)},setUint8:function(t,e){f(this,1,t,a,e)},setInt16:function(t,e){f(this,2,t,s,e,arguments[2])},setUint16:function(t,e){f(this,2,t,s,e,arguments[2])},setInt32:function(t,e){f(this,4,t,u,e,arguments[2])},setUint32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,c,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,l,e,arguments[2])}});L(I,C),L(k,w),_(k[P],m.VIEW,!0),e[C]=I,e[w]=k},function(t,e,i){var n=i(39),o=i(38);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=o(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(9);n(n.G+n.W+n.F*!i(226).ABV,{DataView:i(227).DataView})},function(t,e,i){i(231)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){"use strict";if(i(7)){var n=i(25),o=i(5),r=i(8),a=i(9),s=i(226),u=i(227),l=i(21),c=i(207),h=i(18),p=i(11),f=i(216),d=i(39),g=i(38),y=i(228),m=i(40),_=i(17),v=i(6),T=i(75),b=i(14),x=i(58),E=i(164),A=i(46),D=i(59),S=i(50).f,M=i(166),L=i(20),C=i(27),w=i(174),P=i(37),O=i(209),R=i(195),I=i(130),k=i(167),B=i(194),N=i(190),F=i(187),G=i(12),H=i(51),V=G.f,j=H.f,z=o.RangeError,W=o.TypeError,Y=o.Uint8Array,U="ArrayBuffer",X="Shared"+U,Z="BYTES_PER_ELEMENT",K="prototype",q=Array[K],J=u.ArrayBuffer,Q=u.DataView,$=w(0),tt=w(2),et=w(3),it=w(4),nt=w(5),ot=w(6),rt=P(!0),at=P(!1),st=R.values,ut=R.keys,lt=R.entries,ct=q.lastIndexOf,ht=q.reduce,pt=q.reduceRight,ft=q.join,dt=q.sort,gt=q.slice,yt=q.toString,mt=q.toLocaleString,_t=C("iterator"),vt=C("toStringTag"),Tt=L("typed_constructor"),bt=L("def_constructor"),xt=s.CONSTR,Et=s.TYPED,At=s.VIEW,Dt="Wrong length!",St=w(1,function(t,e){return Pt(O(t,t[bt]),e)}),Mt=r(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Lt=!!Y&&!!Y[K].set&&r(function(){new Y(1).set({})}),Ct=function(t,e){var i=d(t);if(i<0||i%e)throw z("Wrong offset!");return i},wt=function(t){if(b(t)&&Et in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(b(t)&&Tt in t))throw W("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return Rt(O(t,t[bt]),e)},Rt=function(t,e){for(var i=0,n=e.length,o=Pt(t,n);n>i;)o[i]=e[i++];return o},It=function(t,e,i){V(t,e,{get:function(){return this._d[i]}})},kt=function(t){var e,i,n,o,r,a,s=x(t),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,p=M(s);if(void 0!=p&&!E(p)){for(a=p.call(s),n=[],e=0;!(r=a.next()).done;e++)n.push(r.value);s=n}for(h&&u>2&&(c=l(c,arguments[2],2)),e=0,i=g(s.length),o=Pt(this,i);i>e;e++)o[e]=h?c(s[e],e):s[e];return o},Bt=function(){for(var t=0,e=arguments.length,i=Pt(this,e);e>t;)i[t]=arguments[t++];return i},Nt=!!Y&&r(function(){mt.call(new Y(1))}),Ft=function(){return mt.apply(Nt?gt.call(wt(this)):wt(this),arguments)},Gt={copyWithin:function(t,e){return F.call(wt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(wt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(wt(this),arguments)},filter:function(t){return Ot(this,tt(wt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(wt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(wt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(wt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(wt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(wt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(wt(this),arguments)},lastIndexOf:function(t){return ct.apply(wt(this),arguments)},map:function(t){return St(wt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(wt(this),arguments)},reduceRight:function(t){return pt.apply(wt(this),arguments)},reverse:function(){for(var t,e=this,i=wt(e).length,n=Math.floor(i/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return dt.call(wt(this),t)},subarray:function(t,e){var i=wt(this),n=i.length,o=m(t,n);return new(O(i,i[bt]))(i.buffer,i.byteOffset+o*i.BYTES_PER_ELEMENT,g((void 0===e?n:m(e,n))-o))}},Ht=function(t,e){return Ot(this,gt.call(wt(this),t,e))},Vt=function(t){wt(this);var e=Ct(arguments[1],1),i=this.length,n=x(t),o=g(n.length),r=0;if(o+e>i)throw z(Dt);for(;r255?255:255&n),o.v[f](i*e+o.o,n,Mt)},C=function(t,e){V(t,e,{get:function(){return M(this,e)},set:function(t){return L(this,e,t)},enumerable:!0})};v?(d=i(function(t,i,n,o){c(t,d,l,"_d");var r,a,s,u,h=0,f=0;if(b(i)){if(!(i instanceof J||(u=T(i))==U||u==X))return Et in i?Rt(d,i):kt.call(d,i);r=i,f=Ct(n,e);var m=i.byteLength;if(void 0===o){if(m%e)throw z(Dt);if(a=m-f,a<0)throw z(Dt)}else if(a=g(o)*e,a+f>m)throw z(Dt);s=a/e}else s=y(i),a=s*e,r=new J(a);for(p(t,"_d",{b:r,o:f,l:a,e:s,v:new Q(r)});h=i.length)return{value:void 0,done:!0};while(!((t=i[e._i++])in e._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,i){function n(t,e){var i,s,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(i=o.f(t,e))?a(i,"value")?i.value:void 0!==i.get?i.get.call(c):void 0:u(s=r(t))?n(s,e,c):void 0}var o=i(51),r=i(59),a=i(6),s=i(9),u=i(14),l=i(13);s(s.S,"Reflect",{get:n})},function(t,e,i){var n=i(51),o=i(9),r=i(13);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(r(t),e)}})},function(t,e,i){var n=i(9),o=i(59),r=i(13);n(n.S,"Reflect",{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(9),o=i(13),r=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return o(t),!r||r(t)}})},function(t,e,i){var n=i(9);n(n.S,"Reflect",{ownKeys:i(251)})},function(t,e,i){var n=i(50),o=i(43),r=i(13),a=i(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(9),o=i(13),r=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){o(t);try{return r&&r(t),!0}catch(e){return!1}}})},function(t,e,i){function n(t,e,i){var u,p,f=arguments.length<4?t:arguments[3],d=r.f(c(t),e);if(!d){if(h(p=a(t)))return n(p,e,i,f);d=l(0)}if(s(d,"value")){if(d.writable===!1||!h(f))return!1;if(u=r.f(f,e)){if(u.get||u.set||u.writable===!1)return!1;u.value=i,o.f(f,e,u)}else o.f(f,e,l(0,i));return!0}return void 0!==d.set&&(d.set.call(f,i),!0)}var o=i(12),r=i(51),a=i(59),s=i(6),u=i(9),l=i(18),c=i(13),h=i(14);u(u.S,"Reflect",{set:n})},function(t,e,i){var n=i(9),o=i(73);o&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(i){return!1}}})},function(t,e,i){"use strict";var n=i(9),o=i(37)(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(188)("includes")},function(t,e,i){"use strict";var n=i(9),o=i(257),r=i(58),a=i(38),s=i(22),u=i(175);n(n.P,"Array",{flatMap:function(t){var e,i,n=r(this);return s(t),e=a(n.length),i=u(n,0),o(i,n,n,e,0,1,t,arguments[1]),i}}),i(188)("flatMap")},function(t,e,i){"use strict";function n(t,e,i,l,c,h,p,f){for(var d,g,y=c,m=0,_=!!p&&s(p,f,3);m0)y=n(t,e,d,a(d.length),y,h-1)-1;else{if(y>=9007199254740991)throw TypeError();t[y]=d}y++}m++}return y}var o=i(45),r=i(14),a=i(38),s=i(21),u=i(27)("isConcatSpreadable");t.exports=n},function(t,e,i){"use strict";var n=i(9),o=i(257),r=i(58),a=i(38),s=i(39),u=i(175);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=r(this),i=a(e.length),n=u(e,0);return o(n,e,e,i,0,void 0===t?1:s(t)),n}}),i(188)("flatten")},function(t,e,i){"use strict";var n=i(9),o=i(128)(!0);n(n.P,"String",{at:function(t){return o(this,t)}})},function(t,e,i){"use strict";var n=i(9),o=i(261),r=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){var n=i(38),o=i(91),r=i(36);t.exports=function(t,e,i,a){var s=String(r(t)),u=s.length,l=void 0===i?" ":String(i),c=n(e);if(c<=u||""==l)return s;var h=c-u,p=o.call(l,Math.ceil(h/l.length));return p.length>h&&(p=p.slice(0,h)),a?p+s:s+p}},function(t,e,i){"use strict";var n=i(9),o=i(261),r=i(214);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){"use strict";i(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,i){"use strict";i(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,i){"use strict";var n=i(9),o=i(36),r=i(38),a=i(135),s=i(198),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};i(131)(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in u?String(t.flags):s.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=r(t.lastIndex),new l(n,e)}})},function(t,e,i){i(29)("asyncIterator")},function(t,e,i){i(29)("observable")},function(t,e,i){var n=i(9),o=i(251),r=i(33),a=i(51),s=i(165);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=r(t),u=a.f,l=o(n),c={},h=0;l.length>h;)i=u(n,e=l[h++]),void 0!==i&&s(c,e,i);return c}})},function(t,e,i){var n=i(9),o=i(270)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,i){var n=i(31),o=i(33),r=i(44).f;t.exports=function(t){return function(e){for(var i,a=o(e),s=n(a),u=s.length,l=0,c=[];u>l;)r.call(a,i=s[l++])&&c.push(t?[i,a[i]]:a[i]);return c}}},function(t,e,i){var n=i(9),o=i(270)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:r(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";t.exports=i(25)||!i(8)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(5)[t]})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(22),a=i(12);i(7)&&n(n.P+i(273),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:r(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupGetter__:function(t){var e,i=o(this),n=r(t,!0);do if(e=s(i,n))return e.get;while(i=a(i))}})},function(t,e,i){"use strict";var n=i(9),o=i(58),r=i(17),a=i(59),s=i(51).f;i(7)&&n(n.P+i(273),"Object",{__lookupSetter__:function(t){var e,i=o(this),n=r(t,!0);do if(e=s(i,n))return e.set;while(i=a(i))}})},function(t,e,i){var n=i(9);n(n.P+n.R,"Map",{toJSON:i(278)("Map")})},function(t,e,i){var n=i(75),o=i(279);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,i){var n=i(208);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},function(t,e,i){var n=i(9);n(n.P+n.R,"Set",{toJSON:i(278)("Set")})},function(t,e,i){i(282)("Map")},function(t,e,i){"use strict";var n=i(9);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,i){i(282)("Set")},function(t,e,i){i(282)("WeakMap")},function(t,e,i){i(282)("WeakSet")},function(t,e,i){i(287)("Map")},function(t,e,i){"use strict";var n=i(9),o=i(22),r=i(21),a=i(208);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,u=arguments[1];return o(this),e=void 0!==u,e&&o(u),void 0==t?new this:(i=[],e?(n=0,s=r(u,arguments[2],2),a(t,!1,function(t){i.push(s(t,n++))})):a(t,!1,i.push,i),new this(i))}})}},function(t,e,i){i(287)("Set")},function(t,e,i){i(287)("WeakMap")},function(t,e,i){i(287)("WeakSet")},function(t,e,i){var n=i(9);n(n.G,{global:i(5)})},function(t,e,i){var n=i(9);n(n.S,"System",{global:i(5)})},function(t,e,i){var n=i(9),o=i(35);n(n.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},function(t,e,i){var n=i(9);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,i){var n=i(9),o=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*o}})},function(t,e,i){var n=i(9),o=i(298),r=i(114);n(n.S,"Math",{fscale:function(t,e,i,n,a){return r(o(t,e,i,n,a))}})},function(t,e){t.exports=Math.scale||function(t,e,i,n,o){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||o!=o?NaN:t===1/0||t===-(1/0)?t:(t-e)*(o-n)/(i-e)+n}},function(t,e,i){var n=i(9);n(n.S,"Math",{iaddh:function(t,e,i,n){var o=t>>>0,r=e>>>0,a=i>>>0;return r+(n>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{isubh:function(t,e,i,n){var o=t>>>0,r=e>>>0,a=i>>>0;return r-(n>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,i){var n=i(9);n(n.S,"Math",{imulh:function(t,e){var i=65535,n=+t,o=+e,r=n&i,a=o&i,s=n>>16,u=o>>16,l=(s*a>>>0)+(r*a>>>16);return s*u+(l>>16)+((r*u>>>0)+(l&i)>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,i){var n=i(9),o=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*o}})},function(t,e,i){var n=i(9);n(n.S,"Math",{scale:i(298)})},function(t,e,i){var n=i(9);n(n.S,"Math",{umulh:function(t,e){var i=65535,n=+t,o=+e,r=n&i,a=o&i,s=n>>>16,u=o>>>16,l=(s*a>>>0)+(r*a>>>16);return s*u+(l>>>16)+((r*u>>>0)+(l&i)>>>16)}})},function(t,e,i){var n=i(9);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,i){"use strict";var n=i(9),o=i(10),r=i(5),a=i(209),s=i(215);n(n.P+n.R,"Promise",{"finally":function(t){var e=a(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return s(e,t()).then(function(){return i})}:t,i?function(i){return s(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var n=i(9),o=i(212),r=i(213);n(n.S,"Promise",{"try":function(t){var e=o.f(this),i=r(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){var n=i(310),o=i(13),r=n.key,a=n.set;n.exp({defineMetadata:function(t,e,i,n){a(t,e,o(i),r(n))}})},function(t,e,i){var n=i(217),o=i(9),r=i(24)("metadata"),a=r.store||(r.store=new(i(222))),s=function(t,e,i){var o=a.get(t);if(!o){if(!i)return;a.set(t,o=new n)}var r=o.get(e);if(!r){if(!i)return;o.set(e,r=new n)}return r},u=function(t,e,i){var n=s(e,i,!1);return void 0!==n&&n.has(t)},l=function(t,e,i){var n=s(e,i,!1);return void 0===n?void 0:n.get(t)},c=function(t,e,i,n){s(i,n,!0).set(t,e)},h=function(t,e){var i=s(t,e,!1),n=[];return i&&i.forEach(function(t,e){n.push(e)}),n},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},f=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:h,key:p,exp:f}},function(t,e,i){var n=i(310),o=i(13),r=n.key,a=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:r(arguments[2]),n=a(o(e),i,!1);if(void 0===n||!n["delete"](t))return!1;if(n.size)return!0;var u=s.get(e);return u["delete"](i),!!u.size||s["delete"](e)}})},function(t,e,i){var n=i(310),o=i(13),r=i(59),a=n.has,s=n.get,u=n.key,l=function(t,e,i){var n=a(t,e,i);if(n)return s(t,e,i);var o=r(e);return null!==o?l(t,o,i):void 0};n.exp({getMetadata:function(t,e){return l(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,i){var n=i(221),o=i(279),r=i(310),a=i(13),s=i(59),u=r.keys,l=r.key,c=function(t,e){var i=u(t,e),r=s(t);if(null===r)return i;var a=c(r,e);return a.length?i.length?o(new n(i.concat(a))):a:i};r.exp({getMetadataKeys:function(t){return c(a(t),arguments.length<2?void 0:l(arguments[1]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return r(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return r(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,i){var n=i(310),o=i(13),r=i(59),a=n.has,s=n.key,u=function(t,e,i){var n=a(t,e,i);if(n)return!0;var o=r(e);return null!==o&&u(t,o,i)};n.exp({hasMetadata:function(t,e){return u(t,o(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return r(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(310),o=i(13),r=i(22),a=n.key,s=n.set;n.exp({metadata:function(t,e){return function(i,n){s(t,e,(void 0!==n?o:r)(i),a(n))}}})},function(t,e,i){var n=i(9),o=i(211)(),r=i(5).process,a="process"==i(35)(r);n(n.G,{asap:function(t){var e=a&&r.domain;o(e?e.bind(t):t)}})},function(t,e,i){"use strict";var n=i(9),o=i(5),r=i(10),a=i(211)(),s=i(27)("observable"),u=i(22),l=i(13),c=i(207),h=i(216),p=i(11),f=i(208),d=f.RETURN,g=function(t){return null==t?void 0:u(t)},y=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},_=function(t){m(t)||(t._o=void 0,y(t))},v=function(t,e){l(t),this._c=void 0,this._o=t,t=new T(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:u(i),this._c=i)}catch(o){return void t.error(o)}m(this)&&y(this)};v.prototype=h({},{unsubscribe:function(){_(this)}});var T=function(t){this._s=t};T.prototype=h({},{next:function(t){var e=this._s;if(!m(e)){var i=e._o;try{var n=g(i.next);if(n)return n.call(i,t)}catch(o){try{_(e)}finally{throw o}}}},error:function(t){var e=this._s;if(m(e))throw t;var i=e._o;e._o=void 0;try{var n=g(i.error);if(!n)throw t;t=n.call(i,t)}catch(o){try{y(e)}finally{throw o}}return y(e),t},complete:function(t){var e=this._s;if(!m(e)){var i=e._o;e._o=void 0;try{var n=g(i.complete);t=n?n.call(i,t):void 0}catch(o){try{y(e)}finally{throw o}}return y(e),t}}});var b=function(t){c(this,b,"Observable","_f")._f=u(t)};h(b.prototype,{subscribe:function(t){return new v(t,this._f)},forEach:function(t){var e=this;return new(r.Promise||o.Promise)(function(i,n){u(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(i){n(i),o.unsubscribe()}},error:n,complete:i})})}}),h(b,{from:function(t){var e="function"==typeof this?this:b,i=g(l(t)[s]);if(i){var n=l(i.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var i=!1;return a(function(){if(!i){try{if(f(t,!1,function(t){if(e.next(t),i)return d})===d)return}catch(n){if(i)throw n;return void e.error(n)}e.complete()}}),function(){i=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t2,o=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};o(o.G+o.B+o.F*s,{setTimeout:u(n.setTimeout),setInterval:u(n.setInterval)})},function(t,e,i){var n=i(9),o=i(210);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,i){for(var n=i(195),o=i(31),r=i(19),a=i(5),s=i(11),u=i(130),l=i(27),c=l("iterator"),h=l("toStringTag"),p=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(f),g=0;g=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&_.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),p(i),C}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;p(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:d(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=y),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}())},function(t,e,i){i(326),t.exports=i(10).RegExp.escape},function(t,e,i){var n=i(9),o=i(327)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e){t.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(329),r=i(357),a=n(r),s=i(334),u=n(s),l=i(337),c=n(l),h=i(465),p=n(h);i(474),a["default"].registerPlugin("Raphael",o.pluginRaphael,o.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=c["default"],a["default"].colorutil=p["default"],t.exports=a["default"]},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),o=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",n.setAttribute("result","flood"),n.setAttribute("flood-color","#ffffff"),n.setAttribute("flood-opacity","0.5"),o.setAttribute("in","flood"),o.setAttribute("result","mask"),o.setAttribute("in2","SourceGraphic"),o.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(n),e.appendChild(o),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),n=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),n.setAttributeNS(null,"result","blurOut"),n.setAttributeNS(null,"in","offOut"),n.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(n),e.appendChild(o),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(330),s=n(a),u=i(331),l=n(u),c=i(338),h=n(c),p=i(339),f=n(p),d=i(340),g=n(d),y=i(343),m=n(y),_=i(345),v=n(_),T=i(346),b=n(T),x=i(347),E=n(x),A=i(348),D=n(A),S=i(349),M=n(S),L=i(350),C=n(L),w=i(352),P=n(w),O=i(353),R=n(O),I=i(354),k=n(I),B=i(355),N=n(B),F=i(356),G=n(F);e.pluginRaphael={bar:l["default"],boxplot:h["default"],bullet:f["default"],column:l["default"],line:g["default"],area:m["default"],pie:v["default"],bubble:E["default"],scatter:E["default"],heatmap:D["default"],treemap:D["default"],map:M["default"],radial:b["default"],legend:C["default"],mapLegend:P["default"],circleLegend:R["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),n=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(o(i),r(i)),i.pushDownBackgroundToBottom=function(){n.toBack()},i.changeChartBackgroundColor=function(t){n.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){n.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){n.attr({width:t,height:e})},n.attr({fill:"#fff","stroke-width":0}),i}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_330__},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),p=700,f=1,d=.3,g=.2,y=8,m=2,_=.4,v=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.theme,o=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=n,this.seriesDataModel=o,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=n,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var n=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return n.node.setAttribute("class","auto-shape-rendering"),n},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=t.map(function(t,o){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(o,r),s=n?i[o]:i[r],u=e._renderBar(t.start,s); +return{rect:u,color:s,bound:t.end,item:a,groupIndex:o,index:r,isRange:a.isRange}})});return o},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var n=i.value,o=null;if("bar"===e||n>=0||i.isRange){var r=l["default"].extend({},t.leftTop);r.left-="column"===e||n<0?1:0,o=s["default"].makeLinePath(r,t.rightTop).join(" ")}return o},t.prototype._makeRightLinePath=function(t,e,i){var n=null;return("column"===e||i.value>=0||i.isRange)&&(n=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),n},t.prototype._makeBottomLinePath=function(t,e,i){var n=null;return("bar"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),n},t.prototype._makeLeftLinePath=function(t,e,i){var n=null;return("column"===e||i.value<0||i.isRange)&&(n=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),n},t.prototype._makeBorderLinesPaths=function(t,e,i){var n=this._makeRectPoints(t),o={top:this._makeTopLinePath(n,e,i),right:this._makeRightLinePath(n,e,i),bottom:this._makeBottomLinePath(n,e,i),left:this._makeLeftLinePath(n,e,i)};return l["default"].filter(o,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,n){var o=this._makeBorderLinesPaths(t,i,n),a={};return Object.entries(o).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];a[n]=s["default"].renderLine(self.paper,o,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=l["default"].map(t,function(t,n){return l["default"].map(t,function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,self.chartType,r)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-m/2,y:e.height?e.top:e.top-m/2,width:e.width?e.width:m,height:e.height?e.height:m,opacity:e.height&&e.width?1:_},p,">")},t.prototype._animateBorders=function(t,e,i,n){var o=this._makeBorderLinesPaths(e,i,n);l["default"].forEach(t,function(t,e){t.animate({path:o[e]},p,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,n,o){var r=i[n]&&i[n][o];t&&(e._animateRect(t.rect,t.bound),r&&e._animateBorders(r,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},p))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+y,height:i.height+y,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],n=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(n.width,n.height),s["default"].forEach2dArray(this.groupBars,function(t,n,r){if(t){var a=i[n]&&i[n][r],u=o[n][r].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var n=this.groupBars[t.groupIndex][t.index];if(n.rect.attr({fill:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=h["default"].color(e.color),n=this.theme.selectionColor,o=n||s["default"].makeChangedLuminanceColor(i.hex,g),r=this.theme.borderColor;if(r){var a=h["default"].color(r);r=s["default"].makeChangedLuminanceColor(a.hex,g)}this._changeBarColor(t,o,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(n,o,r){if(n){var a=e[o]&&e[o][r],s=i||t===r?f:d;n.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r=o||"column"===this.chartType?"middle":"start",a={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":r},u=this.labelSet=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var r=e[n][o],l=s["default"].renderText(t,r.end,i.end,a),c=l.node.style;if(c.userSelect="none",c.cursor="default",u.push(l),r.start){var h=s["default"].renderText(t,r.start,i.start,a);h.node.style.userSelect="none",h.node.style.cursor="default",u.push(h)}})}),u},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var r=i(333),a=n(r),s=i(334),u=n(s),l=i(330),c=n(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[t.left,t.top],o=[e.left,e.top],r=i%2/2;return n.forEach(function(t,e){t===o[e]&&(n[e]=o[e]=Math.round(t)-r)}),["M"].concat(n,["L"],o)},renderLine:function(t,e,i,n){var o=t.path([e]),r={stroke:i,"stroke-width":a["default"].isUndefined(n)?2:n,"stroke-linecap":"butt"};return"transparent"===i&&(r.stroke="#fff",r["stroke-opacity"]=0),o.attr(r).node.setAttribute("class","auto-shape-rendering"),o},getEllipsisText:function(t,e,i){for(var n=t.split(""),o=n.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u=e){a+="..";break}a+=n[u]}return a},renderText:function(t,e,i,n){var o=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return n&&(n["dominant-baseline"]?o.node.setAttribute("dominant-baseline",n["dominant-baseline"]):o.node.setAttribute("dominant-baseline","central"),o.attr(n)),o},renderArea:function(t,e,i){var n=t.path(e);return i=Object.assign({"stroke-opacity":0},i),n.attr(i),n},renderCircle:function(t,e,i,n){var o=t.circle(e.left,e.top,i);return n&&o.attr(n),o},renderRect:function(t,e,i){var n=t.rect(e.left,e.top,e.width,e.height);return i&&n.attr(i),n},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,n){e(t,i,n)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var n=parseInt(t.substr(2*i,2),16),o=n+n*e;return o=Math.round(Math.min(Math.max(0,o),255)).toString(16),u["default"].formatToZeroFill(o,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var n=(0,c["default"])(document.body,100,100),o=n.text(0,0,t).attr({"font-size":e,"font-family":i}),r=o.getBBox();return o.remove(),n.remove(),{width:r.width,height:r.height}},animateOpacity:function(t,e,i,n){var r=o(n)?n:600,a=o(e)?e:0,s=o(i)?i:1,u=c["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)}}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_333__},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var n=[t,i];return d["default"].forEach(e,function(t,e){n.push(t+e)}),n.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,n=e.fontFamily,o=e.fontWeight,r=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",n&&(t.style.fontFamily=n),o&&(t.style.fontWeight=o),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var n=this._makeCachingKey(t,e,i),o=this.sizeCache[n];if(!o){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerHTML=t,this._addCssStyle(r,e),document.body.appendChild(r),o=a[i],document.body.removeChild(r),this.sizeCache[n]=o}return o},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=c["default"].create("DIV","tui-chart-size-check-element"),e=c["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var n=0;if(t&&t.length){var o=d["default"].map(t,function(t){return i(t,e)});n=p["default"].max(o)}return n},getRenderedLabelsMaxWidth:function(t,e){var i=d["default"].bind(this.getRenderedLabelWidth,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},getRenderedLabelsMaxHeight:function(t,e){var i=d["default"].bind(this.getRenderedLabelHeight,this),n=this._getRenderedLabelsMaxSize(t,e,i);return n},renderDimension:function(t,e){var i=e.width,n=void 0===i?0:i,o=e.height,r=void 0===o?0:o;t.style.cssText=[this.concatStr("width:",n,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){d["default"].isUndefined(e)||d["default"].forEachArray(["top","bottom","left","right"],function(i){var n=e[i];d["default"].isNumber(n)&&(t.style[i]=n+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var n=T.makeFontCssText(e),o=c["default"].create("DIV",i);return o.innerHTML=t,e.background&&(n+=";"+this.concatStr("background:",e.background)),o.style.cssText=n,o},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,n=t.valueType,r=void 0===n?"value":n,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(o(i||[]));return d["default"].reduce(l,function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.chartType,o=i.areaType,r=i.valueType;return e&&e.length?d["default"].map(t,function(t){return T.formatValue({value:t,formatFunctions:e,chartType:n,areaType:o,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=d["default"].isDate(t)?t:new Date(t);return d["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return d["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function n(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete o.id,i&&i()):o.id=requestAnimationFrame(n)}var o={},r=(new Date).getTime();return o.id=requestAnimationFrame(n),o},isOldBrowser:function(){return y},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=n;else{var c;s=t.split("").reverse(),u=s.length-1,s=d["default"].map(s,function(t,n){var o=[t];return n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),n=this._perseString(n),""!==i||""!==n?d["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,n)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=m?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=_+v;return v+=1,t}};y?(T.makeOpacityCssText=function(t){var e="";if(d["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},T.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(T.makeOpacityCssText=function(t){var e="";return d["default"].isExisty(t)&&(e=";opacity:"+t),e},T.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=T},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);n!==-1&&(i.splice(n,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),n=a["default"].inArray(e,i);return n>-1},findParentByClass:function(t,e,i){var n=t.parentNode,o=void 0;return o=n?this.hasClass(n,e)?n:"BODY"===n.nodeName||this.hasClass(n,i)?null:this.findParentByClass(n,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=r,n=t)})}else n=Math.max.apply(Math,o(t));return n}function s(t,e,i){var n=!1;return f["default"].forEach(t,function(o,r){return e.call(i,o,r,t)&&(n=!0),!n}),n}function u(t,e,i){var n=!!(t||[]).length;return f["default"].forEach(t,function(o,r){return e.call(i,o,r,t)||(n=!1),n!==!1}),n}function l(t,e,i,n){var o=[];if(f["default"].isBoolean(e)||(n=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;f["default"].forEachArray(t,function(e,a){e=i.call(n,e,a,t),a&&r===e||o.push(e),r=e})}else f["default"].forEachArray(t,function(e,r){e=i.call(n,e,r,t),f["default"].inArray(e,o)===-1&&o.push(e)});return o}function c(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var n=0;n0?1:-1,a=t.left,u=t.width,c=u/4,p="M"+(a+c)+","+t.top+"H"+(a+3*c),f=h["default"].oneLineTrim(s,a+2*c,t.top,t.top+Math.abs(o)*r),d=l["default"].renderLine(n,p,i,T),g=l["default"].renderLine(n,f,i,x),y=[];return d.attr({opacity:0}),g.attr({opacity:0}),y.push(d),y.push(g),y},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),o.push(a)}),o},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),n=l["default"].renderLine(this.paper,i,"#ffffff",b);return n.attr({opacity:0}),n},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var n=[];t.forEach(function(t){t&&n.push(e._renderMedianLine(t.median))}),i.push(n)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,n=this.options.colorByPoint,o=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,o){var s=n?i[r]:i[o],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),o.push(a)}),o},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,n){var o=this,r=this._makeBorderLinesPaths(t,i,n),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),n=i[0],r=i[1];s[n]=l["default"].renderLine(o.paper,r,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var n=t.map(function(t,n){return t.map(function(t,o){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(n,o);return e._renderBorderLines(t.start,i,e.chartType,r)})});return n},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},y,">")},t.prototype.animate=function(t){var e=this,i=g["default"].animation({opacity:1},y);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(y))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},y))},t.prototype.showAnimation=function(t){f["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,n){if(t){var o=i[e][n].end;t.bound=o,l["default"].updateRectBound(t.rect,o)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){ +var n=this.groupBoxes[t.groupIndex][t.index];if(n.rect.attr({stroke:e}),i){var o=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(o,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=g["default"].color(e.color),n=this.theme.selectionColor,o=l["default"].makeChangedLuminanceColor,r=n||o(i.hex,v),a=this.theme.borderColor;if(a){var s=g["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,v)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=f["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,n,o){if(i){var r=e||t===o?m:_;i.rect.attr({"stroke-opacity":r})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,n,o){var r=e||t===o?m:_;i.attr({"stroke-opacity":r})}),l["default"].forEach2dArray(this.groupMedians,function(i,n,o){var r=e||t===o?m:_;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,n,o){var r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":o?"middle":"start"},a=t.set();return i.forEach(function(i,n){i.forEach(function(i,o){var s=e[n][o],u=l["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var c=l["default"].renderText(t,s.start,i.start,r);c.node.style.userSelect="none",c.node.style.cursor="default",c.node.setAttribute("filter","url(#glow)"),a.push(c)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=n+"_rect",o.id=n,o.appendChild(r.node),t.defs.appendChild(o),r}e.__esModule=!0;var a=i(332),s=n(a),u=i(335),l=n(u),c=i(333),h=n(c),p=i(334),f=n(p),d=h["default"].browser,g=d.msie&&d.version<=8,y=700,m=700,_=1,v=.3,T=20,b=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,n=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=n,this.maxRangeCount=n.maxRangeCount,this.maxMarkerCount=n.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},m))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,n=e.width,o=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(n,o),this.paper.setSize(n,o)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=f["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=h["default"].isNull(t);this.groupBars.forEach(function(n,o){var r=i||t===o?_:v;e.groupBars[o].attr({"fill-opacity":r}),e.groupLabels[o].attr({opacity:r}),e.groupLabels[o].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=this,r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,n){var s=t.set();return i.forEach(function(i,u){var l=o._renderLabel(t,e[n][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,n){var o=s["default"].renderText(t,e,n,i),r=o.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),o},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var n=[],o=t.groupLines[i].length;e.forEach(function(t){n.push(t.attrs.fill)});for(var r=n[n.length-1],a=0;a<=o;a+=1)n.push(r);return n})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),p=n(h),f=1,d=.3,g=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=e.options,a=e.position,s=o.colors,u=r.showDot?1:0,l=r.spline,c=this.lineWidth=p["default"].isNumber(r.pointWidth)?r.pointWidth:this.lineWidth,h=this.makeBorderStyle(o.dot.strokeColor,u,o.dot.strokeWidth),f=this.makeOutDotStyle(u,h),d=void 0;return d=l?this._getSplineLinesPath(n,r.connectNulls):this._getLinesPath(n,r.connectNulls),this.paper=t,this.theme=o,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,d,s,c),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,n,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=s,this.borderStyle=h,this.outDotStyle=f,this.groupPositions=n,this.groupPaths=d,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,n){return e.map(function(e,o){var r=i[o]||"transparent",a=c["default"].renderLine(t,e.join(" "),r,n);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=n,this.groupPaths=this.isSpline?this._getSplineLinesPath(n):this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){t.endDot&&e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=this,i=p["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(n,o){var r=t===o,a=i||r?f:d,s=e.groupDots[o];n.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(n,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,n){var o=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;n?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(n),n=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,n=[],o=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var c=s(t,1),h=c[0],p=h;r=t.length,a=p,o=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(n,o){var r=t[o+2],s=i._getAnchor(a,n,r,e);return a=n,Math.abs(s.y1-h.top)>Math.abs(h.top-n.top)&&(s.y1=n.top),Math.abs(s.y2-r.top)>Math.abs(r.top-n.top)&&(s.y2=n.top),h=n,[s.x1,s.y1,n.left,n.top,s.x2,s.y2]}),l.push([o.left,o.top,o.left,o.top]),l.unshift(["M",p.left,p.top,"C",p.left,p.top]),n.push(l)}),n},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),n=this._getSplinePartialPaths(i,e.isReverseDirection),o=[];return n.forEach(function(t){o=o.concat(t)}),e.isBeConnected&&(o[0]=o[0].slice(3)),o},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var n={"stroke-width":i,"stroke-opacity":e};return t&&(n.stroke=t),n},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&m["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,n){var o=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,m["default"].isUndefined(o.radius)?b:o.radius),s={fill:o.fillColor||i,"fill-opacity":m["default"].isNumber(n)?n:o.fillOpacity,stroke:o.strokeColor||i,"stroke-opacity":m["default"].isNumber(n)?n:o.strokeOpacity,"stroke-width":o.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,n,o){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,n)};if(r.hasRangeData){var a=m["default"].extend({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,n)}return o&&(o.push(i.endDot.dot),i.startDot&&o.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,n={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(n.fill=i.fillColor),t.dot.attr(n),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,n=!m["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===D||n)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===S&&n&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===D?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],n=this._findDotItem(i,t.groupIndex),o=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(n){if("area"===this.chartType){var s=o;a=s.startLine,o=s.line,r=5,this._updateAreaOpacity(D)}else r=this.lineWidth;this._updateLineStrokeOpacity(D,o),this._updateLineStrokeWidth(o,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(n.endDot,e),n.startDot&&this._showDot(n.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=f["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=g["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),n=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:n,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var n=this._prevDotAttributes[e],o=this.outDotStyle;n&&!m["default"].isUndefined(i)&&(o=m["default"].extend({r:n.r,stroke:n.stroke,fill:n.fill,"stroke-opacity":n["stroke-opacity"],"stroke-width":n["stroke-width"],"fill-opacity":n["fill-opacity"]})),t.attr(o),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,n=this.groupDots[i],o=this._findDotItem(n,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(o){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(S)}else a=this.lineWidth;u&&!m["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(S,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),o&&(this._hideDot(o.endDot.dot,i,u),o.startDot&&this._hideDot(o.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!m["default"].isNull(this.selectedLegendIndex),n=this.dotOpacity,o=this._getPivotGroupDots();o&&o[t]&&o[t].forEach(function(t,o){var r=n;r&&i&&e.selectedLegendIndex!==o&&(r=E),t.endDot&&e._hideDot(t.endDot.dot,o,r),t.startDot&&e._hideDot(t.startDot.dot,o,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=m["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,n=this.dimension,o=this.position,r=this._getClipRectId(),s=this.clipRect;!v&&n&&(s?s.attr({width:0,height:n.height}):(s=a(i,o,n,r),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+r+")")}),s.animate({width:n.width},T,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,x);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var n={cx:e.left,cy:e.top};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._animateByPath=function(t,e,i){var n={path:e.join(" ")};m["default"].isExisty(i)&&(n.transform="t-"+i+",0"),t.animate(n,A)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=h["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(337),s=n(a),u={isBarChart:function(t){return t===r["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===r["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===r["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===r["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===r["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isNormalStack(e);return i&&n},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),n=u.isPercentStack(e);return i&&n},isComboChart:function(t){return t===r["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===r["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===r["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===r["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===r["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===r["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===r["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(r["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===r["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===r["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===r["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===r["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===r["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===r["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===r["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===r["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===r["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===r["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&_["default"].print(v,"warn"):d["default"].isUndefined(t)||_["default"].print(v,"error"),e},e}(c["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(333),l=n(u),c=i(330),h=n(c),p=180,f=360,d=.01,g=Math.PI/p,y=700,m=1,_=.3,v=.2,T="overlay",b=20,x=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();this.paper=t;var o=r(e.options.radiusRange,1);return this.holeRatio=o[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,n),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,n},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,n,o){var r=n*g,a=o*g,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=o-n>p?1:0,f=["M",t,e,"L",s,u,"A",i,i,0,h,1,l,c,"Z"];return{path:f}},t.prototype._makeDonutSectorPath=function(t,e,i,n,o,r){var a=n*g,s=o*g,u=r||i*this.holeRatio,l=t+i*Math.sin(a),c=e-i*Math.cos(a),h=t+u*Math.sin(a),f=e-u*Math.cos(a),d=t+i*Math.sin(s),y=e-i*Math.cos(s),m=t+u*Math.sin(s),_=e-u*Math.cos(s),v=o-n>p?1:0,T=["M",l,c,"A",i,i,0,v,1,d,y,"L",m,_,"A",u,u,0,v,0,h,f,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",T),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,n=t.attrs;return n[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(n)},t.prototype._renderPie=function(t,e,i,n){var o=this,r=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,c=e[u],h=o._renderSector({paper:o.paper,circleBound:r,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});h.node.setAttribute("class","auto-shape-rendering"),h.data("index",u),h.data("legendIndex",u+i),h.data("chartType",o.chartType),s.push({sector:h,color:c,angles:t.angles.end,ratio:l}),n.push(h)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,n=this.sectorInfos[t],o=n.angles.startAngle,r=n.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,o,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,n.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,n=[i.cx,i.cy,i.r],o=0;this.sectorInfos.forEach(function(t){var i=t.angles,r={fill:t.color},a=y*t.ratio;0===i.startAngle&&i.endAngle===f&&(i.endAngle=f-d),r[e]=n.concat([i.startAngle,i.endAngle]);var s=h["default"].animation(r,a,">");t.sector.animate(s.delay(o)),o+=a}),t&&setTimeout(t,o)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=h["default"].color(e.color),n=s["default"].makeChangedLuminanceColor(i.hex,v),o=this.selectionColor||n;e.sector.attr({fill:o})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,n){var o=e||t===n?m:_;i.sector.attr({"fill-opacity":o})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,n={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,o){var r=void 0;t.colors&&(n.fill=t.colors[o]),i&&(r=s["default"].renderText(t.paper,i,t.labels[o],n),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(r),t.labelSet.push(r)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(341),u=n(s),l=i(332),c=n(l),h=i(333),p=n(h),f=1,d=.3,g=6,y=function(t){function e(){o(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=g,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,n=e.groupPositions,o=e.theme,r=o.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,c=this._getLinesPath(n),h=this.makeBorderStyle(o.strokeColor,a,o.strokeWidth),p=this.makeOutDotStyle(a,h),f=t.set(),d=this.lineWidth=l?l:this.lineWidth,g=n.map(function(t){return t.pop(),t});return this.paper=t,this.theme=o,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,c,r,f)),this.groupLines=this._renderLines(t,c,r,d,f),this.groupDots=this._renderDots(t,g,r,a,f),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=o.selectionColor),this.colors=r,this.borderStyle=h,this.outDotStyle=p,this.groupPositions=n,this.groupPaths=c,this.dotOpacity=a,this.isShowArea=u,f},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,n,o){return e.map(function(e,r){var a=i[r]||"transparent",s=c["default"].renderLine(t,e.join(" "),a,n);return o.push(s),s})},e.prototype._renderArea=function(t,e,i,n){var o=this;return e.map(function(e,r){var a=i[r]||"transparent",s=c["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":o.lineWidth,stroke:a});return n.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupPositions;this.groupPositions=n,this.groupPaths=this._getLinesPath(n),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,o){e._moveDot(t.endDot.dot,n[i][o])})})},e.prototype.selectLegend=function(t){var e=p["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,n){var o=e||t===n?f:d;i.attr({"stroke-opacity":o})})},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(332),a=n(r),s=i(333),u=n(s),l=i(330),c=n(l),h=700,p=.8,f=1,d=.8,g=.3,y=.2,m=2,_=20,v=function(){function t(){o(this,t)}return t.prototype.render=function(t,e,i){var n=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(n),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),n},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":f,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(n,o){return n.map(function(n,r){var s=null;if(n){var u=i[r],l=a["default"].renderCircle(e.paper,n,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",o),l.data("index",r),s={circle:l,color:u,bound:n}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:p},h,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,o){var r=n[i][o];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(n),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+m,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=g;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=d),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,n=void 0;u["default"].isUndefined(n);){var o=i.getElementByPoint(t.left,t.top);o?o.attrs.opacity>g?n=o:(e.push(o),o.hide()):n=null}return n||(n=e[0]),e.forEach(function(t){t.show()}),n},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),n=e.data("index"),o=[{},i,n,{left:t.left-_,top:t.top-_}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,o),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i],o=c["default"].color(n.color),r=this.theme.selectionColor,s=r||a["default"].makeChangedLuminanceColor(o.hex,y);n.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,n=this.groupCircleInfos[e][i];n.circle.attr({fill:n.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,n,o){if(i){var r=e||t===o?d:g;i.circle.attr({opacity:r})}})},t}();e["default"]=v},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(332),a=n(r),s=i(333),u=n(s),l=i(342),c=n(l),h=100,p=0,f=4,d=function(){function t(){o(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,n){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":n})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?f:p},t.prototype._renderBoxes=function(t,e,i,n){var o=this,r=c["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!o.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);o._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=o.colorSpectrum?0:o._getStrokeWidth(s===e),l=o.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var c=o._getBound(t);if(c){var h=o._getColor(t,e);a={rect:o._renderRect(c,h,u,l),seriesItem:t,color:h},n&&n.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,n=this.seriesDataModel.findSeriesItemsByParent(t.id);n.forEach(function(n,o){var r=n.depth;r===e?n.fillOpacity=1:r===e+1?n.fillOpacity=.05*o:r")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,n=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(n=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:n,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,n){if(t){var o=e._getBound(t.seriesItem,i,n);o&&a["default"].updateRectBound(t.rect,o)}})},t.prototype.renderSeriesLabel=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,n){i.forEach(function(i,s){var u=a["default"].renderText(t,e[n][s].end,i,r);u.node.style.userSelect="none",u.node.style.cursor="default",o.push(u)})}),this.labelSet=o,o},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,n){var o=t.set(),r={"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,fill:n.color,opacity:0};return i.forEach(function(i,n){if(e[n]){var s=a["default"].renderText(t,e[n],i,r);s.node.style.userSelect="none",s.node.style.cursor="default",o.push(s)}}),this.labelSet=o,o},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.id=i,e.forEach(function(t){p["default"].append(n,t.node)}),t.canvas.appendChild(n),n}e.__esModule=!0;var s=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=o(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(332),c=n(l),h=i(336),p=n(h),f=i(334),d=n(f),g=i(333),y=n(g),m=y["default"].browser,_=m.msie&&m.version<=8,v="gray",T=100,b="tui-chart-series-group",x="#eee",E=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),_||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,n=this.paper,o=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,h=u?r.getColor(u):x,p=c["default"].renderArea(n,l,{fill:h,opacity:1,stroke:v,"stroke-width":.2,"stroke-opacity":1,transform:d["default"].oneLineTrim(s,e,e,o.left/e,o.top/e)});return p.data("index",a),i.push(p),{sector:p,color:h,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),n=!y["default"].isUndefined(i)&&this.sectors[i];return n&&!y["default"].isUndefined(n.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,T,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:v,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,n,o){var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},c=o.width-this.dimension.width,h=o.height-this.dimension.height,p=l.e/l.a,f=l.f/l.d,d=-c/l.a,g=-h/l.d;u.scale(t,t,e.left*i-p*t,e.top*i-f*t);var y=u.e/u.a+p,m=u.f/u.d+f;y>=0?u.e=-p*u.a:y=0?u.f=-f*u.a:m=0&&o>0?e.e=0:r<0&&r<-n/i.a&&o<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,n=t.maxTop,o=e.f/e.d,r=o+i.f/i.d;r>=0&&o>0?e.f=0:r<0&&r<-n/i.d&&o<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var n={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:d["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},o=t.set();return e.forEach(function(e){var i=e.position,r=c["default"].renderText(t,i,e.name||e.code,n);o.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),_||self.g.appendChild(r.node)}),o},t}();e["default"]=E},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=o(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(335),l=n(u),c=i(332),h=n(c),p=i(337),f=n(p),d=i(334),g=n(d),y=i(351),m=n(y),_=i(333),v=n(_),T=.5,b=8,x=10,E=x/2,A=3,D=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,n=Object.assign({},this.basePosition);t.forEach(function(t,o){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,c=t.checkbox,h=t.colorByPoint?"#aaa":t.theme.color,p=n.left+e._calculateSingleLegendWidth(a,r),f=p>=e.paper.width;e.isHorizontal&&f&&(n.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,n.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(n,{isChecked:c.checked,legendIndex:a,legendSet:e.legendSet}),n.left+=e._checkBoxWidth+i),e._renderIcon(n,{legendColor:h,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),n.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(n,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?n.left+=e.labelWidths[o]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(n.left=e.basePosition.left,n.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,n=this.dimension.height,o=this.paper.height,r=t;if(!this.isHorizontal&&n+2*i>o){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=o-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=v["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),D.click(function(){i._currentPageCounti&&(n=i),n+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return h["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,n=this.labelTheme,o={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:n.color,"font-size":n.fontSize,"font-family":n.fontFamily,"font-weight":n.fontWeight,opacity:e.isUnselected?T:1,"text-anchor":"start"},a=h["default"].renderText(this.paper,o,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,n=t.left,o=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=g["default"].oneLineTrim(s,.25*this._checkBoxWidth+n,.5*this._checkBoxHeight+o,a,a,r,r),l=this.paper.set(),c=this.paper.rect(n,o,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(c.node.setAttribute("class","auto-shape-rendering"),l.push(c),e.isChecked){var h=this.paper.path(u).attr({stroke:"#555","stroke-width":2});h.node.setAttribute("class","auto-shape-rendering"),l.push(h)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,n=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?n=h["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?T:1}):(n=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),n.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?T:1}),n.translate(t.left,t.top)),n.data("icon",e.iconType),n.data("index",e.legendIndex),n.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(n)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),n="line"===e.data("icon")?"stroke-opacity":"opacity";v["default"].isNull(i)||v["default"].isUndefined(i)?e.attr(n,1):v["default"].isUndefined(i)||(v["default"].isNumber(t)&&i!==t?e.attr(n,T):e.attr(n,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:f["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(333),r=n(o),a=i(337),s=n(a),u=100,l={calculateLimit:function(t,e){var i={},n=0;t<0&&(n=t,e-=t,t=0);var o=(e-t)/20;return i.max=e+o+n,e/6>t?i.min=n:i.min=t-o+n,i},makeTickPixelPositions:function(t,e,i,n){var o=[];return i=i||0,e>0&&(o=r["default"].range(0,e).map(function(n){var o=0===n?0:n/(e-1);return o*t+i}),o[o.length-1]-=1),n&&o.push(n),o},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),n=Math.round(t.min*i),o=Math.round(t.max*i),a=r["default"].range(n,o+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=r["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=r["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,n){return e?(t-i)/e*n:0}},c=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},h=function(){for(var t=arguments.length,e=Array(t),i=0;ic.dimension[e]+d},y=void 0;n.forEach(function(n){var s="M";n+=o,g(n)||(r?a?(s+=f+","+(p+n),s+="H"+(f+5),s+="M"+h+","+(p+n),s+="H"+(h-5)):u?(s+=f+","+(p+n),s+="H"+(f+5)):(s+=h+","+(p+n),s+="H"+(h-5)):(s+=f+n+","+p,s+="V"+(p+5)),isNaN(n)||(y=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(y),e.ticks.push(y)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,n=i.position,o=i.dimension,r=t.paper,a=t.isVertical,s=n.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),c=1-l/(u+l),h="M",p=n.top,f=s+o.width;if(a){var d=p;f+=t.seriesDimension.width*c,h+=f+","+d;var g=p+e;h+="V"+g}else{h+=s,p-=t.seriesDimension.height*c,h+=","+p+"H";var y=s+e;h+=y}t.set.push(r.path(h).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,n=t.layout,o=n.position,r=o.top,a=o.left,s=n.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,c=t.additionalSize,h=t.isPositionRight,p=t.isCenter,f=t.isVertical,d=t.tickColor,g=t.seriesDimension,y=e,m=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;h?(v+=a+","+r,v+="V"+m):f?(T=r,u&&(_+=g.width/2),v+=_+","+T,p?(v+="V"+m,v+="M"+a+","+T,v+="V"+m):(b=r+y,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:c,isNegativeStandard:u,seriesDimension:g,lineSize:y}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:d,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,n=e.text,o=e.theme,u=e.additionalWidth,l=e.otherSideDimension,c=e.areaSize,h=e.tickCount,f=e.layout,d=r(n,o),g=a(n,o),y=f.dimension.height,m=f.dimension.width,_=f.position.top,v=f.position.left+u,T=g/2-l.width,b={top:_+y-d/2,left:v+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=d/2,b.left=v+m/2):i.isDiverging||(b.top=_-d/2-p):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+c/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+m/2:i.isColumnType&&(b.left=v+m/(h-1)/2)),i.isPositionRight&&(b.left+=m),i.isCenter||s(b,e.offset),b},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(332),s=n(a),u=i(337),l=n(u),c=8,h=3,p=function(){function t(){o(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),n=r(i[0],1),o=n[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],n=arguments[3];if(e.table&&(e=k["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=R["default"].deepCopy(e),"combo"!==n){var o=e.series;e.series={},e.series[n]=o}i=i?R["default"].deepCopy(i):{},i.chartType=n,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var r=C["default"].get(i.theme,n,e.series),a=D["default"].get(i.chartType,e,r,i);return a.render(t),a.animateChart(),a}function r(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function c(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_SCATTER)}function h(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function p(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function f(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_COMBO)}function d(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_PIE)}function g(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_MAP)}function y(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_RADIAL)}function m(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return o(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){C["default"].register(t,e)}function T(t,e){P["default"].register(t,e)}function b(t,e,i){M["default"].register(t,e),N["default"].addRendererType(t,i)}var x=i(335),E=n(x),A=i(358),D=n(A),S=i(360),M=n(S),L=i(361),C=n(L),w=i(363),P=n(w),O=i(364),R=n(O),I=i(365),k=n(I),B=i(366),N=n(B);i(367),i(368),i(473),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:c,heatmapChart:h,treemapChart:p,comboChart:f,pieChart:d,mapChart:g,radialChart:y,boxplotChart:m,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(359),s=n(a),u=i(342),l=n(u),c={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var n=s["default"].getChartTypeMap(e);n[r["default"].CHART_TYPE_COLUMN]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:n[r["default"].CHART_TYPE_LINE]&&n[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:n[r["default"].CHART_TYPE_AREA]&&n[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:n[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,n){var o=this._findKey(t,e),r=c[o];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,n)},register:function(t,e){c[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(337),c=n(l),h=i(333),p=n(h);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),n=c["default"].unique(i);e&&(n=n.slice(0,2));var o=n.filter(function(t){return!!t});return o.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(n){var r=o(n,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var n=o(t,2),r=n[0],a=n[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var n=[];e.bullet.forEach(function(e,i){e&&n.push(t.categories[i])}),i.categories=n}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var n=i[e];if(!n)throw new Error("Not exist "+e+" chart renderer.");var o=new n;return o},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(362),c=n(l),h=i(333),p=n(h),f={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),f[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(n){var r=o(n,2),a=r[0],s=r[1],u=t[a];(u||0===u)&&(p["default"].isArray(u)?e[a]=u.slice():p["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){p["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,n){var o=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||o._pickValidTheme(e,n);p["default"].keys(a).length?(r[t]=JSON.parse(JSON.stringify(c["default"][n])),o._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var n=[],o=t.length,r=i||0,a=0;a=o&&(r=0);return n},_setSeriesColors:function(t,e,i,n){var o=this,r=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(r=i[t].colors,s=!0):(r=i.colors||c["default"].series.colors,s=!1),a=o._getSeriesThemeColorCount(n[t]),e[t].colors=o._makeEachSeriesColors(r,a,!s&&u),s||(u=(a+u)%r.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,n){var o=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(o=JSON.parse(JSON.stringify(c["default"])),this._overwriteTheme(e,o)):o=JSON.parse(JSON.stringify(e)),o.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,o.yAxis,"yAxis"),o.series=this._createComponentThemeWithSeriesName(i,e.series,o.series,"series"),this._setSeriesColors(i,o.series,e.series,n),o},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return p["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),p["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;p["default"].forEach(t.series,function(i,n){e._copySeriesColorTheme(i,t.legend,n),e._copySeriesColorTheme(i,t.tooltip,n)})},get:function(t,e,i){var n=f[t];if(!n)throw new Error("Not exist "+t+" theme."); +var o=this._pickSeriesNames(e,i),r=this._initTheme(t,n,o,i);return this._inheritThemeFont(r,o),this._copySeriesColorThemeToOther(r),r}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",n="#ffffff",o="lighter",r="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:n,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:o},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:o},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:o}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(333),a=n(r),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=o(t,2),n=i[0],r=i[1];e[n]=u(r)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],n=c["default"].toArray(t.getElementsByTagName("TR"));c["default"].forEach(n,function(t,e){var n=0===e?"TH":"TD",o=c["default"].toArray(t.getElementsByTagName(n)),r=c["default"].pluck(o,"innerText");i.push(r)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){S["default"].sendHostname("chart")},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){S["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=S["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;S["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=_["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||c["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return T["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=d["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,n=this.dataProcessor,o=n.getLegendVisibility(),r=p["default"].filterCheckedRawData(n.rawData,o),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),y["default"].renderFontFamily(e,this.theme.chart.fontFamily),d["default"].append(t,e);var u=this.readyForRender();y["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:o},e),this.chartContainer=e,this.paper=s},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=p["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var n=this.readyForRender();this.componentManager.render("rerender",n,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,n){var o=i[n],r=t[n];return e[n]=o.map(function(t,e){return t.visible=r[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._initializeRawData(t),i=this.dataProcessor,n=this.options,o=n.chartType,r=n.theme;i.initData(e,!0);var a=x["default"].get(r,o,e.series);this.theme=a,this.componentManager.presetForChangeData(a),this.protectedRerender(i.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){var e=_["default"].deepCopy(t),i=this.options,n=i.chartType,o=i.series;if("combo"!==n&&S["default"].isArray(e.series)){var r=e.series;e.series={},e.series[n]=r}return p["default"].updateRawSeriesDataByOptions(e,o),"boxplot"===n&&p["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var n=this._updateChartDimension(t);if(n){var o=this.readyForRender(),r=o.dimensionMap.chart;y["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.componentManager.render("resize",o,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var n={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(n)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),n=i?i.length:0,o=-1,r=0;r=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=M},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(336),l=n(u),c=i(372),h=n(c),p=i(373),f=n(p),d=i(374),g=n(d),y=i(375),m=n(y),_=i(377),v=n(_),T=i(366),b=n(T),x=i(383),E=n(x),A=i(385),D=n(A),S=i(386),M=n(S),L=i(387),C=n(L),w=i(393),P=n(w),O=i(395),R=n(O),I=i(396),k=n(I),B=i(400),N=n(B),F=i(407),G=n(F),H=i(411),V=n(H),j=i(412),z=n(j),W=i(414),Y=n(W),U=i(415),X=n(U),Z=i(416),K=n(Z),q=i(418),J=n(q),Q=i(419),$=n(Q),tt=i(420),et=n(tt),it=i(421),nt=n(it),ot=i(422),rt=n(ot),at=i(424),st=n(at),ut=i(425),lt=n(ut),ct=i(426),ht=n(ct),pt=i(333),ft=n(pt),dt={axis:h["default"],plot:f["default"],radialPlot:m["default"],legend:E["default"],spectrumLegend:D["default"],circleLegend:M["default"],tooltip:C["default"],groupTooltip:P["default"],mapChartTooltip:R["default"],mapChartEventDetector:k["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:z["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:nt["default"],treemapSeries:rt["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:ht["default"],chartExportMenu:v["default"],title:g["default"]},gt=function(){function t(e){o(this,t);var i=e.options.chart,n=ft["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,r=ft["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:n,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,n){return t=t||this.options[e],t=ft["default"].isArray(t)?t[n]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.index||0,o=dt[e],r=o.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(r,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,n),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=o(i);s&&(s.componentName=t,s.componentType=r,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,n=t.componentName,o=e._getOptionKey(i,n);t.presetForChangeData(e._makeTheme(o,n))}})},t.prototype._makeOptions=function(t,e,i){var n=this.options[t];return n||"rightYAxis"!==t||(n=this.options.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(n=n[t]||n,ft["default"].isArray(n)&&(n=n[i]||{}),!1)}),n},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,n,o){var r=Object.assign({paper:i},o);return n&&(Object.assign(r,n),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,n){var o=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=o.drawingToolPicker.getPaper(n,r.drawingType),c=o._makeDataForRendering(s,u,l,e,i),h=r[t](c);h&&!h.paper&&(a=h)}return a});n&&l["default"].append(n,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var n=r(t,2),o=n[0],a=n[1];return e[o]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n3&&void 0!==arguments[3]?arguments[3]:0,o=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},c=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,n),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,n),o||this._renderTickArea(t,e,n),a&&s&&!c&&this._renderNegativeStandardsLine(t,n,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,n=i.tickCount,o=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(n/2,10)+1,u=o.slice(0,s),l=o.slice(s-1,n),c=r/s,h=r+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=c,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,h)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,n=this.data,o=n.positionRatio,r=n.tickCount,a=n.labels,s=this.isYAxis,u=s?i:e,l=0;o&&(l=u*o),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,n=i.divided,o=i.isCenter,r=t.width;this.isLabelAxis=e,n?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=o?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,n=t.limitMap,o=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=n,this.data=o[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,n=void 0===i?{}:i,o=this.dataProcessor.getOption("yAxis"),r=this.dataProcessor.getOption("series")||{};n.text&&this.graphRenderer.renderTitle(this.paper,{text:n.text,offset:n.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:r.diverging,isYAxisCenter:o&&"center"===o.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,n){var o=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,c=r.isPositionRight,p=a?t:0,f=this.isYAxis,d=this.data.options,g=d.isCenter,y=d.divided,m=h["default"].makeTickPixelPositions(t*u,e,0,p),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=p?l+1:l;m.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:m,isVertical:f,isCenter:g,isDivided:y,additionalSize:n,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:c,tickColor:o,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,n){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:n})},t.prototype._renderTickArea=function(t,e,i){var n=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,n,i||0),this._renderTicks(t,e,n,i||0)},t.prototype._renderLabelArea=function(t,e,i,n){var o=this.data,r=o.sizeRatio,a=void 0===r?1:r,s=o.remainLastBlockInterval,u=s?t:0,l=h["default"].makeTickPixelPositions(t*a,e,0,u),c=l[1]-l[0];this._renderLabels(l,i,c,n||0)},t.prototype._renderRotationLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,c=i/_,h=this.layout.position,p=h.top,f=h.left,d=p+v,g=f,y=this.options.labelMargin||0;t.forEach(function(t,h){var p=t+(n||0),f={};a?(f.top=p+l,f.left=i+y):(f.top=d+y,f.left=g+p+c),r.renderRotatedLabel({degree:u,labelText:e[h],paper:o.paper,positionTopAndLeft:f,set:o.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,n){var o=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,c=this.layout,h=this.data.isPositionRight,p=this.theme.label,f=this.options,d=f.labelMargin,y=void 0===d?0:d,m=f.pointOnColumn,_=f.isCenter,v=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),T=v&&m,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var f=u+n,d=i/2,m=o._isOverLapXAxisLabel(e[l],u,t[l+1]),x={};f<0||!a&&b&&m||(x=a?o._getYAxisLabelPosition(c,{labelPosition:f,isCategoryLabel:s,halfLabelDistance:d,isPositionRight:h}):o._getXAxisLabelPosition(c,{labelMargin:y,labelHeight:g["default"].getRenderedLabelsMaxHeight(e,p),labelPosition:f,isCategoryLabel:s,isLineTypeChart:v,isPointOnColumn:T,halfLabelDistance:d}),x.top=Math.round(x.top),x.left=Math.round(x.left),r.renderLabel({isPositionRight:h,isVertical:a,isCenter:_,labelSize:i,labelText:e[l],paper:o.paper,positionTopAndLeft:x,set:o.axisSet,theme:p}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var n=g["default"].getRenderedLabelWidth(t);return!m["default"].isUndefined(i)&&i-e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;h["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return g["default"].extend({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return g["default"].extend({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,n=i.position.top,o=i.dimension.height,r="M"+t+","+n+"V"+(n+o),a=this.paper.path(r);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var n=this.layout,o=n.position,r=n.dimension,a=r.width-t+o.left,s=e<0?a:e,u=this.paper.rect(t,o.top,s,r.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return h["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var n=t.dataMin,o=t.distance,r=(i-n)/o,a=r*e;return 1===r&&(a-=1),a<0&&(a=null),a},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e){var i=this.dataProcessor,n=i.findCategoryIndex(e),o=null,r=void 0;return g["default"].isNull(n)||(r=0===n?0:n/(i.getCategoryCount()-1),o=r*t),1===r&&(o-=1),o},t.prototype._createOptionalLinePositionMap=function(t,e,i){var n=this.dataProcessor.getCategories(),o=this._createOptionalLineValueRange(t),r=void 0,a=void 0;return e.isLabelAxis?(r=this._createOptionalLinePositionWhenLabelAxis(i,o[0]),a=this._createOptionalLinePositionWhenLabelAxis(i,o[1])):(r=this._createOptionalLinePosition(e,i,o[0]),a=o[1]&&this._createOptionalLinePosition(e,i,o[1])),g["default"].isNull(r)&&(r=this._isBeforeVisibleCategories(o[0],n[0])?0:-1),g["default"].isNull(a)&&(a=this._isAfterVisibleCatgories(o[1],n[n.length-1])?i:-1),{start:r,end:a}},t.prototype._isBeforeVisibleCategories=function(t,e){var i=this.dataProcessor;if(!g["default"].isExisty(t))return!1;if(h["default"].isDatetimeType(this.xAxisTypeOption))return t=0&&ne;var n=i.findAbsoluteCategoryIndex(t),o=i.findAbsoluteCategoryIndex(e);return n>=0&&n>o},t.prototype._renderOptionalLine=function(t,e,i,n){var o=this._createOptionalLinePositionMap(n,t,e),r=void 0;return o.start>=0&&o.start<=e&&(i.width=1,i.color=n.color||"transparent",i.opacity=n.opacity,r=this._renderLine(o.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,n){var o=this,a=n.range;a&&a.length&&this._makeRangeTo2DArray(n);var s=n.range.map(function(i){return o._createOptionalLinePositionMap({range:i},t,e)});return n.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=n.color||"transparent",i.opacity=n.opacity;var s=t.end-t.start;a=o._renderBand(t.start+o.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._renderOptionalLine.bind(this,o,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,n=e.height,o=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:n+"px"}),a=this._makeOptionalBand.bind(this,o,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,n=this._makeHorizontalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.top,u=a.left;n.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+o.dimension.height),n=e.paper.path(i);n.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(n)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,n=this._makeVerticalPositions(i),o=this.layout,r=this.theme.lineColor,a=o.position,s=a.left,u=a.top,l=n[1]-n[0];n.forEach(function(t,i){var n="M"+s+","+(l*i+u)+"H"+(s+o.dimension.width),a=e.paper.path(n);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,n=f["default"].makeTickPixelPositions(t,i.validTickCount);return n.shift(),n},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var n=Math.round(t/2),o=t-n,r=f["default"].makeTickPixelPositions(n,e),a=f["default"].makeTickPixelPositions(o,e,n+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=f["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,n=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,o){e._animateItemForAddingData(i,t,function(t){n[o].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var n=this;t.forEach(function(t,o){var r=t.getBBox();r.x-e.tickSize0&&p<180?"end":p>180&&p<360?"start":"middle",u.push({left:f.x,top:i-f.y,anchor:d})}return u}function s(t){return new x(t)}e.__esModule=!0,e["default"]=s;var u=i(376),l=n(u),c=i(351),h=n(c),p=i(335),f=n(p),d=i(360),g=n(d),y=i(333),m=n(y),_=f["default"].COMPONENT_TYPE_RAPHAEL,v=f["default"].RADIAL_PLOT_PADDING,T=f["default"].RADIAL_MARGIN_FOR_CATEGORY,b=f["default"].RADIAL_CATEGORY_PADDING,x=function(){function t(e){o(this,t),this.className="tui-chart-plot-area",this.options=m["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=g["default"].get(_,"radialPlot"),this.drawingType=_}return t.prototype._renderPlotArea=function(t,e,i,n){var o={paper:t,layout:e,plotPositions:i,labelData:n,theme:this.theme,options:this.options};return this.graphRenderer.render(o)},t.prototype._makePositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,a=n.top,s=i.width,u=i.height;s=s-v-T,u=u-v-T;var l=h["default"].sum([s/2,v/2,T/2,o]),c=u/2-v/2-T/2-a,p=t.yAxis.tickCount,f=t.xAxis.labels.length;return r({width:s,height:u,centerX:l,centerY:c,angleStepCount:f,stepCount:p})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,n=e.position,o=n.left,r=n.top,s=i.width,u=i.height;s=s-v-b,u=u-v-b;var l=h["default"].sum([s/2,v/2,b/2,o]),c=u/2-v/2-b/2-r,p=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:c,angleStepCount:p})},t.prototype._makeLabelData=function(t,e,i){for(var n=t.xAxis.labels,o=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[n][0]:"",a=t[n].length>1?t[n][1]:"";o=r+"~"+a}i.push(o)}return i}function l(t,e){for(var i=[],n=0;n",A["default"].forEach(t,function(t,o){var r=0!==i||0===o?' class="number"':"",a="<"+n+r+">"+t+"";e+=a}),e+=""}),e+=""}function d(t){var e=x["default"].oneLineTrim(y,f(t));return e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,n=void 0===i?"\n":i,o=e.itemDelimiter,r=void 0===o?",":o,a=t.length-1,s="";return A["default"].forEachArray(t,function(t,e){var i=t.length-1;A["default"].forEachArray(t,function(t,e){var n=A["default"].isNumber(t)?t:'"'+t+'"';s+=n,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),m=i(380),_=n(m),v=i(335),T=n(v),b=i(334),x=n(b),E=i(333),A=n(E),D={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},S={xls:d,csv:g},M=[].concat(r(T["default"].DATA_EXTENSIONS)),L={downloadData:function(t,e,i,n){var o=a(i),r=D[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=S[e](o,n);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=D[e]+s),_["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=A["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return M}};Object.assign(L,{_makeCsvBodyWithRawData:g,_makeXlsBodyWithRawData:d,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:c,_get2DArrayFromHeatmapRawData:p,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){var t=h["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,n=atob(t.substr(t.indexOf(",")+1)),o=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new l["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea(t.paper)},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var n=this,o=this.options.maxWidth,r=(f["default"].isBarTypeChart(this.chartType)||f["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint;return t.map(function(t,a){var s=n.options.showCheckbox===!1?null:{checked:n.legendModel.isCheckedIndex(a)},u=t.label;return o&&(u=g["default"].getEllipsisText(u,o,n.theme.label)),{checkbox:s,iconType:t.chartType||"rect",colorByPoint:r,index:a,theme:t.theme,label:u,labelHeight:e,labelWidth:i[a],isUnselected:n.legendModel.isUnselectedIndex(a)}})},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,n=f["default"].isHorizontalLegend(this.options.align),o=this.layout.position,r=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=r.length,l=Math.max(_,s),c=(v+l)*(n?1:u),h=o.top,p=o.left;return f["default"].isLegendAlignLeft(this.options.align)||(p+=T),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,r),isHorizontal:n,position:{left:p,top:h},dimension:{height:c,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:r,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes()); +},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(b+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=m["default"].isNull(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,n=t.chartType;this.eventBus.fire(b+"selectLegend",{legend:e,chartType:n,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),m["default"].isNull(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();m["default"].CustomEvents.mixin(x),r.componentType="legend",r.Legend=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;n=r?n.substr(0,4):String(o);var a=n+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,n=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return g["default"].isArray(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?h["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||f["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=o),t.chartType=e,t.chartTypes=i,t.xAxisType=n.type,t.dateFormat=n.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(388),s=n(a),u=i(393),l=n(u),c=i(395),h=n(c),p=i(342),f=n(p),d=i(333),g=n(d);r.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(390),h=n(c),p=i(335),f=n(p),d=i(342),g=n(d),y=i(391),m=n(y),_=i(333),v=n(_),T="#aaa",b=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(v["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=m["default"].tplDefault;return g["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):g["default"].isPieChart(this.chartType)||g["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=m["default"].tplPieChart:this.dataProcessor.coordinateType?e=m["default"].tplCoordinatetypeChart:g["default"].isBulletChart(this.chartType)?e=m["default"].tplBulletChartDefault:g["default"].isHeatmapChart(this.chartType)&&(e=m["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=m["default"].tplBoxplotChartDefault;return v["default"].isNumber(t.outlierIndex)&&(e=m["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,n=this._findTooltipData(t,e),o=this._findTooltipColor(t,e,n);return g["default"].isBoxplotChart(this.chartType)&&v["default"].isNumber(e.outlierIndex)&&(n.outlierIndex=e.outlierIndex),this.colorSpectrum&&(o=this.colorSpectrum.getColor(n.colorRatio||n.ratio)),n.chartType=this.chartType,n.cssText="background-color: "+o,n=Object.assign({suffix:this.suffix},n),n.valueTypes=this._makeHtmlForValueTypes(n,["x","y","r"]),this.templateFunc(n.category,n,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],n=e.groupIndex;return g["default"].isRadialChart(t)&&i.length===n&&(n=0),Object.assign({},v["default"].pick(i,n,e.index))},e.prototype._findTooltipColor=function(t,e,i){var n=g["default"].isBarTypeChart(this.chartType),o=g["default"].isBoxplotChart(this.chartType),r=(n||o)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return g["default"].isBulletChart(this.chartType)?s=a:g["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?T:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=f["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=f["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,n=this.dataProcessor.getLegendItem(i);if(!n)return null;var o=n.chartType,r=n.label,a=v["default"].extend({chartType:o,legend:r,legendIndex:i,index:t.groupIndex},e);return g["default"].isBoxplotChart(o)&&v["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],n=i.tooltipLabel,o=this.labelFormatter,r={legend:t,label:n||(i.label?i.label:""),category:e};return o&&(r=o(i,r,"")),r.category=e,v["default"].extend(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=g["default"].isTreemapChart(this.chartType),n={},o={};return v["default"].isArray(e)?n[this.chartType]=e:n=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=g["default"].isBulletChart(r),s=e.map(function(e,o){var s=t.dataProcessor.makeTooltipCategory(i,o,t.isVertical),u=a?i:o;return e?t._makeTooltipDatum(n[r][u],s,e):null});o[r]||(o[r]=[]),o[r].push(s)},i),o},e}(l["default"]);h["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(333),a=n(r),s=i(330),u=n(s),l=i(364),c=n(l),h=i(335),p=n(h),f=i(336),d=n(f),g=i(342),y=n(g),m=i(334),_=n(m),v=function(){function t(e){o(this,t);var i=y["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=c["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?p["default"].TOOLTIP_PIE_ANIMATION_TIME:p["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=p["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=c["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?o-=r+a:e.indexOf("center")>-1&&r?o-=r/2:o+=a,o},_makeTopPositionOfNotBarChart:function(t,e,i,n){var o=t,r=i||0;return e.indexOf("bottom")>-1?o+=r+n:e.indexOf("middle")>-1&&r?o+=r/2:o-=r+s["default"].TOOLTIP_GAP,o},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,n=t.dimension,o=t.alignOption,r=void 0===o?"":o,a=n.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=n.height,c=e.left-this.layout.position.left+i.left,h=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(c,r,a,u),top:this._makeTopPositionOfNotBarChart(h,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},r["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("left")>-1?n-=i:e.indexOf("center")>-1?n-=i/2:n+=s["default"].TOOLTIP_GAP,n},_makeTopPositionForBarChart:function(t,e,i){var n=t;return e.indexOf("top")>-1?n-=i:e.indexOf("middle")>-1&&(n-=i/2),n},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=o.height-(i.height||0),u=o.width,l=i.left+i.width+n.left-e.left,c=i.top+n.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(c,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,n=t.positionOption,o=t.dimension,r=f["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-o.width)/2+n.left-e.left,top:i.top+i.height/2-r+n.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,n=this.layout.position;return e.left=Math.max(e.left,-n.left),e.left=Math.min(e.left,i.width-n.left-t.width),e.top=Math.max(e.top,-n.top),e.top=Math.min(e.top,i.height-n.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,n=void 0,o=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",n="left",o=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",n="top",o=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:n,addPadding:o})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,n=e.sizeType,o=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var c=e.dimension[n],h=i[n],p=t[o]+(h+c)*u;t[o]=p}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var n=this.tooltipContainer.parentNode.getBoundingClientRect(),o=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},c=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-n.left+s["default"].CHART_PADDING,top:e.mousePosition.top-n.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,o)||c!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,c),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,o),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,o),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(o,e.silent),h["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var p=this._makeTooltipPosition(r["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,p,i),this.eventBus.fire("hoverSeries",o,e.chartType),this._fireAfterShowTooltipPublicEvent(o,{element:t,position:p},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var n=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",n)}},_executeHidingTooltip:function(t){h["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var n=this,o=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",o,r),this._fireBeforeHideTooltipPublicEvent(o,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",o,r),this._isChangedIndexes(this.prevIndexes,o)&&delete this.prevIndexes,setTimeout(function(){n._isShowedTooltip(t)||(n._fireBeforeHideTooltipPublicEvent(o,a),n._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){r["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(392),r=n(o),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
', +HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var n=t;return Object.entries(e).forEach(function(t){var e=i(t,2),o=e[0],r=e[1],a=new RegExp("{{\\s*"+o+"\\s*}}","g");n=n.replace(a,String(r).replace("$","$"))}),n}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new w(t)}e.__esModule=!0,e["default"]=s;var u=i(389),l=n(u),c=i(394),h=n(c),p=i(335),f=n(p),d=i(336),g=n(d),y=i(334),m=n(y),_=i(362),v=n(_),T=i(391),b=n(T),x=i(333),E=n(x),A=i(342),D=n(A),S=f["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,M=f["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,L=f["default"].SERIES_EXPAND_SIZE,C=f["default"].PUBLIC_EVENT_PREFIX,w=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevIndex=null,n.isBullet=D["default"].isBulletChart(i.chartType),n}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,n){var o=b["default"].tplGroupItem,r=b["default"].tplGroupCssText,a=D["default"].isBarTypeChart(this.chartType),s=D["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,n),c=void 0,h=e.map(function(t,e){var i=t.type,n="data"!==i&&c!==i,a="";return c=i,t.value?(n&&(a=b["default"].tplGroupType({type:i})),a+=o(E["default"].extend({cssText:r({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:h})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=S:this.options.align=M)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,n=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new h["default"](i,n,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],n=Object.keys(this.originalTheme);return n.forEach(function(n){var o=e.originalTheme[n].colors;o.forEach(function(e,o){var r=t[n]||t;r[o]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,n){var o=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(n,e-n,t.isVertical),values:o}})},e.prototype._makeColors=function(t,e){var i=0,n=this.dataProcessor.getLegendData(),o=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=v["default"].series.colors.slice(0,n.length);return E["default"].pluck(n,"chartType").map(function(e){r!==e&&(o=t[e]?t[e].colors:a,i=0),r=e;var n=o[i];return i+=1,n})},e.prototype._makeItemRenderingData=function(t,e){var i=this,n=this.dataProcessor,o=this.suffix;return t.map(function(t,r){var a={value:t.label,type:t.type,suffix:o,legend:""},s=void 0;return i.isBullet?s=n.getLegendItem(e):(s=n.getLegendItem(r),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var n=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,n,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=g["default"].create("DIV","tui-chart-group-tooltip-sector");g["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var n=void 0;return n=i?1:e.end-e.start,{dimension:{width:n,height:t},position:{left:e.start,top:L}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:L,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,n){return i?this._makeVerticalTooltipSectorBound(t,e,n):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,n,o){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(m["default"].renderDimension(r,s.dimension),m["default"].renderPosition(r,s.position),g["default"].addClass(r,"show")),o&&(n-=1),this.eventBus.fire("showGroupAnimation",n)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();g["default"].hasClass(e,"show")?g["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),g["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var n=this.getTooltipDimension(t),o=this.positionModel.calculatePosition(n,e.range);this._moveToPosition(t,o,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:o},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(C+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,n){n||this.eventBus.fire(C+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var n=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,n),this._hideTooltipSector(e),g["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(C+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=function(){function t(e,i,n,r){o(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=n,this.options=r,this.positions={},this._setData(e,i,n,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var n=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:n,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var n=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:n,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,n){var o=this._makeVerticalData(t,e,n.align),r=this._makeHorizontalData(t,e,n.align),a=n.offset||{};i?(this.mainData=o,this.subData=r):(this.mainData=r,this.subData=o),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var n=e.start===e.end,o=9,r=5,s=n?o:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:n?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,n=void 0;return n=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,n){var o=void 0;return t<-n.areaPosition&&(o=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:n.basePosition}),t=this._makePositionValueDiff(o,i,n)>0?-n.areaPosition:o),t},t.prototype._adjustForwardPositionValue=function(t,e,i,n){var o=this._makePositionValueDiff(t,i,n);if(o>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:n.basePosition});r<-n.areaPosition?t-=o:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,n){return n.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,n):n.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,n):(t=Math.max(t,-n.areaPosition),t=Math.min(t,n.chartSize-n.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var n=this._calculateMainPositionValue(t[i.sizeType],e,i);return n=this._addPositionOptionValue(n,i.positionType),n=this._adjustMainPositionValue(n,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),n=this.mainData,o=this.subData,r=this.positions[i];return r||(r={},r[n.positionType]=this._makeMainPositionValue(t,e,n),r[o.positionType]=this._makeSubPositionValue(t,o),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new _(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(389),h=n(c),p=i(390),f=n(p),d=i(391),g=n(d),y=i(333),m=n(y),_=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.mapModel=i.mapModel,n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeTooltipHtml=function(t){return g["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),n=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:n,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),n=m["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return n},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(h["default"]);f["default"].mixin(_),s.componentType="tooltip"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),p=i(382),f=n(p),d=i(336),g=n(d),y=i(334),m=n(y),_=i(333),v=n(_),T=function(t){function e(i){o(this,e);var n=r(this,t.call(this));return n.chartType=i.chartType,n.eventBus=i.eventBus,n.isDown=!1,n.drawingType=h["default"].COMPONENT_TYPE_DOM,n}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){m["default"].renderDimension(t,this.layout.dimension),m["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,g["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||g["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*h["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].browser.firefox?f["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):f["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(398),a=n(r),s=i(399),u=n(s),l=i(335),c=n(l),h=i(382),p=n(h),f=i(342),d=n(f),g=i(336),y=n(g),m=i(334),_=n(m),v=i(333),T=n(v),b=function(){function t(e){if(o(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=d["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?c["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=d["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=c["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=_["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var n=this._getRenderingBound(),o=n.dimension,r=n.position;_["default"].renderDimension(t,o),_["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return y["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),y["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=_["default"].getStyle(this.mouseEventDetectorContainer).height,_["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var n=this.mouseEventDetectorContainer.getBoundingClientRect(),o=n.left,r=n.right,a=n.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!T["default"].isUndefined(i)||i){var h=r-u,p=o+u;t=Math.min(Math.max(t,p),h)}return l.x=t-o+s.left-c["default"].CHART_PADDING,T["default"].isUndefined(e)||(l.y=e-a+s.top-c["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=_["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,n=void 0;return n=d["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(n,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){y["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),y["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){p["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();T["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(342),a=n(r),s=i(337),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n,r,s){o(this,t),this.isLineType=a["default"].isLineTypeChart(n,s),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var n=e,o=i/2;return c["default"].range(0,t).map(function(){var t={min:n-o,max:n+o};return n+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var n=(t+1)/(e-1),o=this._getRanges(e,i||0,n);return o[e-1].max-=1,o},t.prototype._makeNormalData=function(t,e,i){var n=e-1,o=t/n,r=i||0;return c["default"].range(0,n).map(function(){var e=u["default"].min([t+r,o+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var n=i?"width":"height",o=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[n],e,t.position[o]):this._makeNormalData(t.dimension[n],e,t.position[o])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,n){return!(i.min=t)||(e=n,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],n=void 0,o=void 0;return this.isLineType?(o=parseInt(i.max-(i.max-i.min)/2,10),n={start:o,end:o}):n={start:i.min-(e||0),end:i.max-(e||0)},n},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,r=t.top<=n&&t.bottom>=n;return o&&r},t.prototype.findData=function(t,e,i){var n=1e4,o=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);n>e&&(n=e,o=t.sendData)})}return o},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return f["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var n=i.sendData.indexes,o=n.index===t.seriesIndex&&n.outlierIndex===t.outlierIndex;return o&&(e=i.sendData),!o}),e},t}();e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.chartOptions,i=t.seriesTypes,n=e.chartType,o=e.series,r=o.zoomable,s=o.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?p["default"]:a["default"].isMapChart(n)?y["default"]:a["default"].isBarTypeChart(n)||a["default"].isBoxplotChart(n)||a["default"].isHeatmapChart(n)||a["default"].isTreemapChart(n)||a["default"].isBulletChart(n)?d["default"]:a["default"].isCoordinateTypeChart(n)||a["default"].isPieChart(n)||a["default"].isPieDonutComboChart(n,i)?c["default"]:u["default"],t.chartType=n,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=o;var r=i(342),a=n(r),s=i(401),u=n(s),l=i(404),c=n(l),h=i(405),p=n(h),f=i(406),d=n(f),g=i(396),y=n(g);o.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new m(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(402),h=n(c),p=i(403),f=n(p),d=i(333),g=n(d),y=50,m=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.prevFoundData=null,n.prevClientPosition=null,n.zoomable=i.zoomable,n.zoomable&&(g["default"].extend(n,h["default"]),n._initForZoom(i.zoomable)),n}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new f["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),n=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,y,n)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(397),r=n(o),a=i(335),s=n(a),u=i(336),l=n(u),c=i(334),h=n(c),p=i(382),f=n(p),d=i(333),g=n(d);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){h["default"].renderDimension(t,{ +height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=r["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,r["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),f["default"].on(document,"mousemove",this._onDrag,this),f["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),f["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),f["default"].off(document,"mousemove",this._onDrag,this),f["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),f["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,n=Math.abs(e-this.startLayerX),o=this.dragSelectionElement;o.style.left=i+"px",o.style.width=n+"px",l["default"].addClass(o,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var n=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(g["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=n?n.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),n=i[1]-i[0];return 0===n?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===n&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,n=this._adjustIndexRange(t,e),o=n[1]-n[0];this.prevDistanceOfRange!==o&&(this.prevDistanceOfRange=o,this.reverseMove=i,this.eventBus.fire("zoom",n))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,n=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===n},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),g["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):r["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,o(a)),this.lastGroupIndex=r,(i=[]).concat.apply(i,o(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var n={},o=1e5,r=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+n||ea+o},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,n=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,n),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,n=e.y;this._isOuterPosition(i,n)&&!g["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(h["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0,e["default"]=s;var u=i(397),l=n(u),c=i(335),h=n(c),p=i(342),f=n(p),d=i(336),g=n(d),y=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=g["default"].create("DIV",h["default"].CLASS_NAME_RESET_ZOOM_BTN),g["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),p=i(335),f=n(p),d=i(342),g=n(d),y=f["default"].OVERLAPPING_WIDTH,m=f["default"].TEXT_PADDING,_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:i,left:n,width:0,height:e},end:{top:i,left:o,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+y),e},e.prototype._makeBarChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=n.ratioDistance,p=n.value,f=n.startRatio,d=n.stack,g=r*h,y=this._calculateAdditionalLeft(p),m=r*f,_=a+m+y,v=d!==e.prevStack,T=s*u>l,b=T?c:s,x=void 0;if(!i||!this.options.diverging&&v){var E=i?this.dataProcessor.findStackIndex(d):o;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}p>=0?(x=_+e.plusLeft,e.plusLeft+=g):(e.minusLeft-=g,x=_+e.minusLeft),e.prevStack=d;var A=e.top+c-s/2;return T||(A+=(c-s)/2*(u-1)),this._makeBound(g,s,A,_,x)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout,o=n.dimension,r=o.width,a=o.height,s=n.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,n){var o=n*u.groupSize+s,r={baseTop:o,top:o,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+m)/2},e}(l["default"]);h["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(333),a=n(r),s=i(335),u=n(s),l=i(336),c=n(l),h=i(342),p=n(h),f=i(334),d=n(f),g=i(360),y=n(g),m=i(332),_=n(m),v=600,T=a["default"].browser,b=T.msie&&7===T.version,x=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,A=u["default"].CLASS_NAME_SERIES_LABEL,D=function(){function t(e){o(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=y["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=x,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,n=void 0===i?"":i,o=e.labelSuffix,r=void 0===o?"":o,s=d["default"].addPrefixSuffix,u=d["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(d["default"]);return l(t,n,r)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,n=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(n),(this.hasDataForRendering(n)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,n,t)),p["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var n=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,n)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=d["default"].isOldBrowser()?1:0;d["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,n=e.max,o=n-i,r=0,a=0;return i<=0&&n>=0?(r=(o+i)/o*t,a=(o-n)/o*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return c["default"].hasClass(t,A)?t:c["default"].findParentByClass(t,A)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&_["default"].animateOpacity(this.labelSet,0,1,v)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,n=this.dataProcessor.getLegendItem(i),o=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(o,e.index),s=void 0;return a["default"].isExisty(r)&&(s={chartType:n.chartType,legend:n.label,legendIndex:i},s.index=r.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&c["default"].hasClass(this.seriesLabelContainer,"show")&&(c["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var n=this.graphRenderer[e](t);return i&&c["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),n},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(c["default"].removeClass(this.seriesLabelContainer,"show"),c["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=D},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=i(410),u=n(s),l=i(342),c=n(l),h=i(351),p=n(h),f=i(334),d=n(f),g=i(332),y=n(g),m=i(333),_=n(m),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,x=function(){function t(){o(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var n=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):n.getFirstSeriesGroup().getSeriesItemCount();var h=o/(l+1),p=this.options.barWidth||this.options.pointWidth,f=h*b,d=a+s;f=this._getBarWidthOptionSize(h,p)||f,c["default"].isColumnChart(this.chartType)&&(d=e-d),c["default"].isBoxplotChart(this.chartType)&&a&&(d-=2*a),u={baseBarSize:e,groupSize:o,barSize:f,pointInterval:h,basePosition:d,itemCount:l,firstAdditionalPosition:h}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,n=this._getSeriesDataModel(),o=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=n.map(function(t){return t.map(function(t){var i=t.start,n=t.startLabel,o=t.endLabel,r={end:e.decorateLabel(o)};return _["default"].isExisty(i)&&(r.start=e.decorateLabel(n)),r})}),l=void 0;return l=c["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(n,o,r):u["default"].boundsToLabelPositionsForColumnChart(n,o,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return d["default"].formatValue({value:p["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,n=t.width,o=t.height;return{left:i+n/2,top:e+o/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,n=i.map(function(i,n){var o=t.bounds[n],r=void 0;return o&&i&&(r=e._makeStackedLabelPosition(o.end)),{end:r}});return n},t.prototype.getGroupLabels=function(t,e,i){var n=this,o=c["default"].isNormalStack(this.options.stackType);return t.map(function(t){var r=t.map(function(t){return{end:n.decorateLabel(t.endLabel)}});if(o){e.push(p["default"].sumPlusValues(t.pluck("value")));var a=p["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,n){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[n]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],n=[],o=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,n),l=!0,h=c["default"].isNormalStack(this.options.stackType),p=c["default"].isBarChart(this.chartType),f=p?"width":"height",g=p?"left":"top",m=p?1:-1;return h&&(u.forEach(function(t,o){var r=i[o],a=n[o];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(d["default"].formatToComma(r))}),n.length&&t.push({end:e.decorateLabel(d["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,c=e._makeStackedLabelPosition(u),h=e._makeStackedLabelPosition(l),p=i[a],d=n[a],_=y["default"].getRenderedTextSize(p,o.fontSize,o.fontFamily),v=y["default"].getRenderedTextSize(d,o.fontSize,o.fontFamily),b=(u[f]+_[f])/2,x=(l[f]+v[f])/2;c[g]+=(b+T)*m,h[g]-=(x+T)*m,t.push({end:c}),n.length&&t.push({end:h})})),this.graphRenderer.renderSeriesLabel(t,s,u,o,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();x.mixin=function(t){Object.assign(t.prototype,x.prototype)},e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,n,o){var r=t.value,a=r>=0,s={end:o(e,i,t.endLabel||t.label,n,a)};return t.isRange&&(a=r<0,s.start=o(e,i,t.startLabel,n,a)),s},boundsToLabelPositions:function(t,e,i,n,o){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return n=n||this._makePositionForBoundType.bind(this),o=!!o,t.map(function(t,o){var s=e[o];return t.map(function(t,e){var o=s[e].end;return r._makePositionMap(t,o,a,i,n)})},o)},_makePositionForBarChart:function(t,e,i,n,o){var r=s["default"].getRenderedLabelWidth(i,n),a=t.left;return o?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var n=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},_makePositionForColumnChart:function(t,e,i,n,o){var r=t.top;return o?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var n=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,n)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,n=t.map(function(t){var n=e[t.id],o=void 0;return n&&(o=i._makePositionForBoundType(n)),o});return n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e); +t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(409),h=n(c),p=i(335),f=n(p),d=i(342),g=n(d),y=i(334),m=n(y),_=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,n,o){return{start:{top:n,left:i,width:t,height:0},end:{top:o,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,n,o){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,c=t.pointInterval,h=Math.abs(r*n.ratioDistance),p=r*n.startRatio,d=a+p+f["default"].SERIES_EXPAND_SIZE,g=n.stack!==e.prevStack,y=s*u>l,m=y?c:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&g){var T=i?this.dataProcessor.findStackIndex(n.stack):o;e.left=e.baseLeft+m*T,e.plusTop=0,e.minusTop=0}return n.value>=0?(e.plusTop-=h,_=d+e.plusTop):(_=d+e.minusTop,e.minusTop+=h),e.prevStack=n.stack,v=y?e.left+c-s/2:e.left+c-s/2+(c-s)/2*(u-1),this._makeBound(s,h,v,d,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+f["default"].TEXT_PADDING)/2},e}(l["default"]);h["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new p(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),p=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(p),s.componentType="series"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(337),a=n(r),s=i(335),u=n(s),l=i(342),c=n(l),h=i(351),p=n(h),f=i(334),d=n(f),g=i(333),y=n(g),m=u["default"].SERIES_EXPAND_SIZE,_=u["default"].SERIES_LABEL_PADDING,v=u["default"].MAX_HEIGHT_WORD,T=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){o(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,n=e.width,o=this._getSeriesDataModel(),r=t||n||0,a=o.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=r/(a>1?a-1:a):(l=r/a,u+=l/2),o.map(function(t){return t.map(function(t,e){var n=void 0;return y["default"].isNull(t.end)||(n={left:u+l*e,top:s+i-t.ratio*i},y["default"].isExisty(t.startRatio)&&(n.startTop=s+i-t.startRatio*i)),n})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),n=e.height,o=this.axisDataMap.xAxis,r=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return o.sizeRatio&&(l=p["default"].multiply(s,o.positionRatio),s=p["default"].multiply(s,o.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return y["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:r+n-t.ratioMap.y*n},y["default"].isExisty(t.ratioMap.start)&&(e.startTop=n-t.ratioMap.start*n+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,n){var o=t.top,r=void 0;return r=c["default"].isValidStackOption(this.options.stackType)?(t.startTop+o-i)/2+1:e>=0&&!n||e<0&&n?o-i-_:o+_},t.prototype._makeLabelPosition=function(t,e,i,n,o){return{left:t.left,top:this._calculateLabelPositionTop(t,n,e/2,o)}},t.prototype._getLabelPositions=function(t,e){var i=this,n=a["default"].pivot(this.seriesData.groupPositions),o=d["default"].getRenderedLabelHeight(v,e);return t.map(function(t,e){return t.map(function(t,r){var a=n[e][r],s=i._makeLabelPosition(a,o,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,o,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,n=t.isRange,o=t.startLabel,r={end:e.decorateLabel(i)};return n&&(r.start=e.decorateLabel(o)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,y["default"].bind(this._renderGraph,this)),this.animateComponent(!0),y["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=T,n=this._isChangedAxisLimit();n&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=d["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+m},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,n=t.axisDataMap,o=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=n;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(o,s);r&&(a+=e);var l=this._makePositions(a),c=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,c)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){y["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(335),h=n(c),p=i(351),f=n(p),d=i(376),g=n(d),y=i(333),m=n(y),_=h["default"].COMPONENT_TYPE_RAPHAEL,v=h["default"].RADIAL_PLOT_PADDING,T=h["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(413),h=n(c),p=i(342),f=n(p),d=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a=0&&!o&&(o=e),o},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,n=e.position.top,o=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||o,s=t?t.top:0,u=i-s+n,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return f["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,n=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,o=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:o,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:n,isAvailable:function(){return o&&o.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);h["default"].mixin(d),s.componentType="series",s.AreaChartSeries=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new y(t)}e.__esModule=!0,e["default"]=s;var u=i(335),l=n(u),c=i(408),h=n(c),p=i(417),f=n(p),d=i(333),g=n(d),y=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:o},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,o)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,n=this.options.allowSelect,o=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:o,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;n&&r&&(this.onSelectSeries({chartType:o,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new d(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(417),h=n(c),p=i(335),f=n(p),d=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a0&&(t%=T),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,n=void 0;return n=ei?T-(e-i):T},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,n=t.r,o=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),c=this.options.startAngle,h=.5*n;if(a&&(h+=h*a),!l)return null;var p=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=c+a,l=c+a/2,p={start:{startAngle:c,endAngle:c},end:{startAngle:c,endAngle:u}},f={cx:i,cy:o,angle:l};return c=u,{ratio:r,angles:p,centerPosition:e._getArcPosition(y["default"].extend({r:h},f)),outerPosition:e._getArcPosition(y["default"].extend({r:n+e.legendLongestWidth/2+b},f))}});return p},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/x,10)+1;return e&&t%x===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var n=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:n.start===n.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===C,e=this._calculateBaseSize(),i=0,n=this.isShowOuterLabel;return t&&(n=this.dataProcessor.isComboDonutShowOuterLabel()),i=n?E:A,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=n/2+s,c=o/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,c+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,c-=u):this._isInQuadrantRange(2,3)?c-=u:this._isInQuadrantRange(3,3)?(l+=u,c-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?c+=u:this._isInQuadrantRange(4,4)&&(l+=u,c+=u)),{cx:l,cy:c}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*D),top:t.cy-t.r*Math.cos(t.angle*D)}},e.prototype._renderGraph=function(t,e,i){var n=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),o={showTooltip:n,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,o)},e.prototype.showTooltip=function(t,e,i,n,o){this.eventBus.fire("showTooltip",y["default"].extend({indexes:{groupIndex:i,index:n},mousePosition:o},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return _["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,n=this.options,o=n.showLegend,r=n.showLabel,a=_["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=_["default"].getRenderedTextSize(this.valueLabels[0],S,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(n){var u=n.ratio?Object.assign({},n[t]):null,l=u&&o&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=y["default"].extend({},e.middle);i.left-1&&o!==i;n&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:o,legendIndex:e.legendIndex}},r),n&&o>-1&&(this.prevClickedIndex=o))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(c["default"]);s.componentType="series",s.PieChartSeries=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new p(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(410),h=n(c),p=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.colorSpectrum=i.colorSpectrum,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,n){var o=this.layout,r=o.dimension.height,a=o.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(n+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,n=i.width,o=i.height,r=n/this.dataProcessor.getCategoryCount(!1),a=o/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,n){return t._makeBound(r,a,i,n)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),n=i.getSeriesItem(e.groupIndex,e.index),o=n.ratio,r=n.label;this.eventBus.fire("showWedge",o,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this.seriesData.groupBounds,o=this.theme.label,r=this.selectedLegendIndex,a=h["default"].boundsToLabelPositions(i,n,o),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,o,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var n=this,o=this._getSeriesDataModel(),r=v["default"].extend({},this.layout.dimension,this.layout.position),a=o.findSeriesItemsByParent(t);return i=i||r,e=v["default"].extend(e||{},h["default"].squarify(i,a)),a.forEach(function(t){e=n._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),n=void 0;return n=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],o=null;return i&&n(e)&&(o={end:i}),o},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var n=!1;if(e&&i.id!==e.id&&i.group===e.group){var o=t.findParentByDepth(i.id,e.depth+1);o&&o.parent===e.id&&(n=!0)}return n},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),n=this._getBoundMap(),o=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=f["default"].boundsToLabelPostionsForTreemap(a,n,o);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,o)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){m["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(351),r=n(o),a=i(337),s=n(a),u=i(333),l=n(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/r["default"].sum(t)},_makeBaseData:function(t,e,i){var n=this._calculateScale(l["default"].pluck(t,"value"),e,i),o=t.map(function(t){return{id:t.id,weight:t.value*n}}).sort(function(t,e){return e.weight-t.weight});return o},_worst:function(t,e,i,n){var o=t*t,r=n*n;return Math.max(r*i/o,o/(r*e))},_changedStackDirection:function(t,e,i,n){var o=s["default"].min(e),r=s["default"].max(e),a=this._worst(t,o,r,i),u=this._worst(t+n,Math.min(o,n),Math.max(r,n),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,d=h+e.plusTop):(d=h+e.minusTop,e.minusTop+=l);var g=e.left+r-a/2,y=(n.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+p,left:g+a/2}});return{start:{top:h,left:g,width:a,height:0},end:{top:d,left:g,width:a,height:l},min:{top:s*(1-n.minRatio)+p,left:g,width:a,height:0},max:{top:s*(1-n.maxRatio)+p,left:g,width:a,height:0},median:{top:s*(1-n.medianRatio)+p,left:g,width:a,height:0},outliers:y}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=g["default"].isValidStackOption(this.options.stackType),n=this.layout.dimension,o=n.width,r=n.height,a=this._makeBaseDataForMakingBound(o,r);return e.map(function(e,n){var o=n*a.groupSize+t.layout.position.left,r={baseLeft:o,left:o,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,n=t.width,o=m["default"].getRenderedLabelWidth(e,this.theme.label);return i+(n-o+v)/2},e}(l["default"]);h["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new x(t)}e.__esModule=!0,e["default"]=s;var u=i(408),l=n(u),c=i(334),h=n(c),p=i(335),f=n(p),d=f["default"].BULLET_TYPE_ACTUAL,g=f["default"].BULLET_ACTUAL_HEIGHT_RATIO,y=f["default"].BULLET_TYPE_RANGE,m=f["default"].BULLET_RANGES_HEIGHT_RATIO,_=f["default"].BULLET_TYPE_MARKER,v=f["default"].BULLET_MARKERS_HEIGHT_RATIO,T=f["default"].BULLET_MARKER_DETECT_PADDING,b=f["default"].MAX_HEIGHT_WORD,x=function(t){function e(i){o(this,e);var n=r(this,t.call(this,i));return n.isVertical=i.isVertical,n}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),n={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var o=t._makeBulletChartBound.bind(t,i,n),r=e.map(o);return t._updateIterationData(n,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,n=i.width,o=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=o,u=n,l=o):(u=o,l=n);var c=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:c}},e.prototype._makeBulletChartBound=function(t,e,i){var n=i.type,o=void 0;return n===d?o=this._makeBarBound(i,g,t,e):n===y?o=this._makeBarBound(i,m,t,e):n===_&&(o=this._makeLineBound(i,v,t,e)),o.type=n,o},e.prototype._makeBarBound=function(t,e,i,n){var o=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*o,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(n,i,a,s,u):this._makeHorizontalBarBound(n,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,n,o){return{top:t.top-o,left:t.left+(e.itemWidth-i)/2,width:i,height:n}},e.prototype._makeHorizontalBarBound=function(t,e,i,n,o){return{top:t.top+(e.itemWidth-i)/2,left:t.left+o-n,width:n,height:i}},e.prototype._makeLineBound=function(t,e,i,n){var o=i.itemWidth,r=i.valueAxisWidth,a=o*e,s=r*t.endRatio,u=T,l=T,c=void 0,h=void 0;return this.isVertical?(c=n.top-s,h=n.left+(o-a)/2,l=a):(c=n.top+(o-a)/2,h=n.left+s,u=a),{top:c,left:h,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),n=this._getLabelTexts(i),o=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,o,n,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==y&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,n=this.seriesData.groupBounds,o=h["default"].getRenderedLabelHeight(b,e);return n.map(function(t){var e=[];return t.forEach(function(t){t.type!==y&&e.push(i._makePositionByBound(t,o))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,n=t.left,o={};if(this.isVertical){var r=t.width||t.length;o.top=i-e,o.left=n+r/2}else{var a=t.width||0,s=t.height||t.length;o.top=i+s/2,o.left=n+5+(a||0)}return o},e}(l["default"]);s.componentType="series",s.BulletChartSeries=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new M(t)}e.__esModule=!0,e["default"]=r;var a=i(333),s=n(a),u=i(427),l=n(u),c=i(335),h=n(c),p=i(336),f=n(p),d=i(351),g=n(d),y=i(334),m=n(y),_=i(382),v=n(_),T=i(342),b=n(T),x=h["default"].COMPONENT_TYPE_DOM,E=h["default"].MAP_CHART_ZOOM_AREA_HEIGHT,A=h["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=h["default"].CHART_PADDING,S=s["default"].browser.msie&&s["default"].browser.version<=8,M=function(){function t(e){o(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,n=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=n&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=x,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!S){var i=g["default"].sum([t.positionMap.series.top,-E,A]);this.isMapLegendTop&&(i=t.positionMap.legend.top-A);var n={top:i,right:D};e=f["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,m["default"].renderPosition(e,n),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return f["default"].hasClass(t,e)||(i=f["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),n=i.getAttribute("data-magn"),o=this._calculateMagn(n);return o>5?this.magn=5:o<1?this.magn=1:o>=1&&this._zoom(o),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(392),r=n(o),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=O["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return A["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return I["default"].encodeHTMLEntity(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,n=e+"Axis",o=this.options[n]||{},r=!1;return r=I["default"].isArray(o)?o.filter(function(t){return t.type&&S["default"].isDatetimeType(t.type)}):o.type&&S["default"].isDatetimeType(o.type),t=r?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=r,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return I["default"].isArray(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),I["default"].isExisty(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),n=this.getCategorieDateType(),o=null;return i.forEach(function(i,r){return n&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(o=r),I["default"].isNull(o)}),o},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,n){var o=e===t;return o&&(i=n),!o}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),n=e?"yAxis":"xAxis",o=this.options[n]||{},r=this.options.tooltip||{};return S["default"].isDatetimeType(r.type)?i=L["default"].formatDate(i,r.dateFormat):S["default"].isDatetimeType(o.type)&&(i=L["default"].formatDate(i,o.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var n=!i,o=this._getTooltipCategory(t,n),r=this.getCategoryCount(!n);return r&&(o+=", "+this._getTooltipCategory(r-e-1,!n)),o},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=A["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return I["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!I["default"].isExisty(t)){var e=this.chartType;t=S["default"].isCoordinateTypeChart(e),t=t||S["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||S["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],n=void 0;n=S["default"].isBoxplotChart(this.chartType)?y["default"]:S["default"].isTreemapChart(this.chartType)?T["default"]:S["default"].isBulletChart(this.chartType)?_["default"]:d["default"],this.seriesDataModelMap[t]=new n(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],n=null;return i.forEach(function(e){var i=e.name===t;return i&&(n=e),!i}),n},e.prototype._pushValue=function(t,e,i){var n=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),n&&n.data.push(e)},e.prototype._pushValues=function(t,e,i){var n=this;t.forEach(function(t,o){n._pushValue(t,e[o],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&I["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var n=u(i,2),o=n[0],r=n[1];e._pushValues(r,t[o],o)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var n=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),n&&n.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),n=i[0],o=i[1];t._shiftValues(o,n)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new x["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return k(e.min)&&k(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return k(e.min)||k(e.max)},e.prototype._createValues=function(t,e,i){var n=void 0,o=this.options,r=o.plot,a=o[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),c=this.isLimitOptionsInsufficient(i),h=S["default"].isLineChart(t)||S["default"].isAreaChart(t)||S["default"].isLineAreaComboChart(t,this.seriesTypes),p=this.defaultValues;if(S["default"].isComboChart(t))n=[],this._eachByAllSeriesDataModel(function(t){n=n.concat(t.getValues(e))});else if(u&&c)if(!l&&c&&(p=p.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(n=this.getDefaultDatetimeValues(),h&&r){var f=this.getValuesFromPlotOptions(r,s);n=n.concat(f)}}else n=p;else n=this.getSeriesDataModel(t).getValues(e); +return n},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var n=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(n)}),i},e.prototype.getValues=function(t,e,i){var n=t+e;return this.valuesMap[n]||(this.valuesMap[n]=this._createValues(t,e,i)),this.valuesMap[n]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,n){i.each(function(e,i){t(e,i,n)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?I["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return I["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},n=void 0;return"visibility"===t?n=this._isVisibleLegend:"label"===t&&(n=this._pickLegendLabel),n&&(Object.entries(e).forEach(function(t){var e=u(t,2),o=e[0],r=e[1];i[o]=r.map(n)}),i=I["default"].filter(i,I["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),n=this.seriesTypes||[this.chartType],r=void 0;I["default"].isArray(e)?(r=[this.chartType],r[this.chartType]=e):(n=this.seriesTypes,r=e);var a=n.map(function(t){return r[t].map(function(e,n){var o=I["default"].isArray(i[t]);return{chartType:t,label:e,visible:o?i[t][n]:i[n]}})});return(t=[]).concat.apply(t,o(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){S["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var n=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),n.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=w["default"].sumPlusValues(t),n=w["default"].sumMinusValues(t);i=i.concat([e,n])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,n,o){var r=void 0;return S["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,n),S["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=S["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):S["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,n,o),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),n=i.getMaxValue("r"),o=function(t){return t.r/n>c["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,o),maxItem:i.findMaxSeriesItem(e,o)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(p["default"]);e["default"]=B},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(337),a=n(r),s=i(334),u=n(s),l=i(351),c=n(l),h=i(333),p=n(h),f=function(){function t(){o(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var n=this.getMaxValue(t,i),o=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var n=this.getMinValue(t,i),o=this.getFormatFunctions();return u["default"].formatValue({value:n,formatFunctions:o,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=c["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[p["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[p["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=p["default"].pick(this.options,"chart","format"),e=[];return p["default"].isFunction(t)?e=[t]:p["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=y["default"].sumPlusValues(t),i=Math.abs(y["default"].sumMinusValues(t)),n=e>0&&i>0?.5:1;return n},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=y["default"].sumPlusValues(e),n=Math.abs(y["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,n)})},t.prototype._makeSubtractionValue=function(t){var e=d["default"].allowMinusPointRender(this.chartType),i=0;return!e&&d["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=d["default"].isAllowedStackOption(this.chartType);i&&d["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&d["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=y["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,n=t.yAxis,o=e?_["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),n&&(s=Math.abs(n.max-n.min),u=this._makeSubtractionValue(n)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",o,0),T["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,n){i.push(t(e,n))},e),i},t}();e["default"]=x},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(351),s=n(a),u=i(333),l=n(u),c=function(){function t(e){o(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),n=i[0],o=i[1];e[n]=s["default"].sum(o.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var n=e[i.stack];i.addRatio(n,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var n=i.value>=0?t:e;i.addRatio(n,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=c},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(335),s=n(a),u=i(334),l=n(u),c=i(351),h=n(c),p=i(342),f=n(p),d=i(333),g=n(d),y=function(){function t(e){o(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,f["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),n="makingSeriesLabel",o=i.length>1,a=r(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),g["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:n,legendName:this.legendName}),this.endLabel=this.label,o&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return g["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){g["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=h["default"].calculateRatio(this.value,t,e,i),g["default"].isExisty(this.start)&&(this.startRatio=h["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return g["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=y},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(342),s=n(a),u=i(334),l=n(u),c=i(333),h=n(c),p=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(h["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var n=r(t,4);this.r=n[2];var o=n[3];this.label=void 0===o?"":o}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=h["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var c=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+c}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!h["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],n=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return h["default"].isNumber(e)?n:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return h["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(435),u=n(s),l=i(430),c=n(l),h=i(333),p=n(h),f=Array.prototype.concat,d=function(t){function e(i,n,a,s){o(this,e);var u=r(this,t.call(this));return u.chartType=n,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var n=p["default"].isArray(i)?i:[].concat(i.data),o=n.map(function(n,o){return new u["default"]({datum:n,chartType:t,formatFunctions:e,index:o,legendName:i.name})});return o})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=f.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(c["default"]);e["default"]=d},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(334),s=n(a),u=i(351),l=n(u),c=i(333),h=n(c),p=function(){function t(e){o(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,n=this._createValues(t),o=r(n,5),a=o[0],u=o[1],l=o[2],c=o[3],h=o[4],p=n.length>5,f=void 0,d=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=h,this.uq=c,this.median=l,this.lq=u,this.min=a,this.index=e,p&&(this.outliers=[],f=this.outliers,n.slice(5).forEach(function(t){f.push({value:t,label:d(t)})})),this.label=d(h),this.uqLabel=d(c),this.medianLabel=d(l),this.lqLabel=d(u),this.minLabel=d(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return h["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){h["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=l["default"].calculateRatio;this.ratio=this.maxRatio=n(this.max,t,e,i),this.uqRatio=n(this.uq,t,e,i),this.medianRatio=n(this.median,t,e,i),this.lqRatio=n(this.lq,t,e,i),this.minRatio=n(this.min,t,e,i),(this.outliers||[]).forEach(function(o){o.ratio=n(o.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return h["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(432),u=n(s),l=i(430),c=n(l),h=i(335),p=n(h),f=function(t){function e(){return o(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,n=0,o=this.rawSeriesData.map(function(o){var r=[],a=o.data,s=o.markers,l=o.ranges,c=s.length,h=l.length;return l&&h&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,h)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:p["default"].BULLET_TYPE_ACTUAL})),s&&c&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:p["default"].BULLET_TYPE_MARKER}))}),n=Math.max(n,c)),r});return this.maxMarkerCount=n,this.maxRangeCount=i,o},e.prototype._createSeriesGroupsFromRawData=function(){return c["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(c["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(430),l=n(u),c=i(438),h=n(c),p=i(335),f=n(p),d=i(351),g=n(d),y=i(333),m=n(y),_=function(t){function e(){o(this,e);for(var i=arguments.length,n=Array(i),a=0;a1&&(n+=e.slice(1).join("_")),n},e.prototype._isValidGroup=function(t,e){return!m["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,n=this._makeCacheKey(f["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(n,function(n){return n.depth===t&&i._isValidGroup(n.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(f["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(f["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=_},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(351),a=n(r),s=i(334),u=n(s),l=i(333),c=n(l),h=function(){function t(e,i,n){o(this,t),this.chartType=n,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,n=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),o=n,r={legend:this.label||"",value:n,label:o,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return c["default"].isExisty(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return c["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(440),r=n(o),a=i(446),s=n(a),u=i(335),l=n(u),c=i(342),h=n(c);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,n){t.addScale(e,i&&i.options||n||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,n,o){var r=t.get(n),a=null,s=[];if(r){var u=i[n];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:n,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:o})}},_setLayoutBoundsAndScale:function(t,e,i,n,o){var r=o.options,a=o.scaleOption,s=void 0===a?{}:a,u=o.addingDataMode,c=o.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(n,"yAxis",s.yAxis,o.options.yAxis),s.rightYAxis&&this.addYAxisScale(n,"rightYAxis",s.rightYAxis),s.legend&&n.addScale("legend",{},{chartType:o.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var p=n.scaleDataMap;p.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(p.legend.limit),this._registerYAxisDimension(e,i,p,"yAxis",c),this._registerYAxisDimension(e,i,p,"rightYAxis",c),s.xAxis&&n.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),o.hasAxes&&n.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(n.axisDataMap),e.has("xAxis")&&(h["default"].isAutoTickInterval(r.xAxis.tickInterval)&&n.updateXAxisDataForAutoTickInterval(o.prevXAxisData,u),n.updateXAxisDataForLabel(u)),i.registerBoundsData(n.axisDataMap.xAxis)},build:function(t,e,i){var n=this._createBoundsModel(t,i),o=this._createScaleDataModel(t,n,i);this._setLayoutBoundsAndScale(t,e,n,o,i);var r={dimensionMap:n.dimensionMap,positionMap:n.positionMap,limitMap:o.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return o.axisDataMap&&(r.axisDataMap=o.axisDataMap),h["default"].isBubbleChart(i.chartType)&&(r.maxRadius=n.calculateMaxRadius(o.axisDataMap)),o.scaleDataMap.legend&&(r.legendScaleData=o.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(335),a=n(r),s=i(342),u=n(s),l=i(334),c=n(l),h=i(332),p=n(h),f=i(441),d=n(f),g=i(442),y=n(g),m=i(443),_=n(m),v=i(444),T=n(v),b=i(445),x=n(b),E=i(333),A=n(E),D=A["default"].browser,S=a["default"].LEGEND_AREA_H_PADDING,M=D.msie&&D.version<=8,L=function(){function t(e){o(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=A["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=A["default"].isExisty(t.title),i=this.theme.title,n=e?p["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,o=n||0;o&&(o+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:o})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:y["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=A["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,n=this.getDimension("chart").width,o=_["default"].calculate(e,i,t,n);this._registerDimension("legend",o)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",n=this.theme.label,o=this.options.legend.align,r=void 0;if(u["default"].isHorizontalLegend(o)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(o);r=x["default"]._makeHorizontalDimension(e,n,a,s)}else r=x["default"]._makeVerticalDimension(e,i,n);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,n=t.theme,o=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,c=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}c=A["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:y["default"].calculateYAxisWidth(l,c,n,o,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=c["default"].getRenderedLabelHeight(t,this.theme.title));var n=T["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!M&&(n-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+S),n},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=c["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),T["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,n=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),o=this.theme.chart.fontFamily,r=d["default"].calculateCircleLegendWidth(e,t,n,o),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=r-s;this._registerDimension("circleLegend",{width:r,height:r}),l>0&&this._updateLegendAndSeriesWidth(r,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,n=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=n,this.dimensionMap.series.width-=n,this.dimensionMap.mouseEventDetector.width-=n,this.dimensionMap.xAxis.width-=n},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),n=this.getDimension("yAxis").width,o=t+n+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+o-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,n=this.options.legend,o=0,r=void 0,s=void 0;return u["default"].isHorizontalLegend(n.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,o=u["default"].isLegendAlignBottom(n.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(n.align)?s=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,s=this.chartLeftPadding+r+e.width),o=i+a["default"].SERIES_AREA_V_PADDING),{top:o,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),n=this.getDimension("series"),o=this.getDimension("legend"),r=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-o.width)/2,r=u["default"].isLegendAlignTop(e)?i.top-o.height:i.top+n.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),r=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var c={top:r,left:s};return l&&(c.right=l),c},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),n=this.options.legend,o=void 0,r=void 0;return o=u["default"].isLegendAlignLeft(n.align)?0:t.left+e.width,u["default"].isVerticalLegend(n.align)&&n.visible&&(r=this.getDimension("legend").width+a["default"].CHART_PADDING,o+=(r-i.width)/2),{top:t.top+e.height-i.height,left:o}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,n=this.getDimension("legend"),o=u["default"].isLegendAlignTop(e)&&i,r=u["default"].isLegendAlignLeft(e)&&i,s=o?n.height:0,l=r?n.width:0,h=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),p=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=c["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),f=Math.max(0,Math.max(s,p)-a["default"].TITLE_PADDING),d=h+f;h||(d=Math.max(s,p));var g={top:d+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=g,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=c["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,n=c["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-n,this.positionMap.extendedSeries.left-=i-n,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return d["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=L},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,n=void 0;return n=t.isLabelAxis?e/i/2:e/(i-1),parseInt(n,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),n=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,n)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,n){var o=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,n);return Math.max(2*o,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var n=this._calculateRadiusByAxisData(t.series,e),o=t.circleLegend.width;return i?Math.min((o-r["default"].CIRCLE_LEGEND_PADDING)/2,n):n}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a),u=i(334),l=n(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,n=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,o=n?n+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=o+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,n,o){var a=e.labelMargin,u=e.prefix,c=e.suffix,h=e.isCenter,p=e.type,f=e.dateFormat,d=e.showLabel,g=e.title,y=0,m=0,_=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,c),n=l["default"].addPrefixSuffix(n,u,c),h&&(_+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(p)&&(t=l["default"].formatDates(t,f),n=l["default"].formatDates(n,f)),a&&a>0&&(_+=a),t=n.length?n:t,d!==!1&&(m=l["default"].getRenderedLabelsMaxWidth(t,i.label)),g&&(y=l["default"].getRenderedLabelWidth(g.text,i.title)),_+=(o?Math.max(m,y):m)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a),u=i(351),l=n(u),c=i(334),h=n(c),p=i(337),f=n(p),d=r["default"].LEGEND_CHECKBOX_SIZE,g=r["default"].LEGEND_ICON_WIDTH,y=r["default"].LEGEND_LABEL_LEFT_PADDING,m=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,n){var o=l["default"].sum([v,i,g,y]),r=l["default"].sum(t.map(function(t){var i=h["default"].getRenderedLabelWidth(t,e);return n&&i>n&&(i=n),i+=o,i+_}));return r=r-_+v},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),n=[],o=[];return t.forEach(function(t){o.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return h["default"].getRenderedLabelsMaxHeight(t,e)})),n=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),o=n*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return o},_makeHorizontalDimension:function(t,e,i,n,o){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,n,o),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,n){var o=h["default"].getRenderedLabelsMaxWidth(e,t),r=0;return n&&o>n&&(o=n),r=l["default"].sum([2*v,i,g,y,o,m]),{width:r,height:0}},calculate:function(t,e,i,n){var o=t.showCheckbox===!1?0:d+y,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,n,o,r):this._makeVerticalDimension(e,i,o,r):a.width=0,a}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(342),s=n(a);e["default"]={calculateWidth:function(t,e,i){var n=t.chart.width,o=t.yAxis,a=t.rightYAxis,u=t.legend,l=o.width+a.width,c=u,h=0,p=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(h=c?c.width:0),h||a.width||!i||(p=i/2),n-2*r["default"].CHART_PADDING-l-h-p},calculateHeight:function(t,e,i){var n=t.chart.height,o=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),c=o+l,h=s["default"].isLegendAlignBottom(e.align)?a:0,p=t.xAxis.height+h;return n-2*r["default"].CHART_PADDING-c-p}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=i(335),r=n(o),a=i(334),s=n(a),u=i(351),l=n(u),c=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,h=r["default"].MAP_LEGEND_WEDGE_SIZE,p=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,f=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,d=r["default"].MAP_LEGEND_GRAPH_SIZE,g=r["default"].MAP_LEGEND_LABEL_PADDING,y=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,m=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var n=s["default"].getRenderedLabelWidth(t,i),o=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*c,r,h]);return{width:l["default"].sum([p,a,f,d,g,Math.max(n,o)]),height:y}},_makeHorizontalDimension:function(t,e,i,n){var o=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*m,o,h]),a=i?_:p,u=n?p:0;return{width:v,height:l["default"].sum([a,r,f,d,g,o,g,u])}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(447),a=n(r),s=i(449),u=n(s),l=i(450),c=n(l),h=i(342),p=n(h),f=i(334),d=n(f),g=i(333),y=n(g),m=function(){function t(e){o(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,n){var o=t.chartType,r="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(o,n.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(r),l=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:n.tickCounts,showLabel:this.options.series.showLabel});return p["default"].isBubbleChart(o)&&(l.overflowItem=this.dataProcessor.findOverflowItem(o,t.valueType)),(p["default"].isMapChart(o)||p["default"].isHeatmapChart(o)||p["default"].isTreemapChart(o))&&(l.useSpectrumLegend=!0),a["default"].makeScaleData(s,u,o,l)},t.prototype._createScaleLabels=function(t,e,i,n){var o=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:n});return u["default"].createFormattedLabels(t,e,r,o)},t.prototype._createScaleData=function(t,e,i){var n=this.options.series,o=e.chartType||this.chartType;e.chartType=o,n=n[o]||n;var r={stackType:i.stackType||n.stackType,diverging:n.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return y["default"].extend(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,n,o){var r=this.dataProcessor.hasCategories(),a=!n&&!r&&i,s=t.labels,u=t.limit,l=t.step,h=s.length,p=c["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!n,isPositionRight:!!o});if(a){var f=this.dataProcessor.getValues(this.chartType,"x"),d=c["default"].makeAdditionalDataForCoordinateLineType(s,f,u,l,h);y["default"].extend(p,d)}return p},t.prototype._createLabelAxisData=function(t,e,i,n,o){var r=t.categories||this.dataProcessor.getCategories(n);return c["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!n,isPositionRight:!!o,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,n,o){var r=p["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,n,o):this._createLabelAxisData(e,i,r,n,o)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,n=y["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],o={};return o.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),o.yAxis=this._createAxisData(t.yAxis,n[0],i.yAxis.label,!0),this.hasRightYAxis&&(o.rightYAxis=this._createAxisData(t.rightYAxis,n[1],i.yAxis.label,!0,!0),o.rightYAxis.aligned||(o.rightYAxis.aligned=o.yAxis.aligned)),o},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=n.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,n)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,n=this.options.series.zoomable,o=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||n?c["default"].updateLabelAxisDataForAutoTickInterval(o,r,a,e):c["default"].updateLabelAxisDataForStackingDynamicData(o,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=o.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),n=e.isLabelAxis,o=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=d["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=y["default"].filter(s,function(t){return!!t});r=y["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?c["default"].makeAdditionalDataForMultilineLabels(s,r,o,n,i):c["default"].makeAdditionalDataForRotatedLabels(u,r,o,n,i),this.prevValidLabelCount=r,y["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var n=void 0;return n=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,n=this.scaleDataMap,o={};return n.xAxis&&(o.xAxis=n.xAxis.limit),n.yAxis&&(o.yAxis=n.yAxis.limit),n.rightYAxis&&(o.rightYAxis=n.rightYAxis.limit),n.legend&&(o.legend=n.legend.limit),t.forEach(function(t,n){o[t]=i._findLimit(o,n,e)}),o},t}();e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(u){o=!0,r=u}finally{try{!n&&s["return"]&&s["return"]()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(335),a=n(r),s=i(342),u=n(s),l=i(351),c=n(l),h=i(337),p=n(h),f=i(448),d=n(f),g=i(333),y=n(g),m={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var n=t.min,o=t.max;return i.min&&(n=c["default"].subtract(n,e)),i.max&&(o=c["default"].add(o,e)),{min:n,max:o}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,n=this.millisecondTypes,o=this.millisecondMap,r=n.length-1,s=void 0;return i?n.every(function(t,a){var u=o[t],l=Math.floor(i/u),c=void 0;return l&&(c=a0?e.min=0:0===n?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10, +e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var n=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),o=n.dataLimit;i&&(o=this._makeLimitForDivergingOption(o));var r=(0,d["default"])({min:o.min,max:o.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,n.minDate,n.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===c["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===c["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,n=void 0===i?{}:i,o=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),c=y["default"].isExisty(n.min),h=y["default"].isExisty(n.max),p=l.min,f=l.max,g=void 0,m=t.options.stepCount;c&&(p=n.min,m=null),h&&(f=n.max,m=null);var _=(0,d["default"])({min:p,max:f,stepCount:m,offsetSize:r});return o||(g=this._isOverflowed(a,_,l,c,h)),g&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,g)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,n,o){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!n&&s.min===i.min&&0!==s.min,l=a||!o&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,n){var o=void 0,r=u["default"].isDivergingChart(i,n.diverging),a=n.overflowItem;return u["default"].isPercentStackChart(i,n.stackType)?o=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(n.type)?o=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(n.stepCount=Math.floor(e/100)),o=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:n})),o}};e["default"]=m},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,n=d.length;i1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,n&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(o(t),o(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),n=s(t.limit.min,t.limit.max,i,e),o=Math.abs(n.max-n.min),r=u(o,i);return{limit:{min:n.min,max:n.max},step:i,stepCount:r}}function c(t,e,i,n,o){var r=Math.abs(e-t),a=r/i;n||(n=Math.ceil(i/g));var s=i/n,u=a*s;return f["default"].isNumber(o)&&ui.labelInterval&&(o=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(o=d["default"].formatDates(o,i.dateFormat)),t.aligned||(n+=1),{labels:o,tickCount:n,validTickCount:n,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,n=t.limit,o=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:n,step:o,options:r,validTickCount:i,dataMin:n.min,distance:n.max-n.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,n,o){var r=y["default"].min(e),a=y["default"].max(e),s=a-r,u=0,l=1;return s&&(i.mina&&(i.max-=n,l-=(a-i.max)/s,o-=1,t.pop())),{labels:t,tickCount:o,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:o,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var n=void 0,o=parseInt(e/i,10),r=null,a=parseInt(t/o,10);return a>1&&(n=t-a*o,n>=a&&(o+=parseInt(n/a,0),n%=a),r={blockCount:o,beforeRemainBlockCount:n,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,n=[],o=p["default"].divisors(t);if(o.forEach(function(i){var o=i/t*e;o>=v&&o<=T&&n.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===n.length){var r=_["default"].range(v,T,b);n=r.map(function(n){return i._makeAdjustingIntervalInfo(t,e,n)})}return n.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),n=null;return i.length&&(n=y["default"].max(i,function(t){return t.blockCount})),n},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,n){n&&(t.tickCount-=1,t.labels.pop());var o=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(o,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,c=0,h=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,c,u),s>0&&t.labels.push(h),_["default"].extend(t,{startIndex:c,tickCount:l,interval:u,positionRatio:c/o,sizeRatio:1-s/o,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var n=e.interval,o=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/n;a&&2*a<=s&&(n*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,o,n),s=t.labels.length-1;var u=r-n*s;_["default"].extend(t,{startIndex:o,interval:n,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:o/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var n=String(t).split(/\s+/),r=[],a=o(n,1),s=a[0];return n.slice(1).forEach(function(t){var n=d["default"].getRenderedLabelWidth(s+" "+t,i);n>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("
")},_createMultilineLabels:function(t,e,i){var n=this._createMultilineLabel;return t.map(function(t){return n(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return d["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,n,o){var r=o.series.width,a=this._calculateXAxisLabelAreaWidth(n,r,e),s=this._createMultilineLabels(t,i,r),u=this._calculateMultilineHeight(s,i,a),l=d["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-o.yAxis.width}},_findRotationDegree:function(t,e,i){var n=null;return a["default"].DEGREE_CANDIDATES.every(function(o){var r=c["default"].calculateRotatedWidth(o,e,i);return n=o,!(r<=t)}),n},_calculateRotatedWidth:function(t,e,i,n){var o=d["default"].getRenderedLabelWidth(e,n),r=c["default"].calculateRotatedWidth(t,o,i);return r-=c["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var n=t;return e&&(n+=i/2),n},makeAdditionalDataForRotatedLabels:function(t,e,i,n,o){var r=d["default"].getRenderedLabelsMaxWidth(t,i),s=o.series.width,u=o.yAxis.width+o.rightYAxis?o.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(n,s,e),h=null,p=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,n){i[t]=e[n]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var n=s(i,2),o=n[0],r=n[1];if(r.stackType){var a=e.findChartType(o);f["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],n=this.options.series||{},o=void 0;o=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var o=n[i]||n,r=o.stackType;e.dataProcessor.addDataRatios(t[i],r,i)},v["default"].forEachArray(i,o)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{ +isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=h["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(v["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=T},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,seriesTypes:p["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=c["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:n,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},p["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(335),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(464),c=n(l),h=i(335),p=n(h),f=function(t){function e(i,n,a){o(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=p["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new c["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,n=e.coordinate;i&&n&&t.push({type:i,coordinate:n})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),n={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],o=i(t.coordinate,n);return c["default"].extend(n,o),o})},t.prototype._findBoundFromCoordinates=function(t){var e=c["default"].pluck(t,"x").filter(function(t){return!c["default"].isUndefined(t)}),i=c["default"].pluck(t,"y").filter(function(t){return!c["default"].isUndefined(t)}),n=u["default"].max(e),o=u["default"].min(e),r=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:n-o,height:r-a},position:{left:o,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),n=e._findBoundFromCoordinates(i),o=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;o&&(s=o.label,u=o.ratio,r=o.name||t.name,a=o.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:n,labelPosition:e._makeLabelPosition(n,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),n=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return n.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),n=t.map(function(t){return t.bound.position.top}),o=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(o)-u["default"].min(n)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(429),u=n(s),l=i(334),c=n(l),h=i(333),p=n(h),f=function(t){function e(i,n,a){o(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var n={value:t.data,label:c["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(n.name=t.name),t.labelCoordinate&&(n.labelCoordinate=t.labelCoordinate),e[t.code]=n}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return p["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,n=Object.values(this.getValueMap());n.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=f},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(412),c=n(l),h=function(t){function e(i,n,a){o(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=c["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){o(this,e),c["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,n=this.chartType,o=i[n]||i,r=o.stackType;this.dataProcessor.addDataRatios(t[n],r,n)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(370),u=n(s),l=i(359),c=n(l),h=function(t){function e(i,n,a){o(this,e),c["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:n,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var o=i(335),r=n(o),a=i(361),s=n(a),u=i(362),l=n(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file diff --git a/dist/tui-chart.css b/dist/tui-chart.css index 56f4847a0..dcffb21b5 100755 --- a/dist/tui-chart.css +++ b/dist/tui-chart.css @@ -2,10 +2,10 @@ * tui-chart * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:43 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:44 GMT+0900 (KST)" */ .tui-chart { position: relative; diff --git a/dist/tui-chart.js b/dist/tui-chart.js index 9f1ab8dca..3909f6202 100755 --- a/dist/tui-chart.js +++ b/dist/tui-chart.js @@ -2,10 +2,10 @@ * tui-chart * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:43 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:44 GMT+0900 (KST)" */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') @@ -2696,6 +2696,7 @@ return /******/ (function(modules) { // webpackBootstrap beforeShowTooltip: true, afterShowTooltip: true, beforeHideTooltip: true, + changeCheckedLegends: true, zoom: true }, /** for radial */ @@ -7985,6 +7986,7 @@ return /******/ (function(modules) { // webpackBootstrap * RaphaelLineCharts is graph renderer for line chart. * @constructs RaphaelRadialLineSeries * @extends RaphaelLineTypeBase + * @ignore */ function RaphaelRadialLineSeries() { _classCallCheck(this, RaphaelRadialLineSeries); @@ -15366,6 +15368,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -15443,6 +15446,10 @@ return /******/ (function(modules) { // webpackBootstrap var _boundsAndScaleBuilder2 = _interopRequireDefault(_boundsAndScaleBuilder); + var _themeManager = __webpack_require__(35); + + var _themeManager2 = _interopRequireDefault(_themeManager); + var _predicate = __webpack_require__(16); var _predicate2 = _interopRequireDefault(_predicate); @@ -15477,6 +15484,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * theme * @type {object} + * @ignore */ this.theme = params.theme; @@ -15499,42 +15507,49 @@ return /******/ (function(modules) { // webpackBootstrap /** * whether chart has axes or not * @type {boolean} + * @ignore */ this.hasAxes = params.hasAxes; /** * whether vertical or not * @type {boolean} + * @ignore */ this.isVertical = !!params.isVertical; /** * data processor * @type {DataProcessor} + * @ignore */ this.dataProcessor = this._createDataProcessor(params); /** * event bus for transmitting message * @type {object} + * @ignore */ this.eventBus = new _tuiCodeSnippet2['default'].CustomEvents(); /** * previous xAxis data * @type {null|object} + * @ignore */ this.prevXAxisData = null; /** * component manager * @type {ComponentManager} + * @ignore */ this.componentManager = this._createComponentManager(); /** * Whether has right y axis or not. * @type {boolean} + * @ignore */ this.hasRightYAxis = _tuiCodeSnippet2['default'].isArray(this.options.yAxis) && this.options.yAxis.length > 1; @@ -15554,17 +15569,7 @@ return /******/ (function(modules) { // webpackBootstrap ChartBase.prototype._sendHostName = function _sendHostName() { - var _location = location, - hostname = _location.hostname; - - _tuiCodeSnippet2['default'].imagePing('https://www.google-analytics.com/collect', { - v: 1, - t: 'event', - tid: 'UA-115377265-9', - cid: hostname, - dp: hostname, - dh: 'chart' - }); + _tuiCodeSnippet2['default'].sendHostname('chart'); }; /** @@ -15741,6 +15746,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components. * @abstract + * @ignore */ @@ -15749,6 +15755,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Get scale option. * @abstract + * @ignore */ @@ -15815,6 +15822,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add data ratios. * @abstract + * @ignore */ @@ -15824,6 +15832,7 @@ return /******/ (function(modules) { // webpackBootstrap * Make chart ready for render, it should be invoked before render, rerender, resize and zoom. * @param {?boolean} addingDataMode - whether adding data mode or not * @returns {object} Bounds and scale data + * @ignore */ @@ -15842,6 +15851,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Render chart. * @param {HTMLElement} wrapper chart wrapper element + * @ignore */ @@ -15868,19 +15878,19 @@ return /******/ (function(modules) { // webpackBootstrap componentManager.render('render', boundsAndScale, { checkedLegends: seriesVisibilityMap }, container); - this.chartContainer = container; this.paper = raphaelPaper; }; /** - * Rerender. - * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * protectedRerender + * @param {{line: Array., column: Array.}} checkedLegends checked legends * @param {?object} rawData rawData + * @ignore */ - ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + ChartBase.prototype.protectedRerender = function protectedRerender(checkedLegends, rawData) { var dataProcessor = this.dataProcessor; @@ -15895,20 +15905,125 @@ return /******/ (function(modules) { // webpackBootstrap this.componentManager.render('rerender', boundsAndScale, { checkedLegends: checkedLegends }, this.chartContainer); }; + /** + * rerender + * @param {{column: Array., line: Array.}} checkedLegends data that whether series has checked or not + * @param {object} rawData rawData + * @api + * @deprecated + */ + + + ChartBase.prototype.rerender = function rerender(checkedLegends, rawData) { + checkedLegends = checkedLegends || this.getCheckedLegend(); + rawData = rawData || this.dataProcessor.getOriginalRawData(); + + var seriesData = rawData.series; + + rawData.series = Object.keys(seriesData).reduce(function (result, item) { + var series = seriesData[item]; + var checkedInfo = checkedLegends[item]; + + result[item] = series.map(function (seriesItem, index) { + seriesItem.visible = checkedInfo[index]; + + return seriesItem; + }); + + return result; + }, {}); + + this.setData(rawData); + }; + + /** + * setData + * @param {object} rawData rawData + * @api + */ + + + ChartBase.prototype.setData = function setData() { + var rawData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + var data = this._initializeRawData(rawData); + var dataProcessor = this.dataProcessor; + var _options = this.options, + chartType = _options.chartType, + themeOptions = _options.theme; + + + dataProcessor.initData(data, true); + + var theme = _themeManager2['default'].get(themeOptions, chartType, data.series); + + this.theme = theme; + this.componentManager.presetForChangeData(theme); + this.protectedRerender(dataProcessor.getLegendVisibility()); + }; + + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @api + */ + + + ChartBase.prototype.getCheckedLegend = function getCheckedLegend() { + var componentManager = this.componentManager, + dataProcessor = this.dataProcessor; + + var hasLegendComponent = componentManager.has('legend'); + + return hasLegendComponent ? componentManager.get('legend').getCheckedIndexes() : dataProcessor.getLegendVisibility(); + }; + + /** + * initialize rawData + * @param {object} rawData rawData + * @returns {object} - remaked rawData + * @private + */ + + + ChartBase.prototype._initializeRawData = function _initializeRawData(rawData) { + var data = _objectUtil2['default'].deepCopy(rawData); + var _options2 = this.options, + chartType = _options2.chartType, + seriesOption = _options2.series; + + + if (chartType !== 'combo' && _tuiCodeSnippet2['default'].isArray(data.series)) { + var clonedSeries = data.series; + data.series = {}; + data.series[chartType] = clonedSeries; + } + + _rawDataHandler2['default'].updateRawSeriesDataByOptions(data, seriesOption); + + if (chartType === 'boxplot') { + _rawDataHandler2['default'].appendOutliersToSeriesData(data); + } + + return data; + }; + /** * On change checked legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds + * @ignore */ ChartBase.prototype.onChangeCheckedLegends = function onChangeCheckedLegends(checkedLegends, rawData, boundsParams) { - this.rerender(checkedLegends, rawData, boundsParams); + this.protectedRerender(checkedLegends, rawData, boundsParams); }; /** * Animate chart. + * @ignore */ @@ -15920,6 +16035,7 @@ return /******/ (function(modules) { // webpackBootstrap * Register of user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -15933,6 +16049,7 @@ return /******/ (function(modules) { // webpackBootstrap * Remove user event. * @param {string} eventName event name * @param {function} func event callback + * @ignore */ @@ -16195,6 +16312,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} index - category index * @param {number} seriesIndex - series index * @returns {object} + * @private */ @@ -16553,14 +16671,13 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} name component name * @param {string} classType component factory name * @param {object} [params={}] optional params that for alternative charts + * @ignore */ ComponentManager.prototype.register = function register(name, classType) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var optionKey = void 0; - var index = params.index || 0; var componentFactory = COMPONENT_FACTORY_MAP[classType]; var componentType = componentFactory.componentType; @@ -16571,33 +16688,78 @@ return /******/ (function(modules) { // webpackBootstrap params.chartOptions = this.options; params.seriesTypes = this.seriesTypes; - if (componentType === 'axis') { - // Get theme and options by axis name - // As axis has 3 types(xAxis, yAxis, rightYAxis) - optionKey = name; - } else { - optionKey = componentType; - } + var optionKey = this._getOptionKey(componentType, name); - params.theme = this.theme[optionKey]; - params.options = this.options[optionKey]; + params.theme = this._makeTheme(optionKey, name); + params.options = this._makeOptions(optionKey, name, index); - if (!params.theme && optionKey === 'rightYAxis') { - params.theme = this.theme.yAxis; + params.dataProcessor = this.dataProcessor; + params.hasAxes = this.hasAxes; + params.isVertical = this.isVertical; + params.eventBus = this.eventBus; + + // alternative scale models for charts that do not use common scale models like maps + params.alternativeModel = this.alternativeModel; + + var component = componentFactory(params); + + // component creation can be refused by factory, according to option data + if (component) { + component.componentName = name; + component.componentType = componentType; + + this.components.push(component); + this.componentMap[name] = component; } + }; + + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ - if (!params.options && optionKey === 'rightYAxis') { - params.options = this.options.yAxis; + + ComponentManager.prototype.presetForChangeData = function presetForChangeData(theme) { + var _this = this; + + this.theme = theme; + this.components.forEach(function (component) { + if (component.presetForChangeData) { + var componentType = component.componentType, + componentName = component.componentName; + + var optionKey = _this._getOptionKey(componentType, componentName); + + component.presetForChangeData(_this._makeTheme(optionKey, componentName)); + } + }); + }; + + /** + * Make option + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @param {number} index index of chart for series option + * @returns {object} option + * @private + */ + + + ComponentManager.prototype._makeOptions = function _makeOptions(optionKey, name, index) { + var options = this.options[optionKey]; + + if (!options && optionKey === 'rightYAxis') { + options = this.options.yAxis; } if (optionKey === 'series') { this.seriesTypes.forEach(function (seriesType) { if (name.indexOf(seriesType) === 0) { - params.options = params.options[seriesType] || params.options; // For combo chart, options are set for each chart - params.theme = params.theme[seriesType]; // For combo, single chart, themes are set for each chart + options = options[seriesType] || options; // For combo chart, options are set for each chart - if (_tuiCodeSnippet2['default'].isArray(params.options)) { - params.options = params.options[index] || {}; + if (_tuiCodeSnippet2['default'].isArray(options)) { + options = options[index] || {}; } return false; @@ -16607,24 +16769,51 @@ return /******/ (function(modules) { // webpackBootstrap }); } - params.dataProcessor = this.dataProcessor; - params.hasAxes = this.hasAxes; - params.isVertical = this.isVertical; - params.eventBus = this.eventBus; + return options; + }; - // alternative scale models for charts that do not use common scale models like maps - params.alternativeModel = this.alternativeModel; + /** + * Make option key + * @param {string} type type of component + * @param {name} name name of component + * @returns {string} optionKey Key on which to create the option. + * @private + */ - var component = componentFactory(params); - // component creation can be refused by factory, according to option data - if (component) { - component.componentName = name; - component.componentType = componentType; + ComponentManager.prototype._getOptionKey = function _getOptionKey(type, name) { + return type === 'axis' ? name : type; + }; - this.components.push(component); - this.componentMap[name] = component; + /** + * Make theme + * @param {string} optionKey Key on which to create the option. + * @param {string} name name of component + * @returns {object} theme + * @private + */ + + + ComponentManager.prototype._makeTheme = function _makeTheme(optionKey, name) { + var theme = this.theme[optionKey]; + + if (!theme && optionKey === 'rightYAxis') { + theme = this.theme.yAxis; } + + if (optionKey === 'series') { + this.seriesTypes.forEach(function (seriesType) { + if (name.indexOf(seriesType) === 0) { + theme = theme[seriesType]; // For combo, single chart, themes are set for each chart + + return false; + } + + return true; + }); + } + + return theme; }; /** @@ -16680,7 +16869,7 @@ return /******/ (function(modules) { // webpackBootstrap ComponentManager.prototype.render = function render(funcName, boundsAndScale, additionalData, container) { - var _this = this; + var _this2 = this; var elements = this.components.map(function (component) { var element = null; @@ -16688,8 +16877,8 @@ return /******/ (function(modules) { // webpackBootstrap if (component[funcName]) { var name = component.componentName; var type = component.componentType; - var paper = _this.drawingToolPicker.getPaper(container, component.drawingType); - var data = _this._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); + var paper = _this2.drawingToolPicker.getPaper(container, component.drawingType); + var data = _this2._makeDataForRendering(name, type, paper, boundsAndScale, additionalData); var result = component[funcName](data); @@ -17678,6 +17867,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function Plot(params) { _classCallCheck(this, Plot); @@ -17742,6 +17932,19 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Plot.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + }; + /** * Render plot area. * @param {object} paper paper object @@ -18607,6 +18810,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} params.theme title theme * @param {object} params.options title options * @param {object} params.text title text content + * @ignore */ function Title(params) { _classCallCheck(this, Title); @@ -18807,6 +19011,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {number} params.vTickCount vertical tick count * @param {number} params.hTickCount horizontal tick count * @param {object} params.theme axis theme + * @ignore */ function RadialPlot(params) { _classCallCheck(this, RadialPlot); @@ -20789,6 +20994,27 @@ return /******/ (function(modules) { // webpackBootstrap this.drawingType = _const2['default'].COMPONENT_TYPE_RAPHAEL; } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Legend.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + + this.legendModel = new _legendModel2['default']({ + theme: this.theme, + labels: this.dataProcessor.getLegendLabels(), + legendData: this.dataProcessor.getLegendData(), + seriesTypes: this.seriesTypes, + chartType: this.chartType + }); + }; + /** * Set data for rendering. * @param {{ @@ -20827,7 +21053,6 @@ return /******/ (function(modules) { // webpackBootstrap Legend.prototype.render = function render(data) { this._render(data); - this._listenEvents(); }; @@ -20950,6 +21175,16 @@ return /******/ (function(modules) { // webpackBootstrap this.eventBus.fire('changeCheckedLegends', this.legendModel.getCheckedIndexes()); }; + /** + * Fire changeCheckedLegends public event. + * @private + */ + + + Legend.prototype._fireChangeCheckedLegendsPublicEvent = function _fireChangeCheckedLegendsPublicEvent() { + this.eventBus.fire(PUBLIC_EVENT_PREFIX + 'changeCheckedLegends', this.legendModel.getCheckedIndexes()); + }; + /** * Fire selectLegend event. * @param {{chartType: string, index: number}} data data @@ -21026,6 +21261,17 @@ return /******/ (function(modules) { // webpackBootstrap return checkedIndexes; }; + /** + * Get checked indexes. + * @returns {{column: ?Array., line: ?Array.}} object data that whether series has checked or not + * @ignore + */ + + + Legend.prototype.getCheckedIndexes = function getCheckedIndexes() { + return this.legendModel.getCheckedIndexes(); + }; + /** * Check legend. * @private @@ -21040,6 +21286,7 @@ return /******/ (function(modules) { // webpackBootstrap } this._fireChangeCheckedLegendsEvent(); + this._fireChangeCheckedLegendsPublicEvent(); if (selectedData) { this._fireSelectLegendEvent(selectedData); @@ -21468,10 +21715,14 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype._addSendingDatum = function _addSendingDatum(index) { var legendDatum = this.getDatum(index); - if (!this.checkedIndexesMap[legendDatum.chartType]) { - this.checkedIndexesMap[legendDatum.chartType] = []; + var chartType = legendDatum.chartType, + chartIndex = legendDatum.index; + + + if (!this.checkedIndexesMap[chartType]) { + this.checkedIndexesMap[chartType] = new Array(this.labels[chartType].length).fill(false); } - this.checkedIndexesMap[legendDatum.chartType][legendDatum.index] = true; + this.checkedIndexesMap[chartType][chartIndex] = true; }; /** @@ -21492,7 +21743,15 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.getCheckedIndexes = function getCheckedIndexes() { - return this.checkedIndexesMap; + var _this3 = this; + + return Object.keys(this.checkedIndexesMap).reduce(function (booleanizeObject, chartType) { + booleanizeObject[chartType] = Array.from(_this3.checkedIndexesMap[chartType], function (checked) { + return !!checked; + }); + + return booleanizeObject; + }, {}); }; /** @@ -21513,12 +21772,12 @@ return /******/ (function(modules) { // webpackBootstrap LegendModel.prototype.updateCheckedLegendsWith = function updateCheckedLegendsWith(indexes) { - var _this3 = this; + var _this4 = this; this._resetCheckedData(); indexes.forEach(function (index) { - _this3._updateCheckedIndex(index); - _this3._addSendingDatum(index); + _this4._updateCheckedIndex(index); + _this4._addSendingDatum(index); }); this._setData(); }; @@ -22877,6 +23136,20 @@ return /******/ (function(modules) { // webpackBootstrap this._attachToEventBus(); } + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + TooltipBase.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.theme; + + this.theme = theme; + this.originalTheme = _objectUtil2['default'].deepCopy(theme); + }; + /** * Attach to event bus. * @private @@ -28964,7 +29237,6 @@ return /******/ (function(modules) { // webpackBootstrap * Theme * @type {object} */ - this.orgTheme = this.theme = params.theme; /** @@ -29087,6 +29359,23 @@ return /******/ (function(modules) { // webpackBootstrap return decorateFunc(targetLabel, labelPrefix, labelSuffix); }; + /** + * Preset components for setData + * @param {object} theme theme object + * @ignore + */ + + + Series.prototype.presetForChangeData = function presetForChangeData() { + var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.orgTheme; + + this.orgTheme = theme; + this.theme = theme; + if (this.chartType === 'treemap') { + this.boundMap = null; + } + }; + /** * Attach to event bus. * @private @@ -35902,16 +36191,24 @@ return /******/ (function(modules) { // webpackBootstrap /** * Initialize data. * @param {rawData} rawData raw data + * @param {boolean} originalChange whether the original has changed */ DataProcessor.prototype.initData = function initData(rawData) { + var originalChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + /** * raw data * @type {rawData} */ this.rawData = rawData; + if (originalChange) { + this.originalRawData = _objectUtil2['default'].deepCopy(rawData); + this.originalLegendData = null; + } + /** * categoriesMap * @type {null|object} @@ -35936,6 +36233,18 @@ return /******/ (function(modules) { // webpackBootstrap */ this.seriesDataModelMap = {}; + /** + * legendVisiblities + * @type {{column: Array., line: Array. | Array.}} + */ + this.legendVisibilities = null; + + /** + * zoomed raw data + * @type {object} zoomed raw data + */ + this.zoomedRawData = null; + /** * SeriesGroups * @type {Array.} @@ -37664,6 +37973,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {object} options - options * @param {Array.} formatFunctions - format functions * @param {boolean} isCoordinateType - whether coordinate type or not + * @private */ function SeriesDataModel(rawSeriesData, chartType, options, formatFunctions, isCoordinateType) { _classCallCheck(this, SeriesDataModel); @@ -39308,6 +39618,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {string} chartType - chart type * @param {object} options - options * @param {Array.} formatFunctions - format functions + * @private */ function SeriesDataModelForBoxplot(rawSeriesData, chartType, options, formatFunctions) { _classCallCheck(this, SeriesDataModelForBoxplot); @@ -44572,6 +44883,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -45011,7 +45323,7 @@ return /******/ (function(modules) { // webpackBootstrap } this.checkedLegends = checkedLegends; - chart.rerender(checkedLegends, rawData, boundsParams); + chart.protectedRerender(checkedLegends, rawData, boundsParams); if (!pastPaused) { setTimeout(function () { @@ -45170,6 +45482,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _areaChartSeries2['default']; @@ -45181,6 +45494,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -45194,6 +45508,7 @@ return /******/ (function(modules) { // webpackBootstrap * @param {?object} rawData rawData * @param {?object} boundsParams addition params for calculating bounds * @override + * @ignore */ @@ -45206,6 +45521,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data ratios. * from axisTypeMixer * @override + * @ignore */ @@ -45235,6 +45551,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Add components * @override + * @ignore */ @@ -45258,6 +45575,7 @@ return /******/ (function(modules) { // webpackBootstrap * from lineTypeMixer * @returns {{xAxis: ?{valueType:string}, yAxis: ?(boolean|{valueType:string})}} * @override + * @ignore */ @@ -45345,6 +45663,7 @@ return /******/ (function(modules) { // webpackBootstrap * nnfrom chart/zoomMixer * @param {Array.} indexRange - index range for zoom * @override + * @ignore */ @@ -45358,6 +45677,7 @@ return /******/ (function(modules) { // webpackBootstrap * On reset zoom. * from chart/zoomMixer * @override + * @ignore */ @@ -45481,6 +45801,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -45495,7 +45816,7 @@ return /******/ (function(modules) { // webpackBootstrap this.chartTypes = typeData.chartTypes; this.seriesTypes = typeData.seriesTypes; - this.rerender(checkedLegends, rawData, typeData); + this.protectedRerender(checkedLegends, rawData, typeData); }; /** @@ -45933,6 +46254,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * yAxis options * @type {object} + * @ignore */ var _this = _possibleConstructorReturn(this, _ChartBase.call(this, { rawData: rawData, @@ -45959,6 +46281,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ @@ -46076,6 +46399,7 @@ return /******/ (function(modules) { // webpackBootstrap * Add data. * @param {string} category - category * @param {Array} values - values + * @api */ @@ -47528,6 +47852,7 @@ return /******/ (function(modules) { // webpackBootstrap * @constructs MapChartMapModel * @param {MapChartDataProcessor} dataProcessor Map chart data processor * @param {Array.<{name: string, path: string, labelCoordinate: ?{x: number, y:number}}>} rawMapData raw map data + * @ignore */ function MapChartMapModel(dataProcessor, rawMapData) { _classCallCheck(this, MapChartMapModel); @@ -48245,6 +48570,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * Series class * @type {function} + * @ignore */ _this.Series = _lineChartSeries2['default']; return _this; @@ -48394,6 +48720,7 @@ return /******/ (function(modules) { // webpackBootstrap /** * On change selected legend. * @param {Array. | {line: ?Array., column: ?Array.}} checkedLegends checked legends + * @ignore */ diff --git a/dist/tui-chart.min.css b/dist/tui-chart.min.css index 0404f3413..cbc8e89c5 100755 --- a/dist/tui-chart.min.css +++ b/dist/tui-chart.min.css @@ -2,9 +2,9 @@ * tui-chart.min * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:56 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:53 GMT+0900 (KST)" */ .tui-chart{position:relative;font-family:Arial;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart,.tui-chart *{box-sizing:border-box}.tui-chart svg line,.tui-chart svg path,.tui-chart svg rect{shape-rendering:crispEdges}.tui-chart svg .auto-shape-rendering{shape-rendering:auto}.tui-chart .tui-chart-icon{background-color:"#f4f4f4"}.tui-chart .tui-chart-icon:hover{background-color:"#eee"}.tui-chart .tui-chart-icon:active{background-color:"#e5e5e5"}.tui-chart .tui-chart-title{position:absolute;top:0;left:0;width:100%;text-align:center;padding:10px 0;z-index:350}.tui-chart .tui-chart-axis-area{z-index:300;position:absolute}.tui-chart .tui-chart-axis-area *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-axis-area .tui-chart-title-area{position:absolute}.tui-chart .tui-chart-axis-area .tui-chart-label-area,.tui-chart .tui-chart-axis-area .tui-chart-tick-area{position:absolute;top:0;width:100%;height:100%}.tui-chart .tui-chart-axis-area .tui-chart-tick-area .tui-chart-tick{position:absolute;background-color:#000}.tui-chart .tui-chart-axis-area .tui-chart-label-area .tui-chart-label{position:absolute}.tui-chart .tui-chart-axis-area .tui-chart-label-area .tui-chart-label>span{line-height:1.2}.tui-chart .tui-chart-axis-area.vertical{top:10px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area{text-align:center;white-space:nowrap;top:0}.tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area.rotation{transform-origin:top left;transform:rotate(-90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area{right:0}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area .tui-chart-tick{right:1px;width:5px;height:1px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-tick-area .tui-chart-tick-line{left:auto;right:0;width:1px;background-color:#000;position:absolute}.tui-chart .tui-chart-axis-area.vertical .tui-chart-label-area{right:10px}.tui-chart .tui-chart-axis-area.vertical .tui-chart-label-area .tui-chart-label{left:0;width:100%;text-align:right;white-space:nowrap}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-title-area{text-align:center;white-space:nowrap;top:0}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-title-area.rotation{transform-origin:top left;transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-label-area,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area{left:0}.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-label-area .tui-chart-label{text-align:left;padding-right:0;padding-left:10px}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-title-area{width:100%!important;transform:rotate(0deg);filter:none;top:auto}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-label-area{left:0;width:100%!important}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-label-area .tui-chart-label{text-align:center}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area{border-right:none}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side .tui-chart-tick,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area .tui-chart-tick{left:1px}.tui-chart .tui-chart-axis-area.vertical.center .tui-chart-tick-area.opposite-side .tui-chart-tick-line,.tui-chart .tui-chart-axis-area.vertical.right .tui-chart-tick-area .tui-chart-tick-line{right:auto;left:0}.tui-chart .tui-chart-axis-area.horizontal{right:10px}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-title-area{bottom:0;width:100%;text-align:center}.tui-chart .tui-chart-axis-area.horizontal.division .tui-chart-title-area{left:0;width:auto}.tui-chart .tui-chart-axis-area.horizontal.division .tui-chart-title-area.right{left:auto;right:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area,.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area{left:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-tick-line{top:0;height:1px;background-color:#000;position:absolute}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-ticks{width:100%;position:absolute;left:0;top:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-tick-area .tui-chart-tick{top:0;width:1px;height:6px}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label{top:10px;text-align:center;word-wrap:break-word;word-break:keep-all}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation{text-align:right;white-space:nowrap}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation span{position:absolute;right:0;top:0}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation25{transform:rotate(-25deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation25 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation45{transform:rotate(-45deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation45 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation65{transform:rotate(-65deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation65 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)"}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation85{transform:rotate(-85deg)}.tui-chart .tui-chart-axis-area.horizontal .tui-chart-label-area .tui-chart-label.tui-chart-xaxis-rotation85 span{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)"}.tui-chart .tui-chart-plot-area{position:absolute;right:10px;top:10px;z-index:-100}.tui-chart .tui-chart-plot-area .tui-chart-plot-optional-lines-area{left:0;top:0;width:100%;height:100%;position:absolute}.tui-chart .tui-chart-plot-area .tui-chart-plot-lines-area{width:100%;height:100%;position:relative}.tui-chart .tui-chart-plot-area .tui-chart-plot-line{background-color:#ccc;position:absolute}.tui-chart .tui-chart-plot-area .tui-chart-plot-line.vertical{top:0;width:1px}.tui-chart .tui-chart-plot-area .tui-chart-plot-line.horizontal{left:0;height:1px}.tui-chart .tui-chart-series-area{z-index:200;position:absolute;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-series-area:first-child{overflow:visible}.tui-chart .tui-chart-series-area .tui-chart-series-block-area{position:absolute;left:10px;top:10px}.tui-chart .tui-chart-series-area .tui-chart-series-block-area .tui-chart-series-block{position:absolute}.tui-chart .tui-chart-series-area .tui-chart-series-label-area{position:absolute;overflow:visible;left:0;top:0;display:none;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);opacity:0}.tui-chart .tui-chart-series-area .tui-chart-series-label-area .tui-chart-series-label{position:absolute;cursor:default;text-align:center;white-space:nowrap;text-shadow:#fff 0 0 3px}.tui-chart .tui-chart-series-area .tui-chart-series-label-area.show{display:block}.tui-chart .tui-chart-series-area .tui-chart-series-label-area.opacity{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.tui-chart .tui-chart-series-area .tui-chart-series-graph-area{position:absolute;left:0;top:0}.tui-chart .tui-chart-zoom-area{z-index:1500;position:absolute;border-radius:1px;background-clip:padding-box}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn{width:24px;height:24px;display:block;background-color:#f4f4f4;border-radius:1px;cursor:pointer;margin-top:5px}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEX19fX19fVVVVX09PSSNEQ7AAAAAnRSTlO0tU0x4YcAAABCSURBVAjXY6hh+AOGb4D4/weGXx9AJBwhuP//Q/BvKIbx//9FYgPxeyheBaX/Y2A81L/9YGrVKmQelMKioR5E/gEA8IGRuVetr4kAAAAASUVORK5CYII=)}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-in:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXu7u7u7u5VVVXu7u6LRCi7AAAAAnRSTlO0tU0x4YcAAABCSURBVAjXY6hh+AOGb4D4/weGXx9AJBwhuP//Q/BvKIbx//9FYgPxeyheBaX/Y2A81L/9YGrVKmQelMKioR5E/gEA8IGRuVetr4kAAAAASUVORK5CYII=)}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-in:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXm5ubm5uZVVVXl5eUH/eecAAAAAnRSTlO0tU0x4YcAAABCSURBVAjXY6hh+AOGb4D4/weGXx9AJBwhuP//Q/BvKIbx//9FYgPxeyheBaX/Y2A81L/9YGrVKmQelMKioR5E/gEA8IGRuVetr4kAAAAASUVORK5CYII=)}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEX19fX19fVVVVX09PSSNEQ7AAAAAnRSTlO0tU0x4YcAAAAuSURBVAjXY6hh+AOH/z8w/PoAIuEIwf3/Hwf+i118FS71/wlTq1YRp7IeRP4BADPMksSlXC3ZAAAAAElFTkSuQmCC)}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-out:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXu7u7u7u5VVVXu7u6LRCi7AAAAAnRSTlO0tU0x4YcAAAAuSURBVAjXY6hh+AOH/z8w/PoAIuEIwf3/Hwf+i118FS71/wlTq1YRp7IeRP4BADPMksSlXC3ZAAAAAElFTkSuQmCC)}.tui-chart .tui-chart-zoom-area>.tui-chart-zoom-btn.zoom-out:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXm5ubm5uZVVVXl5eUH/eecAAAAAnRSTlO0tU0x4YcAAAAuSURBVAjXY6hh+AOH/z8w/PoAIuEIwf3/Hwf+i118FS71/wlTq1YRp7IeRP4BADPMksSlXC3ZAAAAAElFTkSuQmCC)}.tui-chart .tui-chart-series-custom-event-area{z-index:1000;position:absolute;left:0;top:0}.tui-chart .tui-chart-series-custom-event-area.hide{display:none}.tui-chart .tui-chart-series-custom-event-area.drag{cursor:move}.tui-chart .tui-chart-series-custom-event-area .tui-chart-drag-selection{top:10px;height:100%;background-color:gray;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3;position:absolute;display:none}.tui-chart .tui-chart-series-custom-event-area .tui-chart-drag-selection.show{display:block}.tui-chart .tui-chart-series-custom-event-area .tui-chart-reset-zoom-btn{position:absolute;left:20px;top:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAAGXcA1uAAAAAXNSR0IArs4c6QAAAclJREFUSA21VT2LAjEQnZUFwZ9haWWvtcVhJwpiZSdY+AMEOxs7C8FCsBfERq/QVntbC/0B1iooQs43XkKym+wROAObTN7Mm49kltD1el1dLheBLyWE+JrP54QRAGEpukkBbTabrHSbsfp3YgpkSZOrQdcZToVypVtDVgr4lv4NxXQ6ZdJkMuGVZOG9Xo8PQO6dwZ2Kt7/4rJKKq+xIjKBXstlsaDAYGMwYAVoYYuRyOToejyzL6fM1eEUIguDbi4A6rEXLAm2rNyGMetHvoVwuU6VSMU1k82BFQy0WC9VU1WpVydLOSOl0OlGhUGCPsj31iKyQTKzb7VbU63VxPp/Zc6PREIfDwYgSO9b9fk/j8Zg/M/n3LkawGemYUYOucMneBO+UXJFduHdGLkcu/OMBYq1qywRXv16vCY2Gkc1mqVQqUT6ft5kbWOIdwPFwOKQwDKlWq6ku3u12NJvN6Pl8UqfTSQyUGKDVatH9fqfRaESZTMbI7Ha7UbvdpnQ67WxqEBLvAEeBgYz18Xg8qN/vM4QEut0uAbONxApAwLO6XC4VV75FAF7/MuPFYlHpo8KfAaIE333iEfk6s9l/PgCeElvk/8Bevlc/uNwgcfw7KQUAAAAASUVORK5CYII=);border-radius:1px;font-size:11px;width:24px;height:24px;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-series-custom-event-area .tui-chart-reset-zoom-btn:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAAGgrv1cAAAAM1BMVEXu7u7u7u5VVVVZWVlbW1tcXFxubm59fX2Ojo6enp6rq6u0tLTAwMDU1NTk5OTo6Oju7u5AkNcdAAAAAnRSTlO0tU0x4YcAAACCSURBVCjPtY/BDoQgDERhsCKI+P7/az0IJuqa9bBLQuibmbbBeXAkHLSro94fNeUkdk87acJBvEWeQJCPtDLL8L2nHf8u1kZLqUPMoA5WmaQGJVSGpfcUezX6I/zKKNEslptRFHKtOahcDFMFqLKLEZWBdZTG9bwjSQLm+Q//8A/6BjkPISqrVth/AAAAAElFTkSuQmCC)}.tui-chart .tui-chart-series-custom-event-area .tui-chart-reset-zoom-btn:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAAGgrv1cAAAAM1BMVEXm5ubm5uZVVVVYWFhaWlpcXFxsbGx6enqLi4uampqmpqaurq66urrNzc3c3Nzg4ODl5eUljSS/AAAAAnRSTlO0tU0x4YcAAACCSURBVCjPtY/BDoQgDERhsCKI+P7/az0IJuqa9bBLQuibmbbBeXAkHLSro94fNeUkdk87acJBvEWeQJCPtDLL8L2nHf8u1kZLqUPMoA5WmaQGJVSGpfcUezX6I/zKKNEslptRFHKtOahcDFMFqLKLEZWBdZTG9bwjSQLm+Q//8A/6BjkPISqrVth/AAAAAElFTkSuQmCC)}.tui-chart .tui-chart-legend-rect{margin-top:2px;width:10px;height:10px}.tui-chart .tui-chart-legend-rect.line{padding:3px 0}.tui-chart .tui-chart-chartExportMenu-area{position:absolute;font-family:Verdana;margin:0;z-index:1001}.tui-chart .tui-chart-chartExportMenu-area .tui-chart-chartExportMenu-button{position:absolute;width:24px;height:24px;right:0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEX19fX19fVVVVX09PSSNEQ7AAAAAnRSTlO0tU0x4YcAAAAwSURBVAjXY6hh+AOGb4Dw/weGfx9AJBb0/z8O/BeV/x4HjcDYqH/7ieUhU/Ug8g8ALeuSuXF73FYAAAAASUVORK5CYII=);background-color:#f4f4f4;border:0;font-size:12px;padding:3px 5px;margin:0;cursor:pointer}.tui-chart .tui-chart-chartExportMenu-area .tui-chart-chartExportMenu-button:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXu7u7u7u5VVVXu7u6LRCi7AAAAAnRSTlO0tU0x4YcAAAAwSURBVAjXY6hh+AOGb4Dw/weGfx9AJBb0/z8O/BeV/x4HjcDYqH/7ieUhU/Ug8g8ALeuSuXF73FYAAAAASUVORK5CYII=)}.tui-chart .tui-chart-chartExportMenu-area .tui-chart-chartExportMenu-button:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAAHqHuX9AAAADFBMVEXm5ubm5uZVVVXl5eUH/eecAAAAAnRSTlO0tU0x4YcAAAAwSURBVAjXY6hh+AOGb4Dw/weGfx9AJBb0/z8O/BeV/x4HjcDYqH/7ieUhU/Ug8g8ALeuSuXF73FYAAAAASUVORK5CYII=)}.tui-chart .tui-chart-chartExportMenu-area.menu-opened .tui-chart-chartExportMenu-button{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAAGXcA1uAAAAAXNSR0IArs4c6QAAAU5JREFUSA3NVTuOhDAMNSMEDeICnI6CK1AhGqi4Apegmb0RHABBAULaxZl1FJPPDEisNlJix37Pjp0IYJ7n5zRN3zg9XLquAxwPsf4uwkMG5mEbBiM4SoZK01T6rAyrg4WScdQc4zgCThqSsZcHOGn4pERRRKqQ1uRWB6MrG5lbsTlVjYCVYMeGYRBSrQwjaQRn+N15fw2nMnie93WKcKno013SCEVRyM6qOhnlYyIDShOQ/MaisywT/rZtCSelRjhGr+taglHRakAjgo5AtOPQMrzM9tWYwQ63HMlFOH0kVzCT73QJpiAu2/9IsK6r8ZA2uwo2Pm0CLMsCVVVB3/eQJAnkeQ5xHIsvcNM00l6WJQRBQDQmP7pk/PBRQN/3Yds2lpBFPGxuvwNnBX/WIrxMU4/xAGEYHprCt84KOPTa7vY7eOCv5NrZ3rP22M8fyPG11kibO+MAAAAASUVORK5CYII=")}.tui-chart .tui-chart-chartExportMenu-area.menu-opened .tui-chart-chartExportMenu-button:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAFlXhBdAAAAIVBMVEXu7u7u7u5VVVVZWVlvb2+hoaHV1dXh4eHn5+fo6Oju7u75trgQAAAAAnRSTlO0tU0x4YcAAABlSURBVBjTY5BawLA0AIRWLYChVasYVi1aBaFhuByI06A0RAyFKkqqQqJWoStZiE0QRHktAVMuLmBqsRUyDyqHVR8CEOCsBCMIZ4WT+3InT5jMcicj91XYOKjKgLpXELBHCsFeAACm5rR2c72cZwAAAABJRU5ErkJggg==)}.tui-chart .tui-chart-chartExportMenu-area.menu-opened .tui-chart-chartExportMenu-button:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAFlXhBdAAAAIVBMVEXm5ubm5uZVVVVZWVltbW2dnZ3Ozs7Z2dnf39/g4ODl5eV33AFxAAAAAnRSTlO0tU0x4YcAAABlSURBVBjTY5BawLA0AIRWLYChVasYVi1aBaFhuByI06A0RAyFKkqqQqJWoStZiE0QRHktAVMuLmBqsRUyDyqHVR8CEOCsBCMIZ4WT+3InT5jMcicj91XYOKjKgLpXELBHCsFeAACm5rR2c72cZwAAAABJRU5ErkJggg==)}.tui-chart .tui-chart-chartExportMenu-area ul{display:none;position:absolute;top:28px;right:0;width:150px;background:#fff;border:1px solid #bab9ba;font-size:11px;padding:0;margin:0}.tui-chart .tui-chart-chartExportMenu-area ul>li{margin:0;border-collapse:collapse;text-align:center;list-style-type:none}.tui-chart .tui-chart-chartExportMenu-area ul>li.tui-chart-chartExportMenu-head{padding:10px;text-align:left;background-color:#f3f3f3;margin:1px 1px 0 0}.tui-chart .tui-chart-chartExportMenu-area ul>li.tui-chart-chartExportMenu-body{display:inline-block;width:100%;padding:7px 0}.tui-chart .tui-chart-chartExportMenu-area ul>li.tui-chart-chartExportMenu-body>li{padding:12px 3px;line-height:1;cursor:pointer;width:50%;float:left}.tui-chart .tui-chart-chartExportMenu-area ul>li.tui-chart-chartExportMenu-body>li:hover{font-weight:700}.tui-chart .tui-chart-legend-area{z-index:400;position:absolute;padding:10px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-legend-area .tui-chart-legend{clear:both}.tui-chart .tui-chart-legend-area .tui-chart-legend>div{float:left}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-checkbox-area{width:20px;height:20px;position:relative;box-sizing:border-box}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-checkbox-area input{left:2px;top:2px;*left:-2px;*top:-2px;position:absolute;padding:0;margin:0}.tui-chart .tui-chart-legend-area .tui-chart-legend .tui-chart-legend-label{padding:2px 0 2px 4px;cursor:pointer;box-sizing:content-box;line-height:1}.tui-chart .tui-chart-legend-area .tui-chart-legend.unselected .tui-chart-legend-label,.tui-chart .tui-chart-legend-area .tui-chart-legend.unselected .tui-chart-legend-rect{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area{position:absolute;left:10px;top:10px}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area .tui-chart-map-legend-tick{width:15px;height:1px;background-color:#ccc;position:absolute;left:0}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area .tui-chart-map-legend-tick-label{position:absolute;left:30px;text-align:left}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area.horizontal .tui-chart-map-legend-tick{top:0;width:1px;height:15px}.tui-chart .tui-chart-legend-area .tui-chart-legend-tick-area.horizontal .tui-chart-map-legend-tick-label{top:30px}.tui-chart .tui-chart-legend-area .tui-chart-map-legend-wedge{position:absolute;width:19px;height:4px;border-left:2px solid #777;border-right:2px solid #777;left:8px;top:30px;display:none}.tui-chart .tui-chart-legend-area .tui-chart-map-legend-wedge.show{display:block}.tui-chart .tui-chart-legend-area.horizontal{padding-left:0;padding-right:0}.tui-chart .tui-chart-legend-area.horizontal .tui-chart-legend{clear:none;float:left;white-space:nowrap}.tui-chart .tui-chart-circle-legend-area{position:absolute;z-index:400}.tui-chart .tui-chart-circle-legend-area .tui-chart-circle-legend-label-area{position:absolute;left:0;top:0}.tui-chart .tui-chart-circle-legend-area .tui-chart-circle-legend-label-area .tui-chart-circle-legend-label{position:absolute;font-size:9px;white-space:nowrap;text-shadow:#fff 0 0 3px}.tui-chart .tui-chart-tooltip-area{position:absolute;z-index:501}.tui-chart .tui-chart-tooltip-area *{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip{z-index:100;position:absolute;display:none;user-select:none;font-size:12px;font-weight:400;color:#fff}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip.show{display:block}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip{border-radius:3px;background-clip:padding-box;background-color:#5f5f5f;background-color:rgba(85,85,85,.95)}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>*{text-align:left;white-space:nowrap}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-head{padding:8px 15px;border-bottom:1px solid #565656;font-size:13px;font-weight:700;border-bottom:1px solid #000;border-bottom:1px solid rgba(0,0,0,.1)}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>table{width:100%;border-spacing:0;border-collapse:separate}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>table tr{padding-bottom:5px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-body{border-bottom:1px solid #000;border-bottom:1px solid rgba(0,0,0,.1);padding:11px 15px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-body span{display:inline-block;height:10px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-body span.tui-chart-legend-rect{width:10px;margin-right:8px;vertical-align:text-top}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-body span.tui-chart-legend-rect.line{padding:0}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip>.tui-chart-tooltip-body .tui-chart-tooltip-value{padding-left:44px;text-align:right}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>*{text-align:left;position:relative;padding-left:18px;padding-top:4px;padding-bottom:4px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>table{border-spacing:0;border-collapse:separate}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>table tr{padding-bottom:5px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>table tr:last-child{padding-bottom:0}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-body{padding:11px 15px;font-size:12px;font-weight:lighter}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-body>span{display:inline-block}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-body .tui-chart-tooltip-value{padding-left:44px;text-align:right}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip .tui-chart-legend-rect{position:relative;left:0;top:-2px;margin-right:5px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-head{padding:8px 15px;text-align:left}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip.tui-chart-group-tooltip>.tui-chart-tooltip-type{padding-left:7px}.tui-chart .tui-chart-tooltip-area .tui-chart-tooltip .tui-chart-default-tooltip .hide{display:none}.tui-chart .tui-chart-tooltip-area .tui-chart-group-tooltip-sector{z-index:50;position:absolute;background-color:#aaa;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3;display:none}.tui-chart .tui-chart-tooltip-area .tui-chart-group-tooltip-sector.show{display:block}.tui-chart.tui-map-chart .tui-chart-series-area{overflow:hidden}.tui-chart.tui-map-chart .tui-chart-tooltip-area .tui-chart-default-tooltip>:first-child{font-weight:400}.tui-chart.tui-treemap-chart .tui-chart-reset-zoom-btn{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAFlXhBdAAAAMFBMVEX19fX19fVVVVVbW1tgYGBkZGRvb2+CgoKNjY2QkJC4uLi5ubnZ2dnj4+Pu7u709PQ6Nl8lAAAAAnRSTlO0tU0x4YcAAABxSURBVBjTY5D/wPDtA8N/GPoEJP//Z/j/Ph5CI+O/QKwB5yNTv5WU7oN53/sx5EDgIzZBIPVHH0x9VlIBC87/BJG7BKaUYv//x6EPCRDgvETiLFZSUu2Fcf4k/f9b1I+k51I8jPNJSUnlPgn2yCPYHwBOuQ5rod0HXAAAAABJRU5ErkJggg==)}.tui-chart.tui-treemap-chart .tui-chart-reset-zoom-btn:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAFlXhBdAAAAMFBMVEXu7u7u7u5VVVVbW1tfX19kZGRubm6BgYGLi4uOjo60tLS1tbXU1NTd3d3o6Oju7u6bzfGZAAAAAnRSTlO0tU0x4YcAAABxSURBVBjTY5D/wPDtA8N/GPoEJP//Z/j/Ph5CI+O/QKwB5yNTv5WU7oN53/sx5EDgIzZBIPVHH0x9VlIBC87/BJG7BKaUYv//x6EPCRDgvETiLFZSUu2Fcf4k/f9b1I+k51I8jPNJSUnlPgn2yCPYHwBOuQ5rod0HXAAAAABJRU5ErkJggg==)}.tui-chart.tui-treemap-chart .tui-chart-reset-zoom-btn:active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAFlXhBdAAAAMFBMVEXm5ubm5uZVVVVaWlpfX19jY2NsbGx+fn6Hh4eLi4uurq6vr6/Nzc3V1dXg4ODl5eWoWcyYAAAAAnRSTlO0tU0x4YcAAABxSURBVBjTY5D/wPDtA8N/GPoEJP//Z/j/Ph5CI+O/QKwB5yNTv5WU7oN53/sx5EDgIzZBIPVHH0x9VlIBC87/BJG7BKaUYv//x6EPCRDgvETiLFZSUu2Fcf4k/f9b1I+k51I8jPNJSUnlPgn2yCPYHwBOuQ5rod0HXAAAAABJRU5ErkJggg==)}.tui-chart-size-check-element{clear:both;position:absolute;word-wrap:break-word;word-break:keep-all;top:100000px;left:100000px;width:1000px;height:100px;padding:0;line-height:1}.tui-chart-size-check-element>span{display:inline-block;box-sizing:border-box;text-align:center;padding:0}:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation25 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation45 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation65 span,:root .tui-chart .tui-chart-axis-area.horizontal .tui-chart-label.tui-chart-xaxis-rotation85 span,:root .tui-chart .tui-chart-axis-area.vertical .tui-chart-title-area{filter:none \0}.box-shadow{filter:shadow(0 4px 4px)} \ No newline at end of file diff --git a/dist/tui-chart.min.js b/dist/tui-chart.min.js index f9e1a9b31..a0fbfec65 100755 --- a/dist/tui-chart.min.js +++ b/dist/tui-chart.min.js @@ -2,24 +2,24 @@ * tui-chart.min * @fileoverview tui-chart * @author NHN Ent. FE Development Lab - * @version 3.3.1 + * @version 3.4.0 * @license MIT * @link https://github.com/nhnent/tui.chart - * bundle created at "Tue Aug 07 2018 12:41:56 GMT+0900 (KST)" + * bundle created at "Fri Oct 12 2018 10:30:53 GMT+0900 (KST)" */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael"),require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["raphael","tui-code-snippet"],e):"object"==typeof exports?exports.chart=e(require("raphael"),require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael,t.tui&&t.tui.util))}(this,function(__WEBPACK_EXTERNAL_MODULE_4__,__WEBPACK_EXTERNAL_MODULE_7__){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){t.exports=i(2)},,function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(3),r=i(31),a=o(r),s=i(8),u=o(s),l=i(11),h=o(l),p=i(139),c=o(p);i(148),a["default"].registerPlugin("Raphael",n.pluginRaphael,n.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=h["default"],a["default"].colorutil=c["default"],t.exports=a["default"]},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),n=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",o.setAttribute("result","flood"),o.setAttribute("flood-color","#ffffff"),o.setAttribute("flood-opacity","0.5"),n.setAttribute("in","flood"),n.setAttribute("result","mask"),n.setAttribute("in2","SourceGraphic"),n.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(o),e.appendChild(n),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),o=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),o.setAttributeNS(null,"result","blurOut"),o.setAttributeNS(null,"in","offOut"),o.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(o),e.appendChild(n),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(4),s=o(a),u=i(5),l=o(u),h=i(12),p=o(h),c=i(13),d=o(c),f=i(14),m=o(f),y=i(17),g=o(y),_=i(19),v=o(_),T=i(20),b=o(T),A=i(21),E=o(A),x=i(22),D=o(x),L=i(23),S=o(L),C=i(24),M=o(C),P=i(26),w=o(P),R=i(27),O=o(R),I=i(28),k=o(I),B=i(29),N=o(B),F=i(30),G=o(F);e.pluginRaphael={bar:l["default"],boxplot:p["default"],bullet:d["default"],column:l["default"],line:m["default"],area:g["default"],pie:v["default"],bubble:E["default"],scatter:E["default"],heatmap:D["default"],treemap:D["default"],map:S["default"],radial:b["default"],legend:M["default"],mapLegend:w["default"],circleLegend:O["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),o=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(n(i),r(i)),i.pushDownBackgroundToBottom=function(){o.toBack()},i.changeChartBackgroundColor=function(t){o.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){o.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){o.attr({width:t,height:e})},o.attr({fill:"#fff","stroke-width":0}),i}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_4__},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(7),l=o(u),h=i(4),p=o(h),c=700,d=1,f=.3,m=.2,y=8,g=2,_=.4,v=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.theme,n=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=o,this.seriesDataModel=n,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=o,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var o=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return o.node.setAttribute("class","auto-shape-rendering"),o},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(n,r),s=o?i[n]:i[r],u=e._renderBar(t.start,s);return{rect:u,color:s,bound:t.end,item:a,groupIndex:n,index:r,isRange:a.isRange}})});return n},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var o=i.value,n=null;if("bar"===e||o>=0||i.isRange){var r=l["default"].extend({},t.leftTop);r.left-="column"===e||o<0?1:0,n=s["default"].makeLinePath(r,t.rightTop).join(" ")}return n},t.prototype._makeRightLinePath=function(t,e,i){var o=null;return("column"===e||i.value>=0||i.isRange)&&(o=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),o},t.prototype._makeBottomLinePath=function(t,e,i){var o=null;return("bar"===e||i.value<0||i.isRange)&&(o=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),o},t.prototype._makeLeftLinePath=function(t,e,i){var o=null;return("column"===e||i.value<0||i.isRange)&&(o=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),o},t.prototype._makeBorderLinesPaths=function(t,e,i){var o=this._makeRectPoints(t),n={top:this._makeTopLinePath(o,e,i),right:this._makeRightLinePath(o,e,i),bottom:this._makeBottomLinePath(o,e,i),left:this._makeLeftLinePath(o,e,i)};return l["default"].filter(n,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,o){var n=this._makeBorderLinesPaths(t,i,o),a={};return Object.entries(n).forEach(function(t){var i=r(t,2),o=i[0],n=i[1];a[o]=s["default"].renderLine(self.paper,n,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var o=l["default"].map(t,function(t,o){return l["default"].map(t,function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,self.chartType,r)})});return o},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-g/2,y:e.height?e.top:e.top-g/2,width:e.width?e.width:g,height:e.height?e.height:g,opacity:e.height&&e.width?1:_},c,">")},t.prototype._animateBorders=function(t,e,i,o){var n=this._makeBorderLinesPaths(e,i,o);l["default"].forEach(t,function(t,e){t.animate({path:n[e]},c,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,o,n){var r=i[o]&&i[o][n];t&&(e._animateRect(t.rect,t.bound),r&&e._animateBorders(r,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},c))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+y,height:i.height+y,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],o=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(o.width,o.height),s["default"].forEach2dArray(this.groupBars,function(t,o,r){if(t){var a=i[o]&&i[o][r],u=n[o][r].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var o=this.groupBars[t.groupIndex][t.index];if(o.rect.attr({fill:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=p["default"].color(e.color),o=this.theme.selectionColor,n=o||s["default"].makeChangedLuminanceColor(i.hex,m),r=this.theme.borderColor;if(r){var a=p["default"].color(r);r=s["default"].makeChangedLuminanceColor(a.hex,m)}this._changeBarColor(t,n,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(o,n,r){if(o){var a=e[n]&&e[n][r],s=i||t===r?d:f;o.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r=n||"column"===this.chartType?"middle":"start",a={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":r},u=this.labelSet=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var r=e[o][n],l=s["default"].renderText(t,r.end,i.end,a),h=l.node.style;if(h.userSelect="none",h.cursor="default",u.push(l),r.start){var p=s["default"].renderText(t,r.start,i.start,a);p.node.style.userSelect="none",p.node.style.cursor="default",u.push(p)}})}),u},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var r=i(7),a=o(r),s=i(8),u=o(s),l=i(4),h=o(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=[t.left,t.top],n=[e.left,e.top],r=i%2/2;return o.forEach(function(t,e){t===n[e]&&(o[e]=n[e]=Math.round(t)-r)}),["M"].concat(o,["L"],n)},renderLine:function(t,e,i,o){var n=t.path([e]),r={stroke:i,"stroke-width":a["default"].isUndefined(o)?2:o,"stroke-linecap":"butt"};return"transparent"===i&&(r.stroke="#fff",r["stroke-opacity"]=0),n.attr(r).node.setAttribute("class","auto-shape-rendering"),n},getEllipsisText:function(t,e,i){for(var o=t.split(""),n=o.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u=e){a+="..";break}a+=o[u]}return a},renderText:function(t,e,i,o){var n=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return o&&(o["dominant-baseline"]?n.node.setAttribute("dominant-baseline",o["dominant-baseline"]):n.node.setAttribute("dominant-baseline","central"),n.attr(o)),n},renderArea:function(t,e,i){var o=t.path(e);return i=Object.assign({"stroke-opacity":0},i),o.attr(i),o},renderCircle:function(t,e,i,o){var n=t.circle(e.left,e.top,i);return o&&n.attr(o),n},renderRect:function(t,e,i){var o=t.rect(e.left,e.top,e.width,e.height);return i&&o.attr(i),o},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,o){e(t,i,o)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var o=parseInt(t.substr(2*i,2),16),n=o+o*e;return n=Math.round(Math.min(Math.max(0,n),255)).toString(16),u["default"].formatToZeroFill(n,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var o=(0,h["default"])(document.body,100,100),n=o.text(0,0,t).attr({"font-size":e,"font-family":i}),r=n.getBBox();return n.remove(),o.remove(),{width:r.width,height:r.height}},animateOpacity:function(t,e,i,o){var r=n(o)?o:600,a=n(e)?e:0,s=n(i)?i:1,u=h["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)}}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_7__},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var o=[t,i];return f["default"].forEach(e,function(t,e){o.push(t+e)}),o.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,o=e.fontFamily,n=e.fontWeight,r=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",o&&(t.style.fontFamily=o),n&&(t.style.fontWeight=n),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var o=this._makeCachingKey(t,e,i),n=this.sizeCache[o];if(!n){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerHTML=t,this._addCssStyle(r,e),document.body.appendChild(r),n=a[i],document.body.removeChild(r),this.sizeCache[o]=n}return n},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=h["default"].create("DIV","tui-chart-size-check-element"),e=h["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var o=0;if(t&&t.length){var n=f["default"].map(t,function(t){return i(t,e)});o=c["default"].max(n)}return o},getRenderedLabelsMaxWidth:function(t,e){var i=f["default"].bind(this.getRenderedLabelWidth,this),o=this._getRenderedLabelsMaxSize(t,e,i);return o},getRenderedLabelsMaxHeight:function(t,e){var i=f["default"].bind(this.getRenderedLabelHeight,this),o=this._getRenderedLabelsMaxSize(t,e,i);return o},renderDimension:function(t,e){var i=e.width,o=void 0===i?0:i,n=e.height,r=void 0===n?0:n;t.style.cssText=[this.concatStr("width:",o,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){f["default"].isUndefined(e)||f["default"].forEachArray(["top","bottom","left","right"],function(i){var o=e[i];f["default"].isNumber(o)&&(t.style[i]=o+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var o=T.makeFontCssText(e),n=h["default"].create("DIV",i);return n.innerHTML=t,e.background&&(o+=";"+this.concatStr("background:",e.background)),n.style.cssText=o,n},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,o=t.valueType,r=void 0===o?"value":o,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(n(i||[]));return f["default"].reduce(l,function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.chartType,n=i.areaType,r=i.valueType;return e&&e.length?f["default"].map(t,function(t){return T.formatValue({value:t,formatFunctions:e,chartType:o,areaType:n,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=f["default"].isDate(t)?t:new Date(t);return f["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return f["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function o(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete n.id,i&&i()):n.id=requestAnimationFrame(o)}var n={},r=(new Date).getTime();return n.id=requestAnimationFrame(o),n},isOldBrowser:function(){return y},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=o;else{var h;s=t.split("").reverse(),u=s.length-1,s=f["default"].map(s,function(t,o){var n=[t];return o1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),o=this._perseString(o),""!==i||""!==o?f["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,o)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=g?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=_+v;return v+=1,t}};y?(T.makeOpacityCssText=function(t){var e="";if(f["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},T.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(T.makeOpacityCssText=function(t){var e="";return f["default"].isExisty(t)&&(e=";opacity:"+t),e},T.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=T},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),o=a["default"].inArray(e,i);o!==-1&&(i.splice(o,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),o=a["default"].inArray(e,i);return o>-1},findParentByClass:function(t,e,i){var o=t.parentNode,n=void 0;return n=o?this.hasClass(o,e)?o:"BODY"===o.nodeName||this.hasClass(o,i)?null:this.findParentByClass(o,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=r,o=t)})}else o=Math.max.apply(Math,n(t));return o}function s(t,e,i){var o=!1;return d["default"].forEach(t,function(n,r){return e.call(i,n,r,t)&&(o=!0),!o}),o}function u(t,e,i){var o=!!(t||[]).length;return d["default"].forEach(t,function(n,r){return e.call(i,n,r,t)||(o=!1),o!==!1}),o}function l(t,e,i,o){var n=[];if(d["default"].isBoolean(e)||(o=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;d["default"].forEachArray(t,function(e,a){e=i.call(o,e,a,t),a&&r===e||n.push(e),r=e})}else d["default"].forEachArray(t,function(e,r){e=i.call(o,e,r,t),d["default"].inArray(e,n)===-1&&n.push(e)});return n}function h(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var o=0;o0?1:-1,a=t.left,u=t.width,h=u/4,c="M"+(a+h)+","+t.top+"H"+(a+3*h),d=p["default"].oneLineTrim(s,a+2*h,t.top,t.top+Math.abs(n)*r),f=l["default"].renderLine(o,c,i,T),m=l["default"].renderLine(o,d,i,A),y=[];return f.attr({opacity:0}),m.attr({opacity:0}),y.push(f),y.push(m),y},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),n.push(a)}),n},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),o=l["default"].renderLine(this.paper,i,"#ffffff",b);return o.attr({opacity:0}),o},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var o=[];t.forEach(function(t){t&&o.push(e._renderMedianLine(t.median))}),i.push(o)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),n.push(a)}),n},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,o){var n=this,r=this._makeBorderLinesPaths(t,i,o),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),o=i[0],r=i[1];s[o]=l["default"].renderLine(n.paper,r,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var o=t.map(function(t,o){return t.map(function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,e.chartType,r)})});return o},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},y,">")},t.prototype.animate=function(t){var e=this,i=m["default"].animation({opacity:1},y);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(y))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(y))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},y))},t.prototype.showAnimation=function(t){d["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,o){if(t){var n=i[e][o].end;t.bound=n,l["default"].updateRectBound(t.rect,n)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var o=this.groupBoxes[t.groupIndex][t.index];if(o.rect.attr({stroke:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=m["default"].color(e.color),o=this.theme.selectionColor,n=l["default"].makeChangedLuminanceColor,r=o||n(i.hex,v),a=this.theme.borderColor;if(a){var s=m["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,v)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=d["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,o,n){if(i){var r=e||t===n?g:_;i.rect.attr({"stroke-opacity":r})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,o,n){var r=e||t===n?g:_;i.attr({"stroke-opacity":r})}),l["default"].forEach2dArray(this.groupMedians,function(i,o,n){var r=e||t===n?g:_;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":n?"middle":"start"},a=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var s=e[o][n],u=l["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var h=l["default"].renderText(t,s.start,i.start,r);h.node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("filter","url(#glow)"),a.push(h)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,o){var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=o+"_rect",n.id=o,n.appendChild(r.node),t.defs.appendChild(n),r}e.__esModule=!0;var a=i(6),s=o(a),u=i(9),l=o(u),h=i(7),p=o(h),c=i(8),d=o(c),f=p["default"].browser,m=f.msie&&f.version<=8,y=700,g=700,_=1,v=.3,T=20,b=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=o,this.maxRangeCount=o.maxRangeCount,this.maxMarkerCount=o.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},g))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,o=e.width,n=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(o,n),this.paper.setSize(o,n)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=d["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=p["default"].isNull(t);this.groupBars.forEach(function(o,n){var r=i||t===n?_:v;e.groupBars[n].attr({"fill-opacity":r}),e.groupLabels[n].attr({opacity:r}),e.groupLabels[n].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=this,r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,o){var s=t.set();return i.forEach(function(i,u){var l=n._renderLabel(t,e[o][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,o){var n=s["default"].renderText(t,e,o,i),r=n.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),n},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var o=[],n=t.groupLines[i].length;e.forEach(function(t){o.push(t.attrs.fill)});for(var r=o[o.length-1],a=0;a<=n;a+=1)o.push(r);return o})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(15),u=o(s),l=i(6),h=o(l),p=i(7),c=o(p),d=1,f=.3,m=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=e.options,a=e.position,s=n.colors,u=r.showDot?1:0,l=r.spline,h=this.lineWidth=c["default"].isNumber(r.pointWidth)?r.pointWidth:this.lineWidth,p=this.makeBorderStyle(n.dot.strokeColor,u,n.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(o,r.connectNulls):this._getLinesPath(o,r.connectNulls),this.paper=t,this.theme=n,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,f,s,h),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,o,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=o,this.groupPaths=f,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,o){return e.map(function(e,n){var r=i[n]||"transparent",a=h["default"].renderLine(t,e.join(" "),r,o);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=o,this.groupPaths=this.isSpline?this._getSplineLinesPath(o):this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){t.endDot&&e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=this,i=c["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(o,n){var r=t===n,a=i||r?d:f,s=e.groupDots[n];o.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(o,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,o){var n=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;o?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(o),o=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,o=[],n=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var h=s(t,1),p=h[0],c=p;r=t.length,a=c,n=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(o,n){var r=t[n+2],s=i._getAnchor(a,o,r,e);return a=o,Math.abs(s.y1-p.top)>Math.abs(p.top-o.top)&&(s.y1=o.top),Math.abs(s.y2-r.top)>Math.abs(r.top-o.top)&&(s.y2=o.top),p=o,[s.x1,s.y1,o.left,o.top,s.x2,s.y2]}),l.push([n.left,n.top,n.left,n.top]),l.unshift(["M",c.left,c.top,"C",c.left,c.top]),o.push(l)}),o},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),o=this._getSplinePartialPaths(i,e.isReverseDirection),n=[];return o.forEach(function(t){n=n.concat(t)}),e.isBeConnected&&(n[0]=n[0].slice(3)),n},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var o={"stroke-width":i,"stroke-opacity":e};return t&&(o.stroke=t),o},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&g["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,o){var n=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,g["default"].isUndefined(n.radius)?b:n.radius),s={fill:n.fillColor||i,"fill-opacity":g["default"].isNumber(o)?o:n.fillOpacity,stroke:n.strokeColor||i,"stroke-opacity":g["default"].isNumber(o)?o:n.strokeOpacity,"stroke-width":n.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,o,n){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,o)};if(r.hasRangeData){var a=g["default"].extend({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,o)}return n&&(n.push(i.endDot.dot),i.startDot&&n.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,o={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(o.fill=i.fillColor),t.dot.attr(o),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,o=!g["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===D||o)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===L&&o&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===D?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],o=this._findDotItem(i,t.groupIndex),n=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(o){if("area"===this.chartType){var s=n;a=s.startLine,n=s.line,r=5,this._updateAreaOpacity(D)}else r=this.lineWidth;this._updateLineStrokeOpacity(D,n),this._updateLineStrokeWidth(n,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(o.endDot,e),o.startDot&&this._showDot(o.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=d["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=m["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),o=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:o,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var o=this._prevDotAttributes[e],n=this.outDotStyle;o&&!g["default"].isUndefined(i)&&(n=g["default"].extend({r:o.r,stroke:o.stroke,fill:o.fill,"stroke-opacity":o["stroke-opacity"],"stroke-width":o["stroke-width"],"fill-opacity":o["fill-opacity"]})),t.attr(n),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,o=this.groupDots[i],n=this._findDotItem(o,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(n){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(L)}else a=this.lineWidth;u&&!g["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(L,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),n&&(this._hideDot(n.endDot.dot,i,u),n.startDot&&this._hideDot(n.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!g["default"].isNull(this.selectedLegendIndex),o=this.dotOpacity,n=this._getPivotGroupDots();n&&n[t]&&n[t].forEach(function(t,n){var r=o;r&&i&&e.selectedLegendIndex!==n&&(r=E),t.endDot&&e._hideDot(t.endDot.dot,n,r),t.startDot&&e._hideDot(t.startDot.dot,n,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=g["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,o=this.dimension,n=this.position,r=this._getClipRectId(),s=this.clipRect;!v&&o&&(s?s.attr({width:0,height:o.height}):(s=a(i,n,o,r),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+r+")")}),s.animate({width:o.width},T,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,A);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var o={cx:e.left,cy:e.top};g["default"].isExisty(i)&&(o.transform="t-"+i+",0"),t.animate(o,x)},t.prototype._animateByPath=function(t,e,i){var o={path:e.join(" ")};g["default"].isExisty(i)&&(o.transform="t-"+i+",0"),t.animate(o,x)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=p["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=S},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(11),s=o(a),u={isBarChart:function(t){return t===r["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===r["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===r["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===r["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===r["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),o=u.isNormalStack(e);return i&&o},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),o=u.isPercentStack(e);return i&&o},isComboChart:function(t){return t===r["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===r["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===r["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e)},isBubbleChart:function(t){return t===r["default"].CHART_TYPE_BUBBLE}, -isScatterChart:function(t){return t===r["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===r["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===r["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(r["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===r["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===r["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===r["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===r["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===r["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===r["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===r["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===r["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===r["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===r["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&_["default"].print(v,"warn"):f["default"].isUndefined(t)||_["default"].print(v,"error"),e},e}(h["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(7),l=o(u),h=i(4),p=o(h),c=180,d=360,f=.01,m=Math.PI/c,y=700,g=1,_=.3,v=.2,T="overlay",b=20,A=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();this.paper=t;var n=r(e.options.radiusRange,1);return this.holeRatio=n[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,o),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,o},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,o,n){var r=o*m,a=n*m,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),h=e-i*Math.cos(a),p=n-o>c?1:0,d=["M",t,e,"L",s,u,"A",i,i,0,p,1,l,h,"Z"];return{path:d}},t.prototype._makeDonutSectorPath=function(t,e,i,o,n,r){var a=o*m,s=n*m,u=r||i*this.holeRatio,l=t+i*Math.sin(a),h=e-i*Math.cos(a),p=t+u*Math.sin(a),d=e-u*Math.cos(a),f=t+i*Math.sin(s),y=e-i*Math.cos(s),g=t+u*Math.sin(s),_=e-u*Math.cos(s),v=n-o>c?1:0,T=["M",l,h,"A",i,i,0,v,1,f,y,"L",g,_,"A",u,u,0,v,0,p,d,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",T),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,o=t.attrs;return o[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(o)},t.prototype._renderPie=function(t,e,i,o){var n=this,r=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,h=e[u],p=n._renderSector({paper:n.paper,circleBound:r,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});p.node.setAttribute("class","auto-shape-rendering"),p.data("index",u),p.data("legendIndex",u+i),p.data("chartType",n.chartType),s.push({sector:p,color:h,angles:t.angles.end,ratio:l}),o.push(p)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,o=this.sectorInfos[t],n=o.angles.startAngle,r=o.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,n,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,o.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,o=[i.cx,i.cy,i.r],n=0;this.sectorInfos.forEach(function(t){var i=t.angles,r={fill:t.color},a=y*t.ratio;0===i.startAngle&&i.endAngle===d&&(i.endAngle=d-f),r[e]=o.concat([i.startAngle,i.endAngle]);var s=p["default"].animation(r,a,">");t.sector.animate(s.delay(n)),n+=a}),t&&setTimeout(t,n)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=p["default"].color(e.color),o=s["default"].makeChangedLuminanceColor(i.hex,v),n=this.selectionColor||o;e.sector.attr({fill:n})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,o){var n=e||t===o?g:_;i.sector.attr({"fill-opacity":n})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,o={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,n){var r=void 0;t.colors&&(o.fill=t.colors[n]),i&&(r=s["default"].renderText(t.paper,i,t.labels[n],o),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(r),t.labelSet.push(r)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(15),u=o(s),l=i(6),h=o(l),p=i(7),c=o(p),d=1,f=.3,m=6,y=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=m,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=n.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,h=this._getLinesPath(o),p=this.makeBorderStyle(n.strokeColor,a,n.strokeWidth),c=this.makeOutDotStyle(a,p),d=t.set(),f=this.lineWidth=l?l:this.lineWidth,m=o.map(function(t){return t.pop(),t});return this.paper=t,this.theme=n,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,h,r,d)),this.groupLines=this._renderLines(t,h,r,f,d),this.groupDots=this._renderDots(t,m,r,a,d),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=r,this.borderStyle=p,this.outDotStyle=c,this.groupPositions=o,this.groupPaths=h,this.dotOpacity=a,this.isShowArea=u,d},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,o,n){return e.map(function(e,r){var a=i[r]||"transparent",s=h["default"].renderLine(t,e.join(" "),a,o);return n.push(s),s})},e.prototype._renderArea=function(t,e,i,o){var n=this;return e.map(function(e,r){var a=i[r]||"transparent",s=h["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":n.lineWidth,stroke:a});return o.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.groupPositions=o,this.groupPaths=this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=c["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,o){var n=e||t===o?d:f;i.attr({"stroke-opacity":n})})},e}(u["default"]);e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(6),a=o(r),s=i(7),u=o(s),l=i(4),h=o(l),p=700,c=.8,d=1,f=.8,m=.3,y=.2,g=2,_=20,v=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(o),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),o},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":d,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(o,n){return o.map(function(o,r){var s=null;if(o){var u=i[r],l=a["default"].renderCircle(e.paper,o,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",n),l.data("index",r),s={circle:l,color:u,bound:o}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:c},p,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,n){var r=o[i][n];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+g,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=m;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=f),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,o=void 0;u["default"].isUndefined(o);){var n=i.getElementByPoint(t.left,t.top);n?n.attrs.opacity>m?o=n:(e.push(n),n.hide()):o=null}return o||(o=e[0]),e.forEach(function(t){t.show()}),o},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),o=e.data("index"),n=[{},i,o,{left:t.left-_,top:t.top-_}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,n),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i],n=h["default"].color(o.color),r=this.theme.selectionColor,s=r||a["default"].makeChangedLuminanceColor(n.hex,y);o.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i];o.circle.attr({fill:o.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,o,n){if(i){var r=e||t===n?f:m;i.circle.attr({opacity:r})}})},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(6),a=o(r),s=i(7),u=o(s),l=i(16),h=o(l),p=100,c=0,d=4,f=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,o){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":o})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?d:c},t.prototype._renderBoxes=function(t,e,i,o){var n=this,r=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!n.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);n._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=n.colorSpectrum?0:n._getStrokeWidth(s===e),l=n.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var h=n._getBound(t);if(h){var p=n._getColor(t,e);a={rect:n._renderRect(h,p,u,l),seriesItem:t,color:p},o&&o.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,o=this.seriesDataModel.findSeriesItemsByParent(t.id);o.forEach(function(o,n){var r=o.depth;r===e?o.fillOpacity=1:r===e+1?o.fillOpacity=.05*n:r")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,o=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(o=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:o,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,o){if(t){var n=e._getBound(t.seriesItem,i,o);n&&a["default"].updateRectBound(t.rect,n)}})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,o){i.forEach(function(i,s){var u=a["default"].renderText(t,e[o][s].end,i,r);u.node.style.userSelect="none",u.node.style.cursor="default",n.push(u)})}),this.labelSet=n,n},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0};return i.forEach(function(i,o){if(e[o]){var s=a["default"].renderText(t,e[o],i,r);s.node.style.userSelect="none",s.node.style.cursor="default",n.push(s)}}),this.labelSet=n,n},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.id=i,e.forEach(function(t){c["default"].append(o,t.node)}),t.canvas.appendChild(o),o}e.__esModule=!0;var s=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(6),h=o(l),p=i(10),c=o(p),d=i(8),f=o(d),m=i(7),y=o(m),g=y["default"].browser,_=g.msie&&g.version<=8,v="gray",T=100,b="tui-chart-series-group",A="#eee",E=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),_||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,o=this.paper,n=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,p=u?r.getColor(u):A,c=h["default"].renderArea(o,l,{fill:p,opacity:1,stroke:v,"stroke-width":.2,"stroke-opacity":1,transform:f["default"].oneLineTrim(s,e,e,n.left/e,n.top/e)});return c.data("index",a),i.push(c),{sector:c,color:p,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),o=!y["default"].isUndefined(i)&&this.sectors[i];return o&&!y["default"].isUndefined(o.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,T,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:v,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,o,n){var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{ -a:1,b:0,c:0,d:1,e:0,f:0},h=n.width-this.dimension.width,p=n.height-this.dimension.height,c=l.e/l.a,d=l.f/l.d,f=-h/l.a,m=-p/l.d;u.scale(t,t,e.left*i-c*t,e.top*i-d*t);var y=u.e/u.a+c,g=u.f/u.d+d;y>=0?u.e=-c*u.a:y=0?u.f=-d*u.a:g=0&&n>0?e.e=0:r<0&&r<-o/i.a&&n<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,o=t.maxTop,n=e.f/e.d,r=n+i.f/i.d;r>=0&&n>0?e.f=0:r<0&&r<-o/i.d&&n<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var o={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:f["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},n=t.set();return e.forEach(function(e){var i=e.position,r=h["default"].renderText(t,i,e.name||e.code,o);n.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),_||self.g.appendChild(r.node)}),n},t}();e["default"]=E},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=n(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(9),l=o(u),h=i(6),p=o(h),c=i(11),d=o(c),f=i(8),m=o(f),y=i(25),g=o(y),_=i(7),v=o(_),T=.5,b=8,A=10,E=A/2,x=3,D=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,o=Object.assign({},this.basePosition);t.forEach(function(t,n){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,h=t.checkbox,p=t.colorByPoint?"#aaa":t.theme.color,c=o.left+e._calculateSingleLegendWidth(a,r),d=c>=e.paper.width;e.isHorizontal&&d&&(o.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,o.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(o,{isChecked:h.checked,legendIndex:a,legendSet:e.legendSet}),o.left+=e._checkBoxWidth+i),e._renderIcon(o,{legendColor:p,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),o.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(o,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?o.left+=e.labelWidths[n]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(o.left=e.basePosition.left,o.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,o=this.dimension.height,n=this.paper.height,r=t;if(!this.isHorizontal&&o+2*i>n){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=n-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=v["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),D.click(function(){i._currentPageCounti&&(o=i),o+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return p["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,o=this.labelTheme,n={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:o.color,"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,opacity:e.isUnselected?T:1,"text-anchor":"start"},a=p["default"].renderText(this.paper,n,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,o=t.left,n=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=m["default"].oneLineTrim(s,.25*this._checkBoxWidth+o,.5*this._checkBoxHeight+n,a,a,r,r),l=this.paper.set(),h=this.paper.rect(o,n,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(h.node.setAttribute("class","auto-shape-rendering"),l.push(h),e.isChecked){var p=this.paper.path(u).attr({stroke:"#555","stroke-width":2});p.node.setAttribute("class","auto-shape-rendering"),l.push(p)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,o=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?o=p["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?T:1}):(o=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),o.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?T:1}),o.translate(t.left,t.top)),o.data("icon",e.iconType),o.data("index",e.legendIndex),o.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(o)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),o="line"===e.data("icon")?"stroke-opacity":"opacity";v["default"].isNull(i)||v["default"].isUndefined(i)?e.attr(o,1):v["default"].isUndefined(i)||(v["default"].isNumber(t)&&i!==t?e.attr(o,T):e.attr(o,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:d["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(7),r=o(n),a=i(11),s=o(a),u=100,l={calculateLimit:function(t,e){var i={},o=0;t<0&&(o=t,e-=t,t=0);var n=(e-t)/20;return i.max=e+n+o,e/6>t?i.min=o:i.min=t-n+o,i},makeTickPixelPositions:function(t,e,i,o){var n=[];return i=i||0,e>0&&(n=r["default"].range(0,e).map(function(o){var n=0===o?0:o/(e-1);return n*t+i}),n[n.length-1]-=1),o&&n.push(o),n},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),o=Math.round(t.min*i),n=Math.round(t.max*i),a=r["default"].range(o,n+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=r["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=r["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,o){return e?(t-i)/e*o:0}},h=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},p=function(){for(var t=arguments.length,e=Array(t),i=0;ih.dimension[e]+f},y=void 0;o.forEach(function(o){var s="M";o+=n,m(o)||(r?a?(s+=d+","+(c+o),s+="H"+(d+5),s+="M"+p+","+(c+o),s+="H"+(p-5)):u?(s+=d+","+(c+o),s+="H"+(d+5)):(s+=p+","+(c+o),s+="H"+(p-5)):(s+=d+o+","+c,s+="V"+(c+5)),isNaN(o)||(y=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(y),e.ticks.push(y)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,o=i.position,n=i.dimension,r=t.paper,a=t.isVertical,s=o.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),h=1-l/(u+l),p="M",c=o.top,d=s+n.width;if(a){var f=c;d+=t.seriesDimension.width*h,p+=d+","+f;var m=c+e;p+="V"+m}else{p+=s,c-=t.seriesDimension.height*h,p+=","+c+"H";var y=s+e;p+=y}t.set.push(r.path(p).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,o=t.layout,n=o.position,r=n.top,a=n.left,s=o.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,h=t.additionalSize,p=t.isPositionRight,c=t.isCenter,d=t.isVertical,f=t.tickColor,m=t.seriesDimension,y=e,g=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;p?(v+=a+","+r,v+="V"+g):d?(T=r,u&&(_+=m.width/2),v+=_+","+T,c?(v+="V"+g,v+="M"+a+","+T,v+="V"+g):(b=r+y,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:m,lineSize:y}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:f,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,o=e.text,n=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,p=e.tickCount,d=e.layout,f=r(o,n),m=a(o,n),y=d.dimension.height,g=d.dimension.width,_=d.position.top,v=d.position.left+u,T=m/2-l.width,b={top:_+y-f/2,left:v+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=f/2,b.left=v+g/2):i.isDiverging||(b.top=_-f/2-c):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+g/2:i.isColumnType&&(b.left=v+g/(p-1)/2)),i.isPositionRight&&(b.left+=g),i.isCenter||s(b,e.offset),b},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(11),l=o(u),h=8,p=3,c=function(){function t(){n(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),o=r(i[0],1),n=o[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=arguments[3];if(e.table&&(e=k["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=O["default"].deepCopy(e),"combo"!==o){var n=e.series;e.series={},e.series[o]=n}i=i?O["default"].deepCopy(i):{},i.chartType=o,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var r=M["default"].get(i.theme,o,e.series),a=D["default"].get(i.chartType,e,r,i);return a.render(t),a.animateChart(),a}function r(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_SCATTER)}function p(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function c(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COMBO)}function f(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_PIE)}function m(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_MAP)}function y(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_RADIAL)}function g(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){M["default"].register(t,e)}function T(t,e){w["default"].register(t,e)}function b(t,e,i){S["default"].register(t,e),N["default"].addRendererType(t,i)}var A=i(9),E=o(A),x=i(32),D=o(x),L=i(34),S=o(L),C=i(35),M=o(C),P=i(37),w=o(P),R=i(38),O=o(R),I=i(39),k=o(I),B=i(40),N=o(B);i(41),i(42),i(147),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:p,treemapChart:c,comboChart:d,pieChart:f,mapChart:m,radialChart:y,boxplotChart:g,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(33),s=o(a),u=i(16),l=o(u),h={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var o=s["default"].getChartTypeMap(e);o[r["default"].CHART_TYPE_COLUMN]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:o[r["default"].CHART_TYPE_LINE]&&o[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:o[r["default"].CHART_TYPE_AREA]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:o[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,o){var n=this._findKey(t,e),r=h[n];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,o)},register:function(t,e){h[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(11),h=o(l),p=i(7),c=o(p);e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),o=h["default"].unique(i);e&&(o=o.slice(0,2));var n=o.filter(function(t){ -return!!t});return n.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(o){var r=n(o,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var o=n(t,2),r=o[0],a=o[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var o=[];e.bullet.forEach(function(e,i){e&&o.push(t.categories[i])}),i.categories=o}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var o=i[e];if(!o)throw new Error("Not exist "+e+" chart renderer.");var n=new o;return n},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(36),h=o(l),p=i(7),c=o(p),d={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),d[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(o){var r=n(o,2),a=r[0],s=r[1],u=t[a];(u||0===u)&&(c["default"].isArray(u)?e[a]=u.slice():c["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){c["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,o){var n=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||n._pickValidTheme(e,o);c["default"].keys(a).length?(r[t]=JSON.parse(JSON.stringify(h["default"][o])),n._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var o=[],n=t.length,r=i||0,a=0;a=n&&(r=0);return o},_setSeriesColors:function(t,e,i,o){var n=this,r=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(r=i[t].colors,s=!0):(r=i.colors||h["default"].series.colors,s=!1),a=n._getSeriesThemeColorCount(o[t]),e[t].colors=n._makeEachSeriesColors(r,a,!s&&u),s||(u=(a+u)%r.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,o){var n=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(n=JSON.parse(JSON.stringify(h["default"])),this._overwriteTheme(e,n)):n=JSON.parse(JSON.stringify(e)),n.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,n.yAxis,"yAxis"),n.series=this._createComponentThemeWithSeriesName(i,e.series,n.series,"series"),this._setSeriesColors(i,n.series,e.series,o),n},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return c["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),c["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;c["default"].forEach(t.series,function(i,o){e._copySeriesColorTheme(i,t.legend,o),e._copySeriesColorTheme(i,t.tooltip,o)})},get:function(t,e,i){var o=d[t];if(!o)throw new Error("Not exist "+t+" theme.");var n=this._pickSeriesNames(e,i),r=this._initTheme(t,o,n,i);return this._inheritThemeFont(r,n),this._copySeriesColorThemeToOther(r),r}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",o="#ffffff",n="lighter",r="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:o,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:n},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:n},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:n}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(7),a=o(r),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=n(t,2),o=i[0],r=i[1];e[o]=u(r)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],o=h["default"].toArray(t.getElementsByTagName("TR"));h["default"].forEach(o,function(t,e){var o=0===e?"TH":"TD",n=h["default"].toArray(t.getElementsByTagName(o)),r=h["default"].pluck(n,"innerText");i.push(r)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){var t=location,e=t.hostname;x["default"].imagePing("https://www.google-analytics.com/collect",{v:1,t:"event",tid:"UA-115377265-9",cid:e,dp:e,dh:"chart"})},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){x["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=x["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;x["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=_["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||h["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return T["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=f["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,o=this.dataProcessor,n=o.getLegendVisibility(),r=c["default"].filterCheckedRawData(o.rawData,n),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),y["default"].renderFontFamily(e,this.theme.chart.fontFamily),f["default"].append(t,e);var u=this.readyForRender();y["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:n},e),this.chartContainer=e,this.paper=s},t.prototype.rerender=function(t,e){var i=this.dataProcessor;e||(e=c["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var o=this.readyForRender();this.componentManager.render("rerender",o,{checkedLegends:t},this.chartContainer)},t.prototype.onChangeCheckedLegends=function(t,e,i){this.rerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var o=this._updateChartDimension(t);if(o){var n=this.readyForRender(),r=n.dimensionMap.chart;y["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.componentManager.render("resize",n,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var o={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(o)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),o=i?i.length:0,n=-1,r=0;r=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(10),l=o(u),h=i(46),p=o(h),c=i(47),d=o(c),f=i(48),m=o(f),y=i(49),g=o(y),_=i(51),v=o(_),T=i(40),b=o(T),A=i(57),E=o(A),x=i(59),D=o(x),L=i(60),S=o(L),C=i(61),M=o(C),P=i(67),w=o(P),R=i(69),O=o(R),I=i(70),k=o(I),B=i(74),N=o(B),F=i(81),G=o(F),H=i(85),V=o(H),z=i(86),j=o(z),W=i(88),Y=o(W),U=i(89),X=o(U),Z=i(90),K=o(Z),q=i(92),J=o(q),Q=i(93),$=o(Q),tt=i(94),et=o(tt),it=i(95),ot=o(it),nt=i(96),rt=o(nt),at=i(98),st=o(at),ut=i(99),lt=o(ut),ht=i(100),pt=o(ht),ct=i(7),dt=o(ct),ft={axis:p["default"],plot:d["default"],radialPlot:g["default"],legend:E["default"],spectrumLegend:D["default"],circleLegend:S["default"],tooltip:M["default"],groupTooltip:w["default"],mapChartTooltip:O["default"],mapChartEventDetector:k["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:j["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:ot["default"],treemapSeries:rt["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:pt["default"],chartExportMenu:v["default"],title:m["default"]},mt=function(){function t(e){n(this,t);var i=e.options.chart,o=dt["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,r=dt["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:o,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,o){return t=t||this.options[e],t=dt["default"].isArray(t)?t[o]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=void 0,n=i.index||0,r=ft[e],a=r.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes,o="axis"===a?t:a,i.theme=this.theme[o],i.options=this.options[o],i.theme||"rightYAxis"!==o||(i.theme=this.theme.yAxis),i.options||"rightYAxis"!==o||(i.options=this.options.yAxis),"series"===o&&this.seriesTypes.forEach(function(e){return 0!==t.indexOf(e)||(i.options=i.options[e]||i.options,i.theme=i.theme[e],dt["default"].isArray(i.options)&&(i.options=i.options[n]||{}),!1)}),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=r(i);s&&(s.componentName=t,s.componentType=a,this.components.push(s),this.componentMap[t]=s)},t.prototype._makeDataForRendering=function(t,e,i,o,n){var r=Object.assign({paper:i},n);return o&&(Object.assign(r,o),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,o){var n=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=n.drawingToolPicker.getPaper(o,r.drawingType),h=n._makeDataForRendering(s,u,l,e,i),p=r[t](h);p&&!p.paper&&(a=p)}return a});o&&l["default"].append(o,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var o=r(t,2),n=o[0],a=o[1];return e[n]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o3&&void 0!==arguments[3]?arguments[3]:0,n=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},h=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,o),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,o),n||this._renderTickArea(t,e,o),a&&s&&!h&&this._renderNegativeStandardsLine(t,o,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,o=i.tickCount,n=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(o/2,10)+1,u=n.slice(0,s),l=n.slice(s-1,o),h=r/s,p=r+this.dimensionMap.yAxis.width-1;this.paperAdditionalWidth=h,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,p)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,o=this.data,n=o.positionRatio,r=o.tickCount,a=o.labels,s=this.isYAxis,u=s?i:e,l=0;n&&(l=u*n),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,o=i.divided,n=i.isCenter,r=t.width;this.isLabelAxis=e,o?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=n?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,o=t.limitMap,n=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=o,this.data=n[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,o=void 0===i?{}:i,n=this.dataProcessor.getOption("yAxis"),r=this.dataProcessor.getOption("series")||{};o.text&&this.graphRenderer.renderTitle(this.paper,{text:o.text,offset:o.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter, -isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:r.diverging,isYAxisCenter:n&&"center"===n.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,o){var n=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,h=r.isPositionRight,c=a?t:0,d=this.isYAxis,f=this.data.options,m=f.isCenter,y=f.divided,g=p["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=c?l+1:l;g.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:g,isVertical:d,isCenter:m,isDivided:y,additionalSize:o,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:n,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,o){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:o})},t.prototype._renderTickArea=function(t,e,i){var o=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,o,i||0),this._renderTicks(t,e,o,i||0)},t.prototype._renderLabelArea=function(t,e,i,o){var n=this.data,r=n.sizeRatio,a=void 0===r?1:r,s=n.remainLastBlockInterval,u=s?t:0,l=p["default"].makeTickPixelPositions(t*a,e,0,u),h=l[1]-l[0];this._renderLabels(l,i,h,o||0)},t.prototype._renderRotationLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/_,p=this.layout.position,c=p.top,d=p.left,f=c+v,m=d,y=this.options.labelMargin||0;t.forEach(function(t,p){var c=t+(o||0),d={};a?(d.top=c+l,d.left=i+y):(d.top=f+y,d.left=m+c+h),r.renderRotatedLabel({degree:u,labelText:e[p],paper:n.paper,positionTopAndLeft:d,set:n.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,h=this.layout,p=this.data.isPositionRight,c=this.theme.label,d=this.options,f=d.labelMargin,y=void 0===f?0:f,g=d.pointOnColumn,_=d.isCenter,v=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),T=v&&g,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var d=u+o,f=i/2,g=n._isOverLapXAxisLabel(e[l],u,t[l+1]),A={};d<0||!a&&b&&g||(A=a?n._getYAxisLabelPosition(h,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:p}):n._getXAxisLabelPosition(h,{labelMargin:y,labelHeight:m["default"].getRenderedLabelsMaxHeight(e,c),labelPosition:d,isCategoryLabel:s,isLineTypeChart:v,isPointOnColumn:T,halfLabelDistance:f}),A.top=Math.round(A.top),A.left=Math.round(A.left),r.renderLabel({isPositionRight:p,isVertical:a,isCenter:_,labelSize:i,labelText:e[l],paper:n.paper,positionTopAndLeft:A,set:n.axisSet,theme:c}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var o=m["default"].getRenderedLabelWidth(t);return!g["default"].isUndefined(i)&&i-e=0&&oe;var o=i.findAbsoluteCategoryIndex(t),n=i.findAbsoluteCategoryIndex(e);return o>=0&&o>n},t.prototype._renderOptionalLine=function(t,e,i,o){var n=this._createOptionalLinePositionMap(o,t,e),r=void 0;return n.start>=0&&n.start<=e&&(i.width=1,i.color=o.color||"transparent",i.opacity=o.opacity,r=this._renderLine(n.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,o){var n=this,a=o.range;a&&a.length&&this._makeRangeTo2DArray(o);var s=o.range.map(function(i){return n._createOptionalLinePositionMap({range:i},t,e)});return o.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=o.color||"transparent",i.opacity=o.opacity;var s=t.end-t.start;a=n._renderBand(t.start+n.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._renderOptionalLine.bind(this,n,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._makeOptionalBand.bind(this,n,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,o=this._makeHorizontalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.top,u=a.left;o.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+n.dimension.height),o=e.paper.path(i);o.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(o)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,o=this._makeVerticalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.left,u=a.top,l=o[1]-o[0];o.forEach(function(t,i){var o="M"+s+","+(l*i+u)+"H"+(s+n.dimension.width),a=e.paper.path(o);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,o=d["default"].makeTickPixelPositions(t,i.validTickCount);return o.shift(),o},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var o=Math.round(t/2),n=t-o,r=d["default"].makeTickPixelPositions(o,e),a=d["default"].makeTickPixelPositions(n,e,o+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=d["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,o=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,n){e._animateItemForAddingData(i,t,function(t){o[n].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var o=this;t.forEach(function(t,n){var r=t.getBBox();r.x-e.tickSize0&&c<180?"end":c>180&&c<360?"start":"middle",u.push({left:d.x,top:i-d.y,anchor:f})}return u}function s(t){return new A(t)}e.__esModule=!0,e["default"]=s;var u=i(50),l=o(u),h=i(25),p=o(h),c=i(9),d=o(c),f=i(34),m=o(f),y=i(7),g=o(y),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,T=d["default"].RADIAL_MARGIN_FOR_CATEGORY,b=d["default"].RADIAL_CATEGORY_PADDING,A=function(){function t(e){n(this,t),this.className="tui-chart-plot-area",this.options=g["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=m["default"].get(_,"radialPlot"),this.drawingType=_}return t.prototype._renderPlotArea=function(t,e,i,o){var n={paper:t,layout:e,plotPositions:i,labelData:o,theme:this.theme,options:this.options};return this.graphRenderer.render(n)},t.prototype._makePositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,a=o.top,s=i.width,u=i.height;s=s-v-T,u=u-v-T;var l=p["default"].sum([s/2,v/2,T/2,n]),h=u/2-v/2-T/2-a,c=t.yAxis.tickCount,d=t.xAxis.labels.length;return r({width:s,height:u,centerX:l,centerY:h,angleStepCount:d,stepCount:c})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,r=o.top,s=i.width,u=i.height;s=s-v-b,u=u-v-b;var l=p["default"].sum([s/2,v/2,b/2,n]),h=u/2-v/2-b/2-r,c=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:h,angleStepCount:c})},t.prototype._makeLabelData=function(t,e,i){for(var o=t.xAxis.labels,n=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[o][0]:"",a=t[o].length>1?t[o][1]:"";n=r+"~"+a}i.push(n)}return i}function l(t,e){for(var i=[],o=0;o",x["default"].forEach(t,function(t,n){var r=0!==i||0===n?' class="number"':"",a="<"+o+r+">"+t+"";e+=a}),e+=""}),e+=""}function f(t){var e=A["default"].oneLineTrim(y,d(t));return e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,o=void 0===i?"\n":i,n=e.itemDelimiter,r=void 0===n?",":n,a=t.length-1,s="";return x["default"].forEachArray(t,function(t,e){var i=t.length-1;x["default"].forEachArray(t,function(t,e){var o=x["default"].isNumber(t)?t:'"'+t+'"';s+=o,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),g=i(54),_=o(g),v=i(9),T=o(v),b=i(8),A=o(b),E=i(7),x=o(E),D={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},L={xls:f,csv:m},S=[].concat(r(T["default"].DATA_EXTENSIONS)),C={downloadData:function(t,e,i,o){var n=a(i),r=D[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=L[e](n,o);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=D[e]+s),_["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=x["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return S}};Object.assign(C,{_makeCsvBodyWithRawData:m,_makeXlsBodyWithRawData:f,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:h,_get2DArrayFromHeatmapRawData:c,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=C},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(){var t=p["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,o=atob(t.substr(t.indexOf(",")+1)),n=[],r=0;r0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();g["default"].CustomEvents.mixin(A),r.componentType="legend",r.Legend=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;o=r?o.substr(0,4):String(n);var a=o+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,o=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return m["default"].isArray(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?p["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=n),t.chartType=e,t.chartTypes=i,t.xAxisType=o.type,t.dateFormat=o.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(62),s=o(a),u=i(67),l=o(u),h=i(69),p=o(h),c=i(16),d=o(c),f=i(7),m=o(f);r.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(63),l=o(u),h=i(64),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),y=i(65),g=o(y),_=i(7),v=o(_),T="#aaa",b=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(v["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=g["default"].tplDefault;return m["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):m["default"].isPieChart(this.chartType)||m["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=g["default"].tplPieChart:this.dataProcessor.coordinateType?e=g["default"].tplCoordinatetypeChart:m["default"].isBulletChart(this.chartType)?e=g["default"].tplBulletChartDefault:m["default"].isHeatmapChart(this.chartType)&&(e=g["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=g["default"].tplBoxplotChartDefault;return v["default"].isNumber(t.outlierIndex)&&(e=g["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,o=this._findTooltipData(t,e),n=this._findTooltipColor(t,e,o);return m["default"].isBoxplotChart(this.chartType)&&v["default"].isNumber(e.outlierIndex)&&(o.outlierIndex=e.outlierIndex),this.colorSpectrum&&(n=this.colorSpectrum.getColor(o.colorRatio||o.ratio)),o.chartType=this.chartType,o.cssText="background-color: "+n,o=Object.assign({suffix:this.suffix},o),o.valueTypes=this._makeHtmlForValueTypes(o,["x","y","r"]),this.templateFunc(o.category,o,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],o=e.groupIndex;return m["default"].isRadialChart(t)&&i.length===o&&(o=0),Object.assign({},v["default"].pick(i,o,e.index))},e.prototype._findTooltipColor=function(t,e,i){var o=m["default"].isBarTypeChart(this.chartType),n=m["default"].isBoxplotChart(this.chartType),r=(o||n)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return m["default"].isBulletChart(this.chartType)?s=a:m["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?T:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=d["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=d["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,o=this.dataProcessor.getLegendItem(i);if(!o)return null;var n=o.chartType,r=o.label,a=v["default"].extend({chartType:n,legend:r,legendIndex:i,index:t.groupIndex},e);return m["default"].isBoxplotChart(n)&&v["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],o=i.tooltipLabel,n=this.labelFormatter,r={legend:t,label:o||(i.label?i.label:""),category:e};return n&&(r=n(i,r,"")),r.category=e,v["default"].extend(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=m["default"].isTreemapChart(this.chartType),o={},n={};return v["default"].isArray(e)?o[this.chartType]=e:o=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=m["default"].isBulletChart(r),s=e.map(function(e,n){var s=t.dataProcessor.makeTooltipCategory(i,n,t.isVertical),u=a?i:n;return e?t._makeTooltipDatum(o[r][u],s,e):null});n[r]||(n[r]=[]),n[r].push(s)},i),n},e}(l["default"]);p["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(7),a=o(r),s=i(4),u=o(s),l=i(38),h=o(l),p=i(9),c=o(p),d=i(10),f=o(d),m=i(16),y=o(m),g=i(8),_=o(g),v=function(){function t(e){n(this,t);var i=y["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=h["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?c["default"].TOOLTIP_PIE_ANIMATION_TIME:c["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=c["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?n-=r+a:e.indexOf("center")>-1&&r?n-=r/2:n+=a,n},_makeTopPositionOfNotBarChart:function(t,e,i,o){var n=t,r=i||0;return e.indexOf("bottom")>-1?n+=r+o:e.indexOf("middle")>-1&&r?n+=r/2:n-=r+s["default"].TOOLTIP_GAP,n},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,o=t.dimension,n=t.alignOption,r=void 0===n?"":n,a=o.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=o.height,h=e.left-this.layout.position.left+i.left,p=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,r,a,u),top:this._makeTopPositionOfNotBarChart(p,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},r["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("left")>-1?o-=i:e.indexOf("center")>-1?o-=i/2:o+=s["default"].TOOLTIP_GAP,o},_makeTopPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("top")>-1?o-=i:e.indexOf("middle")>-1&&(o-=i/2),o},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=n.height-(i.height||0),u=n.width,l=i.left+i.width+o.left-e.left,h=i.top+o.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(h,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-n.width)/2+o.left-e.left,top:i.top+i.height/2-r+o.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,o=this.layout.position;return e.left=Math.max(e.left,-o.left),e.left=Math.min(e.left,i.width-o.left-t.width),e.top=Math.max(e.top,-o.top),e.top=Math.min(e.top,i.height-o.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,o=void 0,n=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",o="left",n=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",o="top",n=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:o,addPadding:n})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,o=e.sizeType,n=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1;if(s<0){var h=e.dimension[o],p=i[o],c=t[n]+(p+h)*u;t[n]=c}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var o=this.tooltipContainer.parentNode.getBoundingClientRect(),n=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},h=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-o.left+s["default"].CHART_PADDING,top:e.mousePosition.top-o.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,n)||h!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,h),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,n),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,n),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(n,e.silent),p["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var c=this._makeTooltipPosition(r["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,c,i),this.eventBus.fire("hoverSeries",n,e.chartType),this._fireAfterShowTooltipPublicEvent(n,{element:t,position:c},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var o=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",o)}},_executeHidingTooltip:function(t){p["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var o=this,n=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",n,r),this._fireBeforeHideTooltipPublicEvent(n,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",n,r),this._isChangedIndexes(this.prevIndexes,n)&&delete this.prevIndexes,setTimeout(function(){o._isShowedTooltip(t)||(o._fireBeforeHideTooltipPublicEvent(n,a),o._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i); -},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){r["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(66),r=o(n),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
',HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var o=t;return Object.entries(e).forEach(function(t){var e=i(t,2),n=e[0],r=e[1],a=new RegExp("{{\\s*"+n+"\\s*}}","g");o=o.replace(a,String(r).replace("$","$"))}),o}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new P(t)}e.__esModule=!0,e["default"]=s;var u=i(63),l=o(u),h=i(68),p=o(h),c=i(9),d=o(c),f=i(10),m=o(f),y=i(8),g=o(y),_=i(36),v=o(_),T=i(65),b=o(T),A=i(7),E=o(A),x=i(16),D=o(x),L=d["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,S=d["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,C=d["default"].SERIES_EXPAND_SIZE,M=d["default"].PUBLIC_EVENT_PREFIX,P=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevIndex=null,o.isBullet=D["default"].isBulletChart(i.chartType),o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,o){var n=b["default"].tplGroupItem,r=b["default"].tplGroupCssText,a=D["default"].isBarTypeChart(this.chartType),s=D["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,o),h=void 0,p=e.map(function(t,e){var i=t.type,o="data"!==i&&h!==i,a="";return h=i,t.value?(o&&(a=b["default"].tplGroupType({type:i})),a+=n(E["default"].extend({cssText:r({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:p})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=L:this.options.align=S)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,o=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new p["default"](i,o,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],o=Object.keys(this.originalTheme);return o.forEach(function(o){var n=e.originalTheme[o].colors;n.forEach(function(e,n){var r=t[o]||t;r[n]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,o){var n=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(o,e-o,t.isVertical),values:n}})},e.prototype._makeColors=function(t,e){var i=0,o=this.dataProcessor.getLegendData(),n=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=v["default"].series.colors.slice(0,o.length);return E["default"].pluck(o,"chartType").map(function(e){r!==e&&(n=t[e]?t[e].colors:a,i=0),r=e;var o=n[i];return i+=1,o})},e.prototype._makeItemRenderingData=function(t,e){var i=this,o=this.dataProcessor,n=this.suffix;return t.map(function(t,r){var a={value:t.label,type:t.type,suffix:n,legend:""},s=void 0;return i.isBullet?s=o.getLegendItem(e):(s=o.getLegendItem(r),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var o=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,o,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=m["default"].create("DIV","tui-chart-group-tooltip-sector");m["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var o=void 0;return o=i?1:e.end-e.start,{dimension:{width:o,height:t},position:{left:e.start,top:C}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:C,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,o){return i?this._makeVerticalTooltipSectorBound(t,e,o):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,o,n){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(g["default"].renderDimension(r,s.dimension),g["default"].renderPosition(r,s.position),m["default"].addClass(r,"show")),n&&(o-=1),this.eventBus.fire("showGroupAnimation",o)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();m["default"].hasClass(e,"show")?m["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),m["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var o=this.getTooltipDimension(t),n=this.positionModel.calculatePosition(o,e.range);this._moveToPosition(t,n,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:n},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(M+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,o){o||this.eventBus.fire(M+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var o=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,o),this._hideTooltipSector(e),m["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(M+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=P},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=function(){function t(e,i,o,r){n(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=o,this.options=r,this.positions={},this._setData(e,i,o,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var o=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:o,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var o=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:o,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,o){var n=this._makeVerticalData(t,e,o.align),r=this._makeHorizontalData(t,e,o.align),a=o.offset||{};i?(this.mainData=n,this.subData=r):(this.mainData=r,this.subData=n),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var o=e.start===e.end,n=9,r=5,s=o?n:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:o?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,o=void 0;return o=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,o){var n=void 0;return t<-o.areaPosition&&(n=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:o.basePosition}),t=this._makePositionValueDiff(n,i,o)>0?-o.areaPosition:n),t},t.prototype._adjustForwardPositionValue=function(t,e,i,o){var n=this._makePositionValueDiff(t,i,o);if(n>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:o.basePosition});r<-o.areaPosition?t-=n:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,o){return o.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,o):o.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,o):(t=Math.max(t,-o.areaPosition),t=Math.min(t,o.chartSize-o.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var o=this._calculateMainPositionValue(t[i.sizeType],e,i);return o=this._addPositionOptionValue(o,i.positionType),o=this._adjustMainPositionValue(o,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),o=this.mainData,n=this.subData,r=this.positions[i];return r||(r={},r[o.positionType]=this._makeMainPositionValue(t,e,o),r[n.positionType]=this._makeSubPositionValue(t,n),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new _(t)}e.__esModule=!0,e["default"]=s;var u=i(9),l=o(u),h=i(63),p=o(h),c=i(64),d=o(c),f=i(65),m=o(f),y=i(7),g=o(y),_=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.mapModel=i.mapModel,o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t){return m["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),o=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:o,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),o=g["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return o},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(p["default"]);d["default"].mixin(_),s.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(9),p=o(h),c=i(56),d=o(c),f=i(10),m=o(f),y=i(8),g=o(y),_=i(7),v=o(_),T=function(t){function e(i){n(this,e);var o=r(this,t.call(this));return o.chartType=i.chartType,o.eventBus=i.eventBus,o.isDown=!1,o.drawingType=p["default"].COMPONENT_TYPE_DOM,o}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){g["default"].renderDimension(t,this.layout.dimension),g["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,m["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||m["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*p["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].browser.firefox?d["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):d["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(72),a=o(r),s=i(73),u=o(s),l=i(9),h=o(l),p=i(56),c=o(p),d=i(16),f=o(d),m=i(10),y=o(m),g=i(8),_=o(g),v=i(7),T=o(v),b=function(){function t(e){if(n(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=f["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?h["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=f["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=h["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=_["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var o=this._getRenderingBound(),n=o.dimension,r=o.position;_["default"].renderDimension(t,n),_["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return y["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),y["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=_["default"].getStyle(this.mouseEventDetectorContainer).height,_["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var o=this.mouseEventDetectorContainer.getBoundingClientRect(),n=o.left,r=o.right,a=o.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!T["default"].isUndefined(i)||i){var p=r-u,c=n+u;t=Math.min(Math.max(t,c),p)}return l.x=t-n+s.left-h["default"].CHART_PADDING,T["default"].isUndefined(e)||(l.y=e-a+s.top-h["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=_["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,o=void 0;return o=f["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(o,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){y["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),y["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){c["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();T["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(16),a=o(r),s=i(11),u=o(s),l=i(7),h=o(l),p=function(){function t(e,i,o,r,s){n(this,t),this.isLineType=a["default"].isLineTypeChart(o,s),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var o=e,n=i/2;return h["default"].range(0,t).map(function(){var t={min:o-n,max:o+n};return o+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var o=(t+1)/(e-1),n=this._getRanges(e,i||0,o);return n[e-1].max-=1,n},t.prototype._makeNormalData=function(t,e,i){var o=e-1,n=t/o,r=i||0;return h["default"].range(0,o).map(function(){var e=u["default"].min([t+r,n+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var o=i?"width":"height",n=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[o],e,t.position[n]):this._makeNormalData(t.dimension[o],e,t.position[n])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,o){return!(i.min=t)||(e=o,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],o=void 0,n=void 0;return this.isLineType?(n=parseInt(i.max-(i.max-i.min)/2,10),o={start:n,end:n}):o={start:i.min-(e||0),end:i.max-(e||0)},o},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,r=t.top<=o&&t.bottom>=o;return n&&r},t.prototype.findData=function(t,e,i){var o=1e4,n=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);o>e&&(o=e,n=t.sendData)})}return n},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return d["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var o=i.sendData.indexes,n=o.index===t.seriesIndex&&o.outlierIndex===t.outlierIndex;return n&&(e=i.sendData),!n}),e},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=t.chartOptions,i=t.seriesTypes,o=e.chartType,n=e.series,r=n.zoomable,s=n.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?c["default"]:a["default"].isMapChart(o)?y["default"]:a["default"].isBarTypeChart(o)||a["default"].isBoxplotChart(o)||a["default"].isHeatmapChart(o)||a["default"].isTreemapChart(o)||a["default"].isBulletChart(o)?f["default"]:a["default"].isCoordinateTypeChart(o)||a["default"].isPieChart(o)||a["default"].isPieDonutComboChart(o,i)?h["default"]:u["default"],t.chartType=o,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=n;var r=i(16),a=o(r),s=i(75),u=o(s),l=i(78),h=o(l),p=i(79),c=o(p),d=i(80),f=o(d),m=i(70),y=o(m);n.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); -return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(76),p=o(h),c=i(77),d=o(c),f=i(7),m=o(f),y=50,g=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevFoundData=null,o.prevClientPosition=null,o.zoomable=i.zoomable,o.zoomable&&(m["default"].extend(o,p["default"]),o._initForZoom(i.zoomable)),o}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new d["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),o=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,y,o)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(71),r=o(n),a=i(9),s=o(a),u=i(10),l=o(u),h=i(8),p=o(h),c=i(56),d=o(c),f=i(7),m=o(f);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){p["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=r["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,r["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),d["default"].on(document,"mousemove",this._onDrag,this),d["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),d["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),d["default"].off(document,"mousemove",this._onDrag,this),d["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),d["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,o=Math.abs(e-this.startLayerX),n=this.dragSelectionElement;n.style.left=i+"px",n.style.width=o+"px",l["default"].addClass(n,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var o=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(m["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=o?o.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),o=i[1]-i[0];return 0===o?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===o&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,o=this._adjustIndexRange(t,e),n=o[1]-o[0];this.prevDistanceOfRange!==n&&(this.prevDistanceOfRange=n,this.reverseMove=i,this.eventBus.fire("zoom",o))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,o=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===o},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),m["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):r["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,n(a)),this.lastGroupIndex=r,(i=[]).concat.apply(i,n(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var o={},n=1e5,r=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+o||ea+n},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,o=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,o),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,o=e.y;this._isOuterPosition(i,o)&&!m["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(p["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(9),p=o(h),c=i(16),d=o(c),f=i(10),m=o(f),y=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=m["default"].create("DIV",p["default"].CLASS_NAME_RESET_ZOOM_BTN),m["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(83),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),y=d["default"].OVERLAPPING_WIDTH,g=d["default"].TEXT_PADDING,_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:i,left:o,width:0,height:e},end:{top:i,left:n,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+y),e},e.prototype._makeBarChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,p=o.ratioDistance,c=o.value,d=o.startRatio,f=o.stack,m=r*p,y=this._calculateAdditionalLeft(c),g=r*d,_=a+g+y,v=f!==e.prevStack,T=s*u>l,b=T?h:s,A=void 0;if(!i||!this.options.diverging&&v){var E=i?this.dataProcessor.findStackIndex(f):n;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}c>=0?(A=_+e.plusLeft,e.plusLeft+=m):(e.minusLeft-=m,A=_+e.minusLeft),e.prevStack=f;var x=e.top+h-s/2;return T||(x+=(h-s)/2*(u-1)),this._makeBound(m,s,x,_,A)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout,n=o.dimension,r=n.width,a=n.height,s=o.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,o){var n=o*u.groupSize+s,r={baseTop:n,top:n,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+g)/2},e}(l["default"]);p["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(7),a=o(r),s=i(9),u=o(s),l=i(10),h=o(l),p=i(16),c=o(p),d=i(8),f=o(d),m=i(34),y=o(m),g=i(6),_=o(g),v=600,T=a["default"].browser,b=T.msie&&7===T.version,A=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,x=u["default"].CLASS_NAME_SERIES_LABEL,D=function(){function t(e){n(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=y["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=A,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,o=void 0===i?"":i,n=e.labelSuffix,r=void 0===n?"":n,s=f["default"].addPrefixSuffix,u=f["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(f["default"]);return l(t,o,r)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,o=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(o),(this.hasDataForRendering(o)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,o,t)),c["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=f["default"].isOldBrowser()?1:0;f["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,o=e.max,n=o-i,r=0,a=0;return i<=0&&o>=0?(r=(n+i)/n*t,a=(n-o)/n*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return h["default"].hasClass(t,x)?t:h["default"].findParentByClass(t,x)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&_["default"].animateOpacity(this.labelSet,0,1,v)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,o=this.dataProcessor.getLegendItem(i),n=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(n,e.index),s=void 0;return a["default"].isExisty(r)&&(s={chartType:o.chartType,legend:o.label,legendIndex:i},s.index=r.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&h["default"].hasClass(this.seriesLabelContainer,"show")&&(h["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var o=this.graphRenderer[e](t);return i&&h["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),o},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(h["default"].removeClass(this.seriesLabelContainer,"show"),h["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(84),u=o(s),l=i(16),h=o(l),p=i(25),c=o(p),d=i(8),f=o(d),m=i(6),y=o(m),g=i(7),_=o(g),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,A=function(){function t(){n(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0;return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var o=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):o.getFirstSeriesGroup().getSeriesItemCount();var p=n/(l+1),c=this.options.barWidth||this.options.pointWidth,d=p*b,f=a+s;d=this._getBarWidthOptionSize(p,c)||d,h["default"].isColumnChart(this.chartType)&&(f=e-f),h["default"].isBoxplotChart(this.chartType)&&a&&(f-=2*a),u={baseBarSize:e,groupSize:n,barSize:d,pointInterval:p,basePosition:f,itemCount:l,firstAdditionalPosition:p}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,o=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=o.map(function(t){return t.map(function(t){var i=t.start,o=t.startLabel,n=t.endLabel,r={end:e.decorateLabel(n)};return _["default"].isExisty(i)&&(r.start=e.decorateLabel(o)),r})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(o,n,r):u["default"].boundsToLabelPositionsForColumnChart(o,n,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return f["default"].formatValue({value:c["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,o=t.width,n=t.height;return{left:i+o/2,top:e+n/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,o=i.map(function(i,o){var n=t.bounds[o],r=void 0;return n&&i&&(r=e._makeStackedLabelPosition(n.end)),{end:r}});return o},t.prototype.getGroupLabels=function(t,e,i){var o=this,n=h["default"].isNormalStack(this.options.stackType);return t.map(function(t){var r=t.map(function(t){return{end:o.decorateLabel(t.endLabel)}});if(n){e.push(c["default"].sumPlusValues(t.pluck("value")));var a=c["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,o){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[o]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],o=[],n=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,o),l=!0,p=h["default"].isNormalStack(this.options.stackType),c=h["default"].isBarChart(this.chartType),d=c?"width":"height",m=c?"left":"top",g=c?1:-1; -return p&&(u.forEach(function(t,n){var r=i[n],a=o[n];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(r))}),o.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),p=e._makeStackedLabelPosition(l),c=i[a],f=o[a],_=y["default"].getRenderedTextSize(c,n.fontSize,n.fontFamily),v=y["default"].getRenderedTextSize(f,n.fontSize,n.fontFamily),b=(u[d]+_[d])/2,A=(l[d]+v[d])/2;h[m]+=(b+T)*g,p[m]-=(A+T)*g,t.push({end:h}),o.length&&t.push({end:p})})),this.graphRenderer.renderSeriesLabel(t,s,u,n,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();A.mixin=function(t){Object.assign(t.prototype,A.prototype)},e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,o,n){var r=t.value,a=r>=0,s={end:n(e,i,t.endLabel||t.label,o,a)};return t.isRange&&(a=r<0,s.start=n(e,i,t.startLabel,o,a)),s},boundsToLabelPositions:function(t,e,i,o,n){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return o=o||this._makePositionForBoundType.bind(this),n=!!n,t.map(function(t,n){var s=e[n];return t.map(function(t,e){var n=s[e].end;return r._makePositionMap(t,n,a,i,o)})},n)},_makePositionForBarChart:function(t,e,i,o,n){var r=s["default"].getRenderedLabelWidth(i,o),a=t.left;return n?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var o=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},_makePositionForColumnChart:function(t,e,i,o,n){var r=t.top;return n?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var o=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,o=t.map(function(t){var o=e[t.id],n=void 0;return o&&(n=i._makePositionForBoundType(o)),n});return o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(83),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),y=i(8),g=o(y),_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:o,left:i,width:t,height:0},end:{top:n,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,p=Math.abs(r*o.ratioDistance),c=r*o.startRatio,f=a+c+d["default"].SERIES_EXPAND_SIZE,m=o.stack!==e.prevStack,y=s*u>l,g=y?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&m){var T=i?this.dataProcessor.findStackIndex(o.stack):n;e.left=e.baseLeft+g*T,e.plusTop=0,e.minusTop=0}return o.value>=0?(e.plusTop-=p,_=f+e.plusTop):(_=f+e.minusTop,e.minusTop+=p),e.prevStack=o.stack,v=y?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,p,v,f,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=g["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+d["default"].TEXT_PADDING)/2},e}(l["default"]);p["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new c(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(87),p=o(h),c=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);p["default"].mixin(c),s.componentType="series"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(11),a=o(r),s=i(9),u=o(s),l=i(16),h=o(l),p=i(25),c=o(p),d=i(8),f=o(d),m=i(7),y=o(m),g=u["default"].SERIES_EXPAND_SIZE,_=u["default"].SERIES_LABEL_PADDING,v=u["default"].MAX_HEIGHT_WORD,T=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){n(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,o=e.width,n=this._getSeriesDataModel(),r=t||o||0,a=n.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=r/(a>1?a-1:a):(l=r/a,u+=l/2),n.map(function(t){return t.map(function(t,e){var o=void 0;return y["default"].isNull(t.end)||(o={left:u+l*e,top:s+i-t.ratio*i},y["default"].isExisty(t.startRatio)&&(o.startTop=s+i-t.startRatio*i)),o})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),o=e.height,n=this.axisDataMap.xAxis,r=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return n.sizeRatio&&(l=c["default"].multiply(s,n.positionRatio),s=c["default"].multiply(s,n.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return y["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:r+o-t.ratioMap.y*o},y["default"].isExisty(t.ratioMap.start)&&(e.startTop=o-t.ratioMap.start*o+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,o){var n=t.top,r=void 0;return r=h["default"].isValidStackOption(this.options.stackType)?(t.startTop+n-i)/2+1:e>=0&&!o||e<0&&o?n-i-_:n+_},t.prototype._makeLabelPosition=function(t,e,i,o,n){return{left:t.left,top:this._calculateLabelPositionTop(t,o,e/2,n)}},t.prototype._getLabelPositions=function(t,e){var i=this,o=a["default"].pivot(this.seriesData.groupPositions),n=f["default"].getRenderedLabelHeight(v,e);return t.map(function(t,e){return t.map(function(t,r){var a=o[e][r],s=i._makeLabelPosition(a,n,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,n,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,o=t.isRange,n=t.startLabel,r={end:e.decorateLabel(i)};return o&&(r.start=e.decorateLabel(n)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,y["default"].bind(this._renderGraph,this)),this.animateComponent(!0),y["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=T,o=this._isChangedAxisLimit();o&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=f["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+g},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,o=t.axisDataMap,n=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=o;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(n,s);r&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,h)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){y["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(9),p=o(h),c=i(25),d=o(c),f=i(50),m=o(f),y=i(7),g=o(y),_=p["default"].COMPONENT_TYPE_RAPHAEL,v=p["default"].RADIAL_PLOT_PADDING,T=p["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(87),p=o(h),c=i(16),d=o(c),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a=0&&!n&&(n=e),n},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,o=e.position.top,n=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||n,s=t?t.top:0,u=i-s+o,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return d["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,o=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,n=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:n,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:o,isAvailable:function(){return n&&n.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);p["default"].mixin(f),s.componentType="series",s.AreaChartSeries=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new y(t)}e.__esModule=!0,e["default"]=s;var u=i(9),l=o(u),h=i(82),p=o(h),c=i(91),d=o(c),f=i(7),m=o(f),y=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:o},mousePosition:n},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,n)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,o=this.options.allowSelect,n=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:n,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;o&&r&&(this.onSelectSeries({chartType:n,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(91),p=o(h),c=i(9),d=o(c),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0&&(t%=T),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,o=void 0;return o=ei?T-(e-i):T},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,o=t.r,n=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),h=this.options.startAngle,p=.5*o;if(a&&(p+=p*a),!l)return null;var c=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=h+a,l=h+a/2,c={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:n,angle:l};return h=u,{ratio:r,angles:c,centerPosition:e._getArcPosition(y["default"].extend({r:p},d)),outerPosition:e._getArcPosition(y["default"].extend({r:o+e.legendLongestWidth/2+b},d))}});return c},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/A,10)+1;return e&&t%A===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var o=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:o.start===o.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===M,e=this._calculateBaseSize(),i=0,o=this.isShowOuterLabel; -return t&&(o=this.dataProcessor.isComboDonutShowOuterLabel()),i=o?E:x,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=o/2+s,h=n/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,h+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,h-=u):this._isInQuadrantRange(2,3)?h-=u:this._isInQuadrantRange(3,3)?(l+=u,h-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?h+=u:this._isInQuadrantRange(4,4)&&(l+=u,h+=u)),{cx:l,cy:h}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*D),top:t.cy-t.r*Math.cos(t.angle*D)}},e.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,n)},e.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",y["default"].extend({indexes:{groupIndex:i,index:o},mousePosition:n},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return _["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,o=this.options,n=o.showLegend,r=o.showLabel,a=_["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=_["default"].getRenderedTextSize(this.valueLabels[0],L,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(o){var u=o.ratio?Object.assign({},o[t]):null,l=u&&n&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=y["default"].extend({},e.middle);i.left-1&&n!==i;o&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:n,legendIndex:e.legendIndex}},r),o&&n>-1&&(this.prevClickedIndex=n))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(h["default"]);s.componentType="series",s.PieChartSeries=P},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new c(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(84),p=o(h),c=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,o){var n=this.layout,r=n.dimension.height,a=n.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(o+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,o=i.width,n=i.height,r=o/this.dataProcessor.getCategoryCount(!1),a=n/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,o){return t._makeBound(r,a,i,o)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),o=i.getSeriesItem(e.groupIndex,e.index),n=o.ratio,r=o.label;this.eventBus.fire("showWedge",n,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this.seriesData.groupBounds,n=this.theme.label,r=this.selectedLegendIndex,a=p["default"].boundsToLabelPositions(i,o,n),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,n,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var o=this,n=this._getSeriesDataModel(),r=v["default"].extend({},this.layout.dimension,this.layout.position),a=n.findSeriesItemsByParent(t);return i=i||r,e=v["default"].extend(e||{},p["default"].squarify(i,a)),a.forEach(function(t){e=o._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),o=void 0;return o=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],n=null;return i&&o(e)&&(n={end:i}),n},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var o=!1;if(e&&i.id!==e.id&&i.group===e.group){var n=t.findParentByDepth(i.id,e.depth+1);n&&n.parent===e.id&&(o=!0)}return o},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this._getBoundMap(),n=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=d["default"].boundsToLabelPostionsForTreemap(a,o,n);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,n)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){g["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(25),r=o(n),a=i(11),s=o(a),u=i(7),l=o(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/r["default"].sum(t)},_makeBaseData:function(t,e,i){var o=this._calculateScale(l["default"].pluck(t,"value"),e,i),n=t.map(function(t){return{id:t.id,weight:t.value*o}}).sort(function(t,e){return e.weight-t.weight});return n},_worst:function(t,e,i,o){var n=t*t,r=o*o;return Math.max(r*i/n,n/(r*e))},_changedStackDirection:function(t,e,i,o){var n=s["default"].min(e),r=s["default"].max(e),a=this._worst(t,n,r,i),u=this._worst(t+o,Math.min(n,o),Math.max(r,o),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,f=p+e.plusTop):(f=p+e.minusTop,e.minusTop+=l);var m=e.left+r-a/2,y=(o.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+c,left:m+a/2}});return{start:{top:p,left:m,width:a,height:0},end:{top:f,left:m,width:a,height:l},min:{top:s*(1-o.minRatio)+c,left:m,width:a,height:0},max:{top:s*(1-o.maxRatio)+c,left:m,width:a,height:0},median:{top:s*(1-o.medianRatio)+c,left:m,width:a,height:0},outliers:y}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=g["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+v)/2},e}(l["default"]);p["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new A(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(8),p=o(h),c=i(9),d=o(c),f=d["default"].BULLET_TYPE_ACTUAL,m=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,y=d["default"].BULLET_TYPE_RANGE,g=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,T=d["default"].BULLET_MARKER_DETECT_PADDING,b=d["default"].MAX_HEIGHT_WORD,A=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.isVertical=i.isVertical,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),o={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var n=t._makeBulletChartBound.bind(t,i,o),r=e.map(n);return t._updateIterationData(o,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=n,u=o,l=n):(u=n,l=o);var h=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:h}},e.prototype._makeBulletChartBound=function(t,e,i){var o=i.type,n=void 0;return o===f?n=this._makeBarBound(i,m,t,e):o===y?n=this._makeBarBound(i,g,t,e):o===_&&(n=this._makeLineBound(i,v,t,e)),n.type=o,n},e.prototype._makeBarBound=function(t,e,i,o){var n=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*n,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(o,i,a,s,u):this._makeHorizontalBarBound(o,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,o,n){return{top:t.top-n,left:t.left+(e.itemWidth-i)/2,width:i,height:o}},e.prototype._makeHorizontalBarBound=function(t,e,i,o,n){return{top:t.top+(e.itemWidth-i)/2,left:t.left+n-o,width:o,height:i}},e.prototype._makeLineBound=function(t,e,i,o){var n=i.itemWidth,r=i.valueAxisWidth,a=n*e,s=r*t.endRatio,u=T,l=T,h=void 0,p=void 0;return this.isVertical?(h=o.top-s,p=o.left+(n-a)/2,l=a):(h=o.top+(n-a)/2,p=o.left+s,u=a),{top:h,left:p,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==y&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,o=this.seriesData.groupBounds,n=p["default"].getRenderedLabelHeight(b,e);return o.map(function(t){var e=[];return t.forEach(function(t){t.type!==y&&e.push(i._makePositionByBound(t,n))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,o=t.left,n={};if(this.isVertical){var r=t.width||t.length;n.top=i-e,n.left=o+r/2}else{var a=t.width||0,s=t.height||t.length;n.top=i+s/2,n.left=o+5+(a||0)}return n},e}(l["default"]);s.componentType="series",s.BulletChartSeries=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new S(t)}e.__esModule=!0,e["default"]=r;var a=i(7),s=o(a),u=i(101),l=o(u),h=i(9),p=o(h),c=i(10),d=o(c),f=i(25),m=o(f),y=i(8),g=o(y),_=i(56),v=o(_),T=i(16),b=o(T),A=p["default"].COMPONENT_TYPE_DOM,E=p["default"].MAP_CHART_ZOOM_AREA_HEIGHT,x=p["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=p["default"].CHART_PADDING,L=s["default"].browser.msie&&s["default"].browser.version<=8,S=function(){function t(e){n(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,o=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=o&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=A,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!L){var i=m["default"].sum([t.positionMap.series.top,-E,x]);this.isMapLegendTop&&(i=t.positionMap.legend.top-x);var o={top:i,right:D};e=d["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,g["default"].renderPosition(e,o),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return d["default"].hasClass(t,e)||(i=d["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),o=i.getAttribute("data-magn"),n=this._calculateMagn(o);return n>5?this.magn=5:n<1?this.magn=1:n>=1&&this._zoom(n),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(66),r=o(n),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),o=this.getCategorieDateType(),n=null;return i.forEach(function(i,r){return o&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(n=r),I["default"].isNull(n)}),n},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,o){var n=e===t;return n&&(i=o),!n}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),o=e?"yAxis":"xAxis",n=this.options[o]||{},r=this.options.tooltip||{};return L["default"].isDatetimeType(r.type)?i=C["default"].formatDate(i,r.dateFormat):L["default"].isDatetimeType(n.type)&&(i=C["default"].formatDate(i,n.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var o=!i,n=this._getTooltipCategory(t,o),r=this.getCategoryCount(!o);return r&&(n+=", "+this._getTooltipCategory(r-e-1,!o)),n},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=x["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return I["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!I["default"].isExisty(t)){var e=this.chartType;t=L["default"].isCoordinateTypeChart(e),t=t||L["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||L["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],o=void 0;o=L["default"].isBoxplotChart(this.chartType)?y["default"]:L["default"].isTreemapChart(this.chartType)?T["default"]:L["default"].isBulletChart(this.chartType)?_["default"]:f["default"],this.seriesDataModelMap[t]=new o(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],o=null;return i.forEach(function(e){var i=e.name===t;return i&&(o=e),!i}),o},e.prototype._pushValue=function(t,e,i){var o=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),o&&o.data.push(e)},e.prototype._pushValues=function(t,e,i){var o=this;t.forEach(function(t,n){o._pushValue(t,e[n],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&I["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var o=u(i,2),n=o[0],r=o[1];e._pushValues(r,t[n],n)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var o=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),o&&o.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),o=i[0],n=i[1];t._shiftValues(n,o)})},e.prototype.addDynamicData=function(t,e){ -this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new A["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return k(e.min)&&k(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return k(e.min)||k(e.max)},e.prototype._createValues=function(t,e,i){var o=void 0,n=this.options,r=n.plot,a=n[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),h=this.isLimitOptionsInsufficient(i),p=L["default"].isLineChart(t)||L["default"].isAreaChart(t)||L["default"].isLineAreaComboChart(t,this.seriesTypes),c=this.defaultValues;if(L["default"].isComboChart(t))o=[],this._eachByAllSeriesDataModel(function(t){o=o.concat(t.getValues(e))});else if(u&&h)if(!l&&h&&(c=c.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(o=this.getDefaultDatetimeValues(),p&&r){var d=this.getValuesFromPlotOptions(r,s);o=o.concat(d)}}else o=c;else o=this.getSeriesDataModel(t).getValues(e);return o},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var o=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(o)}),i},e.prototype.getValues=function(t,e,i){var o=t+e;return this.valuesMap[o]||(this.valuesMap[o]=this._createValues(t,e,i)),this.valuesMap[o]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,o){i.each(function(e,i){t(e,i,o)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?I["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return I["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},o=void 0;return"visibility"===t?o=this._isVisibleLegend:"label"===t&&(o=this._pickLegendLabel),o&&(Object.entries(e).forEach(function(t){var e=u(t,2),n=e[0],r=e[1];i[n]=r.map(o)}),i=I["default"].filter(i,I["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),o=this.seriesTypes||[this.chartType],r=void 0;I["default"].isArray(e)?(r=[this.chartType],r[this.chartType]=e):(o=this.seriesTypes,r=e);var a=o.map(function(t){return r[t].map(function(e,o){var n=I["default"].isArray(i[t]);return{chartType:t,label:e,visible:n?i[t][o]:i[o]}})});return(t=[]).concat.apply(t,n(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){L["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var o=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),o.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=P["default"].sumPlusValues(t),o=P["default"].sumMinusValues(t);i=i.concat([e,o])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,o,n){var r=void 0;return L["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,o),L["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=L["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):L["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,o,n),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),o=i.getMaxValue("r"),n=function(t){return t.r/o>h["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,n),maxItem:i.findMaxSeriesItem(e,n)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(c["default"]);e["default"]=B},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(11),a=o(r),s=i(8),u=o(s),l=i(25),h=o(l),p=i(7),c=o(p),d=function(){function t(){n(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var o=this.getMaxValue(t,i),n=this.getFormatFunctions();return u["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var o=this.getMinValue(t,i),n=this.getFormatFunctions();return u["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=h["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[c["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[c["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=c["default"].pick(this.options,"chart","format"),e=[];return c["default"].isFunction(t)?e=[t]:c["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=y["default"].sumPlusValues(t),i=Math.abs(y["default"].sumMinusValues(t)),o=e>0&&i>0?.5:1;return o},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=y["default"].sumPlusValues(e),o=Math.abs(y["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,o)})},t.prototype._makeSubtractionValue=function(t){var e=f["default"].allowMinusPointRender(this.chartType),i=0;return!e&&f["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=f["default"].isAllowedStackOption(this.chartType);i&&f["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&f["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=y["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,o=t.yAxis,n=e?_["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),o&&(s=Math.abs(o.max-o.min),u=this._makeSubtractionValue(o)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",n,0),T["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,o){i.push(t(e,o))},e),i},t}();e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(25),s=o(a),u=i(7),l=o(u),h=function(){function t(e){n(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),o=i[0],n=i[1];e[o]=s["default"].sum(n.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var o=e[i.stack];i.addRatio(o,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var o=i.value>=0?t:e;i.addRatio(o,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=h},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(8),l=o(u),h=i(25),p=o(h),c=i(16),d=o(c),f=i(7),m=o(f),y=function(){function t(e){n(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,d["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),o="makingSeriesLabel",n=i.length>1,a=r(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),m["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:o,legendName:this.legendName}),this.endLabel=this.label,n&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return m["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){m["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=p["default"].calculateRatio(this.value,t,e,i),m["default"].isExisty(this.start)&&(this.startRatio=p["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return m["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(16),s=o(a),u=i(8),l=o(u),h=i(7),p=o(h),c=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(p["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var o=r(t,4);this.r=o[2];var n=o[3];this.label=void 0===n?"":n}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=p["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!p["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],o=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return p["default"].isNumber(e)?o:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return p["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(109),u=o(s),l=i(104),h=o(l),p=i(7),c=o(p),d=Array.prototype.concat,f=function(t){function e(i,o,a,s){n(this,e);var u=r(this,t.call(this));return u.chartType=o,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var o=c["default"].isArray(i)?i:[].concat(i.data),n=o.map(function(o,n){return new u["default"]({datum:o,chartType:t,formatFunctions:e,index:n,legendName:i.name})});return n})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=d.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(h["default"]);e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(8),s=o(a),u=i(25),l=o(u),h=i(7),p=o(h),c=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,o=this._createValues(t),n=r(o,5),a=n[0],u=n[1],l=n[2],h=n[3],p=n[4],c=o.length>5,d=void 0,f=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=p,this.uq=h,this.median=l,this.lq=u,this.min=a,this.index=e,c&&(this.outliers=[],d=this.outliers,o.slice(5).forEach(function(t){d.push({value:t,label:f(t)})})),this.label=f(p),this.uqLabel=f(h),this.medianLabel=f(l),this.lqLabel=f(u),this.minLabel=f(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return p["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){p["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=l["default"].calculateRatio;this.ratio=this.maxRatio=o(this.max,t,e,i),this.uqRatio=o(this.uq,t,e,i),this.medianRatio=o(this.median,t,e,i),this.lqRatio=o(this.lq,t,e,i),this.minRatio=o(this.min,t,e,i),(this.outliers||[]).forEach(function(n){n.ratio=o(n.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return p["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(106),u=o(s),l=i(104),h=o(l),p=i(9),c=o(p),d=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,o=0,n=this.rawSeriesData.map(function(n){var r=[],a=n.data,s=n.markers,l=n.ranges,h=s.length,p=l.length;return l&&p&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:c["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,p)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:c["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:c["default"].BULLET_TYPE_MARKER}))}),o=Math.max(o,h)),r});return this.maxMarkerCount=o,this.maxRangeCount=i,n},e.prototype._createSeriesGroupsFromRawData=function(){return h["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e); -}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(104),l=o(u),h=i(112),p=o(h),c=i(9),d=o(c),f=i(25),m=o(f),y=i(7),g=o(y),_=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a1&&(o+=e.slice(1).join("_")),o},e.prototype._isValidGroup=function(t,e){return!g["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,o=this._makeCacheKey(d["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(o,function(o){return o.depth===t&&i._isValidGroup(o.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(d["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(d["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(25),a=o(r),s=i(8),u=o(s),l=i(7),h=o(l),p=function(){function t(e,i,o){n(this,t),this.chartType=o,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,o=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),n=o,r={legend:this.label||"",value:o,label:n,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return h["default"].isExisty(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return h["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(114),r=o(n),a=i(120),s=o(a),u=i(9),l=o(u),h=i(16),p=o(h);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,o){t.addScale(e,i&&i.options||o||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,o,n){var r=t.get(o),a=null,s=[];if(r){var u=i[o];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:o,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:n})}},_setLayoutBoundsAndScale:function(t,e,i,o,n){var r=n.options,a=n.scaleOption,s=void 0===a?{}:a,u=n.addingDataMode,h=n.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(o,"yAxis",s.yAxis,n.options.yAxis),s.rightYAxis&&this.addYAxisScale(o,"rightYAxis",s.rightYAxis),s.legend&&o.addScale("legend",{},{chartType:n.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var c=o.scaleDataMap;c.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(c.legend.limit),this._registerYAxisDimension(e,i,c,"yAxis",h),this._registerYAxisDimension(e,i,c,"rightYAxis",h),s.xAxis&&o.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),n.hasAxes&&o.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(o.axisDataMap),e.has("xAxis")&&(p["default"].isAutoTickInterval(r.xAxis.tickInterval)&&o.updateXAxisDataForAutoTickInterval(n.prevXAxisData,u),o.updateXAxisDataForLabel(u)),i.registerBoundsData(o.axisDataMap.xAxis)},build:function(t,e,i){var o=this._createBoundsModel(t,i),n=this._createScaleDataModel(t,o,i);this._setLayoutBoundsAndScale(t,e,o,n,i);var r={dimensionMap:o.dimensionMap,positionMap:o.positionMap,limitMap:n.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return n.axisDataMap&&(r.axisDataMap=n.axisDataMap),p["default"].isBubbleChart(i.chartType)&&(r.maxRadius=o.calculateMaxRadius(n.axisDataMap)),n.scaleDataMap.legend&&(r.legendScaleData=n.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(16),u=o(s),l=i(8),h=o(l),p=i(6),c=o(p),d=i(115),f=o(d),m=i(116),y=o(m),g=i(117),_=o(g),v=i(118),T=o(v),b=i(119),A=o(b),E=i(7),x=o(E),D=x["default"].browser,L=a["default"].LEGEND_AREA_H_PADDING,S=D.msie&&D.version<=8,C=function(){function t(e){n(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=x["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=x["default"].isExisty(t.title),i=this.theme.title,o=e?c["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,n=o||0;n&&(n+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:n})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:y["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=x["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,o=this.getDimension("chart").width,n=_["default"].calculate(e,i,t,o);this._registerDimension("legend",n)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",o=this.theme.label,n=this.options.legend.align,r=void 0;if(u["default"].isHorizontalLegend(n)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(n);r=A["default"]._makeHorizontalDimension(e,o,a,s)}else r=A["default"]._makeVerticalDimension(e,i,o);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,o=t.theme,n=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,h=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}h=x["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:y["default"].calculateYAxisWidth(l,h,o,n,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=h["default"].getRenderedLabelHeight(t,this.theme.title));var o=T["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!S&&(o-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+L),o},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=h["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),T["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,o=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),n=this.theme.chart.fontFamily,r=f["default"].calculateCircleLegendWidth(e,t,o,n),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=r-s;this._registerDimension("circleLegend",{width:r,height:r}),l>0&&this._updateLegendAndSeriesWidth(r,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,o=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=o,this.dimensionMap.series.width-=o,this.dimensionMap.mouseEventDetector.width-=o,this.dimensionMap.xAxis.width-=o},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),o=this.getDimension("yAxis").width,n=t+o+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+n-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,o=this.options.legend,n=0,r=void 0,s=void 0;return u["default"].isHorizontalLegend(o.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,n=u["default"].isLegendAlignBottom(o.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(o.align)?s=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,s=this.chartLeftPadding+r+e.width),n=i+a["default"].SERIES_AREA_V_PADDING),{top:n,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),o=this.getDimension("series"),n=this.getDimension("legend"),r=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-n.width)/2,r=u["default"].isLegendAlignTop(e)?i.top-n.height:i.top+o.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),r=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var h={top:r,left:s};return l&&(h.right=l),h},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),o=this.options.legend,n=void 0,r=void 0;return n=u["default"].isLegendAlignLeft(o.align)?0:t.left+e.width,u["default"].isVerticalLegend(o.align)&&o.visible&&(r=this.getDimension("legend").width+a["default"].CHART_PADDING,n+=(r-i.width)/2),{top:t.top+e.height-i.height,left:n}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,o=this.getDimension("legend"),n=u["default"].isLegendAlignTop(e)&&i,r=u["default"].isLegendAlignLeft(e)&&i,s=n?o.height:0,l=r?o.width:0,p=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),c=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=h["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),d=Math.max(0,Math.max(s,c)-a["default"].TITLE_PADDING),f=p+d;p||(f=Math.max(s,c));var m={top:f+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=m,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=h["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,o=h["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-o,this.positionMap.extendedSeries.left-=i-o,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return f["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=C},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,o=void 0;return o=t.isLabelAxis?e/i/2:e/(i-1),parseInt(o,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),o=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,o)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,o){var n=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,o);return Math.max(2*n,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var o=this._calculateRadiusByAxisData(t.series,e),n=t.circleLegend.width;return i?Math.min((n-r["default"].CIRCLE_LEGEND_PADDING)/2,o):o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a),u=i(8),l=o(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,o=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,n=o?o+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=n+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,o,n){var a=e.labelMargin,u=e.prefix,h=e.suffix,p=e.isCenter,c=e.type,d=e.dateFormat,f=e.showLabel,m=e.title,y=0,g=0,_=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,h),o=l["default"].addPrefixSuffix(o,u,h),p&&(_+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(c)&&(t=l["default"].formatDates(t,d),o=l["default"].formatDates(o,d)),a&&a>0&&(_+=a),t=o.length?o:t,f!==!1&&(g=l["default"].getRenderedLabelsMaxWidth(t,i.label)),m&&(y=l["default"].getRenderedLabelWidth(m.text,i.title)),_+=(n?Math.max(g,y):g)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a),u=i(25),l=o(u),h=i(8),p=o(h),c=i(11),d=o(c),f=r["default"].LEGEND_CHECKBOX_SIZE,m=r["default"].LEGEND_ICON_WIDTH,y=r["default"].LEGEND_LABEL_LEFT_PADDING,g=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,o){var n=l["default"].sum([v,i,m,y]),r=l["default"].sum(t.map(function(t){var i=p["default"].getRenderedLabelWidth(t,e);return o&&i>o&&(i=o),i+=n,i+_}));return r=r-_+v},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),o=[],n=[];return t.forEach(function(t){n.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return p["default"].getRenderedLabelsMaxHeight(t,e)})),o=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),n=o*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return n},_makeHorizontalDimension:function(t,e,i,o,n){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,o,n),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,o){var n=p["default"].getRenderedLabelsMaxWidth(e,t),r=0;return o&&n>o&&(n=o),r=l["default"].sum([2*v,i,m,y,n,g]),{width:r,height:0}},calculate:function(t,e,i,o){var n=t.showCheckbox===!1?0:f+y,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,o,n,r):this._makeVerticalDimension(e,i,n,r):a.width=0,a}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a);e["default"]={calculateWidth:function(t,e,i){var o=t.chart.width,n=t.yAxis,a=t.rightYAxis,u=t.legend,l=n.width+a.width,h=u,p=0,c=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(p=h?h.width:0),p||a.width||!i||(c=i/2),o-2*r["default"].CHART_PADDING-l-p-c},calculateHeight:function(t,e,i){var o=t.chart.height,n=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),h=n+l,p=s["default"].isLegendAlignBottom(e.align)?a:0,c=t.xAxis.height+p;return o-2*r["default"].CHART_PADDING-h-c}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a),u=i(25),l=o(u),h=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,p=r["default"].MAP_LEGEND_WEDGE_SIZE,c=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=r["default"].MAP_LEGEND_GRAPH_SIZE,m=r["default"].MAP_LEGEND_LABEL_PADDING,y=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,g=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var o=s["default"].getRenderedLabelWidth(t,i),n=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,r,p]);return{width:l["default"].sum([c,a,d,f,m,Math.max(o,n)]),height:y}},_makeHorizontalDimension:function(t,e,i,o){var n=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*g,n,p]),a=i?_:c,u=o?c:0;return{width:v,height:l["default"].sum([a,r,d,f,m,n,m,u])}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(121),a=o(r),s=i(123),u=o(s),l=i(124),h=o(l),p=i(16),c=o(p),d=i(8),f=o(d),m=i(7),y=o(m),g=function(){function t(e){n(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,o){var n=t.chartType,r="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(n,o.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(r),l=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:o.tickCounts,showLabel:this.options.series.showLabel});return c["default"].isBubbleChart(n)&&(l.overflowItem=this.dataProcessor.findOverflowItem(n,t.valueType)),(c["default"].isMapChart(n)||c["default"].isHeatmapChart(n)||c["default"].isTreemapChart(n))&&(l.useSpectrumLegend=!0),a["default"].makeScaleData(s,u,n,l)},t.prototype._createScaleLabels=function(t,e,i,o){var n=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:o});return u["default"].createFormattedLabels(t,e,r,n)},t.prototype._createScaleData=function(t,e,i){var o=this.options.series,n=e.chartType||this.chartType;e.chartType=n,o=o[n]||o;var r={stackType:i.stackType||o.stackType,diverging:o.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return y["default"].extend(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,o,n){var r=this.dataProcessor.hasCategories(),a=!o&&!r&&i,s=t.labels,u=t.limit,l=t.step,p=s.length,c=h["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!o,isPositionRight:!!n});if(a){var d=this.dataProcessor.getValues(this.chartType,"x"),f=h["default"].makeAdditionalDataForCoordinateLineType(s,d,u,l,p);y["default"].extend(c,f)}return c},t.prototype._createLabelAxisData=function(t,e,i,o,n){var r=t.categories||this.dataProcessor.getCategories(o);return h["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!o,isPositionRight:!!n,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,o,n){var r=c["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,o,n):this._createLabelAxisData(e,i,r,o,n)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,o=y["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],n={};return n.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),n.yAxis=this._createAxisData(t.yAxis,o[0],i.yAxis.label,!0),this.hasRightYAxis&&(n.rightYAxis=this._createAxisData(t.rightYAxis,o[1],i.yAxis.label,!0,!0),n.rightYAxis.aligned||(n.rightYAxis.aligned=n.yAxis.aligned)),n},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=o.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,o)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,o=this.options.series.zoomable,n=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||o?h["default"].updateLabelAxisDataForAutoTickInterval(n,r,a,e):h["default"].updateLabelAxisDataForStackingDynamicData(n,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=n.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),o=e.isLabelAxis,n=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=f["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=y["default"].filter(s,function(t){return!!t});r=y["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount, -this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?h["default"].makeAdditionalDataForMultilineLabels(s,r,n,o,i):h["default"].makeAdditionalDataForRotatedLabels(u,r,n,o,i),this.prevValidLabelCount=r,y["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var o=void 0;return o=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,o=this.scaleDataMap,n={};return o.xAxis&&(n.xAxis=o.xAxis.limit),o.yAxis&&(n.yAxis=o.yAxis.limit),o.rightYAxis&&(n.rightYAxis=o.rightYAxis.limit),o.legend&&(n.legend=o.legend.limit),t.forEach(function(t,o){n[t]=i._findLimit(n,o,e)}),n},t}();e["default"]=g},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(25),h=o(l),p=i(11),c=o(p),d=i(122),f=o(d),m=i(7),y=o(m),g={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var o=t.min,n=t.max;return i.min&&(o=h["default"].subtract(o,e)),i.max&&(n=h["default"].add(n,e)),{min:o,max:n}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,o=this.millisecondTypes,n=this.millisecondMap,r=o.length-1,s=void 0;return i?o.every(function(t,a){var u=n[t],l=Math.floor(i/u),h=void 0;return l&&(h=a0?e.min=0:0===o?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var o=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),n=o.dataLimit;i&&(n=this._makeLimitForDivergingOption(n));var r=(0,f["default"])({min:n.min,max:n.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,o.minDate,o.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===h["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===h["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,o=void 0===i?{}:i,n=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=y["default"].isExisty(o.min),p=y["default"].isExisty(o.max),c=l.min,d=l.max,m=void 0,g=t.options.stepCount;h&&(c=o.min,g=null),p&&(d=o.max,g=null);var _=(0,f["default"])({min:c,max:d,stepCount:g,offsetSize:r});return n||(m=this._isOverflowed(a,_,l,h,p)),m&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,m)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,o,n){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!o&&s.min===i.min&&0!==s.min,l=a||!n&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,o){var n=void 0,r=u["default"].isDivergingChart(i,o.diverging),a=o.overflowItem;return u["default"].isPercentStackChart(i,o.stackType)?n=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(o.type)?n=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(o.stepCount=Math.floor(e/100)),n=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:o})),n}};e["default"]=g},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,o=f.length;i1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,o&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(n(t),n(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),o=s(t.limit.min,t.limit.max,i,e),n=Math.abs(o.max-o.min),r=u(n,i);return{limit:{min:o.min,max:o.max},step:i,stepCount:r}}function h(t,e,i,o,n){var r=Math.abs(e-t),a=r/i;o||(o=Math.ceil(i/m));var s=i/o,u=a*s;return d["default"].isNumber(n)&&ui.labelInterval&&(n=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(n=f["default"].formatDates(n,i.dateFormat)),t.aligned||(o+=1),{labels:n,tickCount:o,validTickCount:o,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,o=t.limit,n=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:o,step:n,options:r,validTickCount:i,dataMin:o.min,distance:o.max-o.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,o,n){var r=y["default"].min(e),a=y["default"].max(e),s=a-r,u=0,l=1;return s&&(i.mina&&(i.max-=o,l-=(a-i.max)/s,n-=1,t.pop())),{labels:t,tickCount:n,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:n,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var o=void 0,n=parseInt(e/i,10),r=null,a=parseInt(t/n,10);return a>1&&(o=t-a*n,o>=a&&(n+=parseInt(o/a,0),o%=a),r={blockCount:n,beforeRemainBlockCount:o,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,o=[],n=c["default"].divisors(t);if(n.forEach(function(i){var n=i/t*e;n>=v&&n<=T&&o.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===o.length){var r=_["default"].range(v,T,b);o=r.map(function(o){return i._makeAdjustingIntervalInfo(t,e,o)})}return o.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),o=null;return i.length&&(o=y["default"].max(i,function(t){return t.blockCount})),o},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,o){o&&(t.tickCount-=1,t.labels.pop());var n=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(n,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,h=0,p=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,h,u),s>0&&t.labels.push(p),_["default"].extend(t,{startIndex:h,tickCount:l,interval:u,positionRatio:h/n,sizeRatio:1-s/n,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var o=e.interval,n=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/o;a&&2*a<=s&&(o*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,n,o),s=t.labels.length-1;var u=r-o*s;_["default"].extend(t,{startIndex:n,interval:o,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:n/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var o=String(t).split(/\s+/),r=[],a=n(o,1),s=a[0];return o.slice(1).forEach(function(t){var o=f["default"].getRenderedLabelWidth(s+" "+t,i);o>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("
")},_createMultilineLabels:function(t,e,i){var o=this._createMultilineLabel;return t.map(function(t){return o(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return f["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,o,n){var r=n.series.width,a=this._calculateXAxisLabelAreaWidth(o,r,e),s=this._createMultilineLabels(t,i,r),u=this._calculateMultilineHeight(s,i,a),l=f["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-n.yAxis.width}},_findRotationDegree:function(t,e,i){var o=null;return a["default"].DEGREE_CANDIDATES.every(function(n){var r=h["default"].calculateRotatedWidth(n,e,i);return o=n,!(r<=t)}),o},_calculateRotatedWidth:function(t,e,i,o){var n=f["default"].getRenderedLabelWidth(e,o),r=h["default"].calculateRotatedWidth(t,n,i);return r-=h["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var o=t;return e&&(o+=i/2),o},makeAdditionalDataForRotatedLabels:function(t,e,i,o,n){var r=f["default"].getRenderedLabelsMaxWidth(t,i),s=n.series.width,u=n.yAxis.width+n.rightYAxis?n.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(o,s,e),p=null,c=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,o){i[t]=e[o]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var o=s(i,2),n=o[0],r=o[1];if(r.stackType){var a=e.findChartType(n);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=void 0;n=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var n=o[i]||o,r=n.stackType;e.dataProcessor.addDataRatios(t[i],r,i)},v["default"].forEachArray(i,n)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=p["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(v["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,seriesTypes:c["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=h["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:o,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},c["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(138),h=o(l),p=i(9),c=o(p),d=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,o=e.coordinate;i&&o&&t.push({type:i,coordinate:o})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),o={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],n=i(t.coordinate,o);return h["default"].extend(o,n),n})},t.prototype._findBoundFromCoordinates=function(t){var e=h["default"].pluck(t,"x").filter(function(t){return!h["default"].isUndefined(t)}),i=h["default"].pluck(t,"y").filter(function(t){return!h["default"].isUndefined(t)}),o=u["default"].max(e),n=u["default"].min(e),r=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:o-n,height:r-a},position:{left:n,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),o=e._findBoundFromCoordinates(i),n=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;n&&(s=n.label,u=n.ratio,r=n.name||t.name,a=n.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:o,labelPosition:e._makeLabelPosition(o,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),o=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return o.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),o=t.map(function(t){return t.bound.position.top}),n=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(n)-u["default"].min(o)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(103),u=o(s),l=i(8),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var o={value:t.data,label:h["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(o.name=t.name),t.labelCoordinate&&(o.labelCoordinate=t.labelCoordinate),e[t.code]=o}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return c["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,o=Object.values(this.getValueMap());o.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(86),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=h["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=function(t){function e(i,o,a){n(this,e),h["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,o=this.chartType,n=i[o]||i,r=n.stackType;this.dataProcessor.addDataRatios(t[o],r,o)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=function(t){function e(i,o,a){n(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0 -}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(9),r=o(n),a=i(35),s=o(a),u=i(36),l=o(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("raphael"),require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["raphael","tui-code-snippet"],e):"object"==typeof exports?exports.chart=e(require("raphael"),require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.chart=e(t.Raphael,t.tui&&t.tui.util))}(this,function(__WEBPACK_EXTERNAL_MODULE_4__,__WEBPACK_EXTERNAL_MODULE_7__){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="/dist/",e(0)}([function(t,e,i){t.exports=i(2)},,function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(3),r=i(31),a=o(r),s=i(8),u=o(s),l=i(11),h=o(l),p=i(139),c=o(p);i(148),a["default"].registerPlugin("Raphael",n.pluginRaphael,n.callback),a["default"].renderUtil=u["default"],a["default"].arrayUtil=h["default"],a["default"].colorutil=c["default"],t.exports=a["default"]},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feFlood"),n=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),r=document.createElementNS("http://www.w3.org/2000/svg","feMorphology"),a=document.createElementNS("http://www.w3.org/2000/svg","feMerge"),s=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode"),u=document.createElementNS("http://www.w3.org/2000/svg","feMergeNode");e.id="glow",o.setAttribute("result","flood"),o.setAttribute("flood-color","#ffffff"),o.setAttribute("flood-opacity","0.5"),n.setAttribute("in","flood"),n.setAttribute("result","mask"),n.setAttribute("in2","SourceGraphic"),n.setAttribute("operator","in"),r.setAttribute("in","mask"),r.setAttribute("result","dilated"),r.setAttribute("operator","dilate"),r.setAttribute("radius","2"),i.setAttribute("in","dilated"),i.setAttribute("result","blurred"),i.setAttribute("stdDeviation","1"),s.setAttribute("in","blurred"),u.setAttribute("in","SourceGraphic"),e.appendChild(o),e.appendChild(n),e.appendChild(r),e.appendChild(i),e.appendChild(a),a.appendChild(s),a.appendChild(u),t.defs.appendChild(e)}function r(t){var e=document.createElementNS("http://www.w3.org/2000/svg","filter"),i=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),o=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),n=document.createElementNS("http://www.w3.org/2000/svg","feBlend");e.setAttributeNS(null,"id","shadow"),e.setAttributeNS(null,"x","-15%"),e.setAttributeNS(null,"y","-15%"),e.setAttributeNS(null,"width","180%"),e.setAttributeNS(null,"height","180%"),i.setAttributeNS(null,"result","offOut"),i.setAttributeNS(null,"in","SourceAlpha"),i.setAttributeNS(null,"dx","2"),i.setAttributeNS(null,"dy","2"),o.setAttributeNS(null,"result","blurOut"),o.setAttributeNS(null,"in","offOut"),o.setAttributeNS(null,"stdDeviation","2"),n.setAttributeNS(null,"in","SourceGraphic"),n.setAttributeNS(null,"in2","blurOut"),n.setAttributeNS(null,"mode","normal"),e.appendChild(i),e.appendChild(o),e.appendChild(n),t.defs.appendChild(e)}e.__esModule=!0,e.callback=e.pluginRaphael=void 0;var a=i(4),s=o(a),u=i(5),l=o(u),h=i(12),p=o(h),c=i(13),d=o(c),f=i(14),m=o(f),g=i(17),y=o(g),_=i(19),v=o(_),T=i(20),b=o(T),A=i(21),E=o(A),x=i(22),D=o(x),L=i(23),S=o(L),C=i(24),M=o(C),P=i(26),w=o(P),R=i(27),O=o(R),I=i(28),k=o(I),B=i(29),N=o(B),F=i(30),G=o(F);e.pluginRaphael={bar:l["default"],boxplot:p["default"],bullet:d["default"],column:l["default"],line:m["default"],area:y["default"],pie:v["default"],bubble:E["default"],scatter:E["default"],heatmap:D["default"],treemap:D["default"],map:S["default"],radial:b["default"],legend:M["default"],mapLegend:w["default"],circleLegend:O["default"],radialPlot:G["default"],title:k["default"],axis:N["default"]},e.callback=function(t,e){var i=(0,s["default"])(t,e.width,e.height),o=i.rect(0,0,e.width,e.height);return i.raphael.svg&&(n(i),r(i)),i.pushDownBackgroundToBottom=function(){o.toBack()},i.changeChartBackgroundColor=function(t){o.attr({fill:t})},i.changeChartBackgroundOpacity=function(t){o.attr({"fill-opacity":t})},i.resizeBackground=function(t,e){o.attr({width:t,height:e})},o.attr({fill:"#fff","stroke-width":0}),i}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_4__},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(7),l=o(u),h=i(4),p=o(h),c=700,d=1,f=.3,m=.2,g=8,y=2,_=.4,v=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.theme,n=e.seriesDataModel,r=e.chartType,a=e.options;return i?(this.paper=t,this.theme=o,this.seriesDataModel=n,this.chartType=r,this.paper.setStart(),this.options=a,this.theme=o,this.groupBars=this._renderBars(i),this.groupBorders=this._renderBarBorders(i),this.overlay=this._renderOverlay(),this.groupBounds=i,this.paper.setFinish()):null},t.prototype._renderOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=this._renderBar(t,"#fff",e);return i.node.setAttribute("class","auto-shape-rendering"),i},t.prototype._renderBar=function(t,e,i){if(t.width<0||t.height<0)return null;var o=s["default"].renderRect(this.paper,t,Object.assign({fill:e,stroke:"none"},i)).toFront();return o.node.setAttribute("class","auto-shape-rendering"),o},t.prototype._renderBars=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=t.map(function(t,n){return t.map(function(t,r){if(!t)return null;var a=e.seriesDataModel.getSeriesItem(n,r),s=o?i[n]:i[r],u=e._renderBar(t.start,s);return{rect:u,color:s,bound:t.end,item:a,groupIndex:n,index:r,isRange:a.isRange}})});return n},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._makeTopLinePath=function(t,e,i){var o=i.value,n=null;if("bar"===e||o>=0||i.isRange){var r=l["default"].extend({},t.leftTop);r.left-="column"===e||o<0?1:0,n=s["default"].makeLinePath(r,t.rightTop).join(" ")}return n},t.prototype._makeRightLinePath=function(t,e,i){var o=null;return("column"===e||i.value>=0||i.isRange)&&(o=s["default"].makeLinePath(t.rightTop,t.rightBottom).join(" ")),o},t.prototype._makeBottomLinePath=function(t,e,i){var o=null;return("bar"===e||i.value<0||i.isRange)&&(o=s["default"].makeLinePath(t.leftBottom,t.rightBottom).join(" ")),o},t.prototype._makeLeftLinePath=function(t,e,i){var o=null;return("column"===e||i.value<0||i.isRange)&&(o=s["default"].makeLinePath(t.leftTop,t.leftBottom).join(" ")),o},t.prototype._makeBorderLinesPaths=function(t,e,i){var o=this._makeRectPoints(t),n={top:this._makeTopLinePath(o,e,i),right:this._makeRightLinePath(o,e,i),bottom:this._makeBottomLinePath(o,e,i),left:this._makeLeftLinePath(o,e,i)};return l["default"].filter(n,function(t){return t})},t.prototype._renderBorderLines=function(t,e,i,o){var n=this._makeBorderLinesPaths(t,i,o),a={};return Object.entries(n).forEach(function(t){var i=r(t,2),o=i[0],n=i[1];a[o]=s["default"].renderLine(self.paper,n,e,1)}),a},t.prototype._renderBarBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var o=l["default"].map(t,function(t,o){return l["default"].map(t,function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,self.chartType,r)})});return o},t.prototype._animateRect=function(t,e){t.animate({x:e.width?e.left:e.left-y/2,y:e.height?e.top:e.top-y/2,width:e.width?e.width:y,height:e.height?e.height:y,opacity:e.height&&e.width?1:_},c,">")},t.prototype._animateBorders=function(t,e,i,o){var n=this._makeBorderLinesPaths(e,i,o);l["default"].forEach(t,function(t,e){t.animate({path:n[e]},c,">")})},t.prototype.animate=function(t){var e=this,i=this.groupBorders||[];s["default"].forEach2dArray(this.groupBars,function(t,o,n){var r=i[o]&&i[o][n];t&&(e._animateRect(t.rect,t.bound),r&&e._animateBorders(r,t.bound,e.chartType,t.item))}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},c))},t.prototype.showAnimation=function(t){var e=this.groupBars[t.groupIndex][t.index],i=e.bound;this.overlay.attr({width:i.width+g,height:i.height+g,stroke:"#fff","stroke-width":"1",x:i.left-4,y:i.top-4,"fill-opacity":1}),this.resortBarIndex(t.groupIndex),this.overlay.toFront(),e.rect.toFront(),this.labelSet&&this.labelSet.toFront(),this.overlay.node.setAttribute("filter","url(#shadow)")},t.prototype.hideAnimation=function(t){this.resortBarIndex(t.groupIndex),this.overlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0}),this.labelSet&&this.labelSet.toFront()},t.prototype.resortBarIndex=function(t){this.groupBars[t].forEach(function(t){t.rect.toFront()})},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=this,i=this.groupBorders||[],o=t.dimension,n=t.groupBounds;this.groupBounds=n,this.paper.setSize(o.width,o.height),s["default"].forEach2dArray(this.groupBars,function(t,o,r){if(t){var a=i[o]&&i[o][r],u=n[o][r].end;t.bound=u,s["default"].updateRectBound(t.rect,u),a&&e._updateBordersPath(a,u,e.chartType,t.item)}})},t.prototype._changeBordersColor=function(t,e){l["default"].forEach(t,function(t){t.attr({stroke:e})})},t.prototype._changeBarColor=function(t,e,i){var o=this.groupBars[t.groupIndex][t.index];if(o.rect.attr({fill:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=p["default"].color(e.color),o=this.theme.selectionColor,n=o||s["default"].makeChangedLuminanceColor(i.hex,m),r=this.theme.borderColor;if(r){var a=p["default"].color(r);r=s["default"].makeChangedLuminanceColor(a.hex,m)}this._changeBarColor(t,n,r)},t.prototype.unselectSeries=function(t){var e=this.groupBars[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBarColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=this.groupBorders||[],i=l["default"].isNull(t);s["default"].forEach2dArray(this.groupBars,function(o,n,r){if(o){var a=e[n]&&e[n][r],s=i||t===r?d:f;o.rect.attr({"fill-opacity":s}),a&&l["default"].forEach(a,function(t){t.attr({"stroke-opacity":s})})}})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r=n||"column"===this.chartType?"middle":"start",a={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":r},u=this.labelSet=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var r=e[o][n],l=s["default"].renderText(t,r.end,i.end,a),h=l.node.style;if(h.userSelect="none",h.cursor="default",u.push(l),r.start){var p=s["default"].renderText(t,r.start,i.start,a);p.node.style.userSelect="none",p.node.style.cursor="default",u.push(p)}})}),u},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){return a["default"].isExisty(t)&&"number"==typeof t}e.__esModule=!0;var r=i(7),a=o(r),s=i(8),u=o(s),l=i(4),h=o(l);e["default"]={makeLinePath:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=[t.left,t.top],n=[e.left,e.top],r=i%2/2;return o.forEach(function(t,e){t===n[e]&&(o[e]=n[e]=Math.round(t)-r)}),["M"].concat(o,["L"],n)},renderLine:function(t,e,i,o){var n=t.path([e]),r={stroke:i,"stroke-width":a["default"].isUndefined(o)?2:o,"stroke-linecap":"butt"};return"transparent"===i&&(r.stroke="#fff",r["stroke-opacity"]=0),n.attr(r).node.setAttribute("class","auto-shape-rendering"),n},getEllipsisText:function(t,e,i){for(var o=t.split(""),n=o.length,r=this.getRenderedTextSize(".",i.fontSize,i.fontFamily).width,a="",s=2*r,u=0;u=e){a+="..";break}a+=o[u]}return a},renderText:function(t,e,i,o){var n=t.text(e.left,e.top,a["default"].decodeHTMLEntity(String(i)));return o&&(o["dominant-baseline"]?n.node.setAttribute("dominant-baseline",o["dominant-baseline"]):n.node.setAttribute("dominant-baseline","central"),n.attr(o)),n},renderArea:function(t,e,i){var o=t.path(e);return i=Object.assign({"stroke-opacity":0},i),o.attr(i),o},renderCircle:function(t,e,i,o){var n=t.circle(e.left,e.top,i);return o&&n.attr(o),n},renderRect:function(t,e,i){var o=t.rect(e.left,e.top,e.width,e.height);return i&&o.attr(i),o},updateRectBound:function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},forEach2dArray:function(t,e){t&&t.forEach(function(t,i){t.forEach(function(t,o){e(t,i,o)})})},makeChangedLuminanceColor:function(t,e){t=t.replace("#",""),e=e||0;var i=a["default"].range(3).map(function(i){var o=parseInt(t.substr(2*i,2),16),n=o+o*e;return n=Math.round(Math.min(Math.max(0,n),255)).toString(16),u["default"].formatToZeroFill(n,2)}).join("");return"#"+i},getRenderedTextSize:function(t,e,i){var o=(0,h["default"])(document.body,100,100),n=o.text(0,0,t).attr({"font-size":e,"font-family":i}),r=n.getBBox();return n.remove(),o.remove(),{width:r.width,height:r.height}},animateOpacity:function(t,e,i,o){var r=n(o)?o:600,a=n(e)?e:0,s=n(i)?i:1,u=h["default"].animation({opacity:s},r);t.attr({opacity:a}),t.animate(u)}}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE_7__},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1?e-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.fontSize&&e.push(this.concatStr("font-size:",t.fontSize,"px")),t.fontFamily&&e.push(this.concatStr("font-family:",t.fontFamily)),t.color&&e.push(this.concatStr("color:",t.color)),t.fontWeight&&e.push(this.concatStr("font-weight:",t.fontWeight)),e.length?e.join(";"):""},_makeCachingKey:function(t,e,i){var o=[t,i];return f["default"].forEach(e,function(t,e){o.push(t+e)}),o.join("-")},_addCssStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.fontSize,o=e.fontFamily,n=e.fontWeight,r=e.cssText;t.style.fontSize=(i||u["default"].DEFAULT_LABEL_FONT_SIZE)+"px",o&&(t.style.fontFamily=o),n&&(t.style.fontWeight=n),r&&(t.style.cssText+=r)},sizeCache:{},_getRenderedLabelSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(t=String(t),!t)return 0;var o=this._makeCachingKey(t,e,i),n=this.sizeCache[o];if(!n){var r=this._createSizeCheckEl(),a=r.firstChild;a.innerHTML=t,this._addCssStyle(r,e),document.body.appendChild(r),n=a[i],document.body.removeChild(r),this.sizeCache[o]=n}return n},checkEl:null,_createSizeCheckEl:function(){if(this.checkEl)this.checkEl.style.cssText="";else{var t=h["default"].create("DIV","tui-chart-size-check-element"),e=h["default"].create("SPAN");t.appendChild(e),this.checkEl=t}return this.checkEl},getRenderedLabelWidth:function(t,e){return this._getRenderedLabelSize(t,e,"offsetWidth")},getRenderedLabelHeight:function(t,e){return this._getRenderedLabelSize(t,e,"offsetHeight")},_getRenderedLabelsMaxSize:function(t,e,i){var o=0;if(t&&t.length){var n=f["default"].map(t,function(t){return i(t,e)});o=c["default"].max(n)}return o},getRenderedLabelsMaxWidth:function(t,e){var i=f["default"].bind(this.getRenderedLabelWidth,this),o=this._getRenderedLabelsMaxSize(t,e,i);return o},getRenderedLabelsMaxHeight:function(t,e){var i=f["default"].bind(this.getRenderedLabelHeight,this),o=this._getRenderedLabelsMaxSize(t,e,i);return o},renderDimension:function(t,e){var i=e.width,o=void 0===i?0:i,n=e.height,r=void 0===n?0:n;t.style.cssText=[this.concatStr("width:",o,"px"),this.concatStr("height:",r,"px")].join(";")},renderPosition:function(t,e){f["default"].isUndefined(e)||f["default"].forEachArray(["top","bottom","left","right"],function(i){var o=e[i];f["default"].isNumber(o)&&(t.style[i]=o+"px")})},renderBackground:function(t,e){e&&(t.style.background=e)},renderFontFamily:function(t,e){e&&(t.style.fontFamily=e)},renderTitle:function(t,e,i){if(!t)return null;var o=T.makeFontCssText(e),n=h["default"].create("DIV",i);return n.innerHTML=t,e.background&&(o+=";"+this.concatStr("background:",e.background)),n.style.cssText=o,n},expandBound:function(t){var e=t.dimension,i=t.position;return{dimension:{width:e.width+2*u["default"].SERIES_EXPAND_SIZE,height:e.height+2*u["default"].SERIES_EXPAND_SIZE},position:{left:i.left-u["default"].SERIES_EXPAND_SIZE,top:i.top-u["default"].SERIES_EXPAND_SIZE}}},_properCase:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},makeMouseEventDetectorName:function(t,e,i){return t+this._properCase(e)+this._properCase(i)},formatValue:function(t){var e=t.value,i=t.formatFunctions,o=t.valueType,r=void 0===o?"value":o,a=t.areaType,s=t.legendName,u=t.chartType,l=[String(e)].concat(n(i||[]));return f["default"].reduce(l,function(t,e){return e(t,u,a,r,s)})},formatValues:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.chartType,n=i.areaType,r=i.valueType;return e&&e.length?f["default"].map(t,function(t){return T.formatValue({value:t,formatFunctions:e,chartType:o,areaType:n,valueType:r})}):t},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT,i=f["default"].isDate(t)?t:new Date(t);return f["default"].formatDate(e,i)||t},formatDates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u["default"].DEFAULT_DATE_FORMAT;return f["default"].map(t,function(t){return e.formatDate(t,i)})},cancelAnimation:function(t){t&&t.id&&(cancelAnimationFrame(t.id),delete t.id)},startAnimation:function(t,e,i){function o(){var a=(new Date).getTime()-r,s=Math.min(a/t,1);e(s),1===s?(delete n.id,i&&i()):n.id=requestAnimationFrame(o)}var n={},r=(new Date).getTime();return n.id=requestAnimationFrame(o),n},isOldBrowser:function(){return g},formatToZeroFill:function(t,e){var i="0";if(t=String(t),t.length>=e)return t;for(;t.length-1?"-":"",a="",s=void 0,u=void 0,l=void 0;if(t.indexOf(".")>-1?(s=t.split("."),t=String(Math.abs(s[0])),a="."+s[1]):t=String(Math.abs(t)),t.length<=i)l=o;else{var h;s=t.split("").reverse(),u=s.length-1,s=f["default"].map(s,function(t,o){var n=[t];return o1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return i=this._perseString(i),o=this._perseString(o),""!==i||""!==o?f["default"].map(t,function(t){return e.addPrefixSuffixItem(t,i,o)}):t},addPrefixSuffixItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=this._perseString(e),i=this._perseString(i),e+t+i},getStyle:function(t){var e=void 0;return e=y?window.getComputedStyle(t,""):t.currentStyle},generateClipRectId:function(){var t=_+v;return v+=1,t}};g?(T.makeOpacityCssText=function(t){var e="";if(f["default"].isExisty(t)){var i=a(t);e=";filter:"+i}return e},T.setOpacity=function(t,e){var i=a(e);r(t,function(t){t.style.filter=i})}):(T.makeOpacityCssText=function(t){var e="";return f["default"].isExisty(t)&&(e=";opacity:"+t),e},T.setOpacity=function(t,e){r(t,function(t){t.style.opacity=e})}),e["default"]=T},function(t,e){"use strict";e.__esModule=!0,e["default"]={CLASS_NAME_LEGEND_LABEL:"tui-chart-legend-label",CLASS_NAME_LEGEND_CHECKBOX:"tui-chart-legend-checkbox",CLASS_NAME_SERIES_LABEL:"tui-chart-series-label",CLASS_NAME_SERIES_LEGEND:"tui-chart-series-legend",CLASS_NAME_RESET_ZOOM_BTN:"tui-chart-reset-zoom-btn",CLASS_NAME_ZOOM_OUT_BTN:"tui-chart-zoom-out-btn",CLASS_NAME_CHART_EXPORT_MENU_AREA:"tui-chart-chartExportMenu-area",CLASS_NAME_CHART_EXPORT_MENU_ITEM:"tui-chart-chartExportMenu-item",CLASS_NAME_CHART_EXPORT_MENU_BUTTON:"tui-chart-chartExportMenu-button",CLASS_NAME_CHART_EXPORT_MENU_HEAD:"tui-chart-chartExportMenu-head",CLASS_NAME_CHART_EXPORT_MENU_BODY:"tui-chart-chartExportMenu-body",CLASS_NAME_TOOLTIP_VALUE:"tui-chart-tooltip-value",CLASS_NAME_TOOLTIP_HEAD:"tui-chart-tooltip-head",CLASS_NAME_TOOLTIP_BODY:"tui-chart-tooltip-body",CLASS_NAME_SVG_AUTOSHAPE:"auto-shape-rendering",CHART_TYPE_BAR:"bar",CHART_TYPE_COLUMN:"column",CHART_TYPE_LINE:"line",CHART_TYPE_AREA:"area",CHART_TYPE_COMBO:"combo",CHART_TYPE_COLUMN_LINE_COMBO:"columnLineCombo",CHART_TYPE_LINE_SCATTER_COMBO:"lineScatterCombo",CHART_TYPE_LINE_AREA_COMBO:"lineAreaCombo",CHART_TYPE_PIE_DONUT_COMBO:"pieDonutCombo",CHART_TYPE_PIE:"pie",CHART_TYPE_BUBBLE:"bubble",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_HEATMAP:"heatmap",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_MAP:"map",CHART_TYPE_RADIAL:"radial",CHART_TYPE_BOXPLOT:"boxplot",CHART_TYPE_BULLET:"bullet",CHART_PADDING:10,CHART_DEFAULT_WIDTH:500,CHART_DEFAULT_HEIGHT:400,OVERLAPPING_WIDTH:1,TEXT_PADDING:2,SERIES_EXPAND_SIZE:10,SERIES_AREA_V_PADDING:10,SERIES_LABEL_PADDING:5,SERIES_EXTRA_EVENT_AREA_FOR_ZERO:2,DEFAULT_TITLE_FONT_SIZE:14,DEFAULT_AXIS_TITLE_FONT_SIZE:10,DEFAULT_LABEL_FONT_SIZE:12,DEFAULT_SERIES_LABEL_FONT_SIZE:11,DEFAULT_PLUGIN:"Raphael",DEFAULT_TICK_COLOR:"black",DEFAULT_THEME_NAME:"default",MAX_HEIGHT_WORD:"A",NORMAL_STACK_TYPE:"normal",PERCENT_STACK_TYPE:"percent",DEFAULT_STACK:"___DEFAULT___STACK___",DUMMY_KEY:"___DUMMY___KEY___",TREEMAP_ROOT_ID:"___TUI_TREEMAP_ROOT___",TREEMAP_ID_PREFIX:"___TUI_TREEMAP_ID___",TREEMAP_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_DEPTH___",TREEMAP_PARENT_KEY_PREFIX:"___TUI_TREEMAP_PARENT___",TREEMAP_LEAF_KEY_PREFIX:"___TUI_TREEMAP_LEAF___",TREEMAP_LIMIT_DEPTH_KEY_PREFIX:"___TUI_TREEMAP_LIMIT_DEPTH___",TREEMAP_DEFAULT_BORDER:"#ffffff",TREEMAP_DEFAULT_BORDER_WIDTH:4,EMPTY_AXIS_LABEL:"",ANGLE_85:85,ANGLE_90:90,ANGLE_360:360,RAD:Math.PI/180,RERENDER_TIME:700,ADDING_DATA_ANIMATION_DURATION:300,LABEL_ALIGN_OUTER:"outer",LEGEND_ALIGN_TOP:"top",LEGEND_ALIGN_BOTTOM:"bottom",LEGEND_ALIGN_LEFT:"left",LEGEND_PAGINATION_BUTTON_WIDTH:20,LEGEND_PAGINATION_BUTTON_PADDING_RIGHT:6,SERIES_OUTER_LABEL_PADDING:20,PIE_GRAPH_DEFAULT_RATIO:.9,PIE_GRAPH_SMALL_RATIO:.75,PIE_GRAPH_LEGEND_LABEL_SIZE:16,PIE_GRAPH_LEGEND_LABEL_INTERVAL:20,SPECTRUM_LEGEND_TICK_COUNT:4,LABEL_SEPARATOR:"\n",MAP_CHART_LABEL_DEFAULT_POSITION_RATIO:{x:.5,y:.5},MAP_CHART_ZOOM_AREA_WIDTH:24,MAP_CHART_ZOOM_AREA_HEIGHT:58,DOT_RADIUS:4,SCATTER_RADIUS:7,THEME_PROPS_MAP:{yAxis:["tickColor","title","label"],series:["label","colors","borderColor","borderWidth","selectionColor","startColor","endColor","overColor","dot","ranges"]},TITLE_AREA_WIDTH_PADDING:20,CHART_EXPORT_MENU_SIZE:24,XAXIS_LABEL_TOP_MARGIN:10,V_LABEL_RIGHT_PADDING:10,TOOLTIP_PREFIX:"tui-chart-tooltip",TOOLTIP_ZINDEX:500,TOOLTIP_ANIMATION_TIME:100,TOOLTIP_PIE_ANIMATION_TIME:50,MIN_PIXEL_TYPE_STEP_SIZE:45,MAX_PIXEL_TYPE_STEP_SIZE:65,PERCENT_STACKED_AXIS_SCALE:{limit:{min:0,max:100},step:25,labels:[0,25,50,75,100]},MINUS_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:0},step:25,labels:[0,-25,-50,-75,-100]},DUAL_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[-100,-75,-50,-25,0,25,50,75,100]},DIVERGING_PERCENT_STACKED_AXIS_SCALE:{limit:{min:-100,max:100},step:25,labels:[100,75,50,25,0,25,50,75,100]},AXIS_TYPE_DATETIME:"datetime",DEFAULT_DATE_FORMAT:"YYYY.MM.DD hh:mm:dd",DATE_TYPE_YEAR:"year",DATE_TYPE_MONTH:"month",DATE_TYPE_WEEK:"week",DATE_TYPE_DATE:"date",DATE_TYPE_HOUR:"hour",DATE_TYPE_MINUTE:"minute",DATE_TYPE_SECOND:"second",TITLE_PADDING:20,TITLE_ALIGN_CENTER:"center",TITLE_ALIGN_RIGHT:"right",TITLE_ALIGN_LEFT:"left",DEFAULT_HEADER_HEIGHT:10,LEGEND_AREA_H_PADDING:15,LEGEND_AREA_V_PADDING:7,LEGEND_CHECKBOX_SIZE:14,LEGEND_ICON_WIDTH:10,LEGEND_ICON_HEIGHT:10,LEGEND_LABEL_LEFT_PADDING:8,LEGEND_V_LABEL_RIGHT_PADDING:20,LEGEND_H_LABEL_RIGHT_PADDING:25,LEGEND_LINE_ICON_PATH:"M1,9 L1,3 C1,1.8954305 1.8954305,1 3,1 L3,1 C4.1045695,1 5,1.8954305 5,3 L5,7 C5,8.1045695 5.8954305,9 7,9 L7,9 C8.1045695,9 9,8.1045695 9,7 L9,1",MIN_LEGEND_WIDTH:100,MAP_LEGEND_AREA_PADDING_WIDE:22,VERTICAL_MAP_LEGEND_AREA_TOP_PADDING:26,MAP_LEGEND_AREA_PADDING_NARROW:10,MAP_LEGEND_TOOLTIP_VERTICAL_PADDING:4,MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING:6,MAP_LEGEND_WEDGE_SIZE:4,MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE:4,VERTICAL_MAP_LEGEND_HEIGHT:320,HORIZONTAL_MAP_LEGEND_WIDTH:400,MAP_LEGEND_GRAPH_SIZE:6,MAP_LEGEND_LABEL_PADDING:5,CIRCLE_LEGEND_LABEL_FONT_SIZE:9,CIRCLE_LEGEND_PADDING:10,HALF_RATIO:.5,AXIS_BACKGROUND_RIGHT_PADDING:4,X_AXIS_LABEL_PADDING:7,X_AXIS_TITLE_PADDING:5,Y_AXIS_LABEL_PADDING:17,Y_AXIS_TITLE_PADDING:7,DEGREE_CANDIDATES:[25,45,65,85],TICK_INTERVAL_AUTO:"auto",YAXIS_ALIGN_CENTER:"center",XAXIS_LABEL_GUTTER:2,AXIS_STANDARD_MULTIPLE_NUMS:[1,2,5,10,20,50,100],AXIS_LAST_STANDARD_MULTIPLE_NUM:100,AXIS_EDGE_RATIO:8,LABEL_PADDING_TOP:7,LINE_MARGIN_TOP:14,TOOLTIP_GAP:5,TOOLTIP_DIRECTION_FORWARD:"forword",TOOLTIP_DIRECTION_CENTER:"center",TOOLTIP_DIRECTION_BACKWARD:"backword",TOOLTIP_DEFAULT_ALIGN_OPTION:"center top",TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION:"right middle",TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION:"center bottom",HIDE_DELAY:200,OLD_BROWSER_OPACITY_100:100,SERIES_LABEL_OPACITY:.3,WHEEL_TICK:120,MAX_ZOOM_MAGN:5,ZOOM_POSITION_TOP_EXIST_TITLE:5,ZOOM_POSITION_TOP_NONE_TITLE:1,FF_WHEELDELTA_ADJUSTING_VALUE:-40,IE7_ROTATION_FILTER_STYLE_MAP:{25:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.9063077870366499, M12=0.42261826174069944, M21=-0.42261826174069944, M22=0.9063077870366499)\"",45:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476)\"",65:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.42261826174069944, M12=0.9063077870366499, M21=-0.9063077870366499, M22=0.42261826174069944)\"",85:" style=\"filter: progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.08715574274765814, M12=0.9961946980917455, M21=-0.9961946980917455, M22=0.08715574274765814)\""},PUBLIC_EVENT_PREFIX:"public_",PUBLIC_EVENT_MAP:{load:!0,selectLegend:!0,selectSeries:!0,unselectSeries:!0,beforeShowTooltip:!0,afterShowTooltip:!0,beforeHideTooltip:!0,changeCheckedLegends:!0,zoom:!0},RADIAL_PLOT_PADDING:15,RADIAL_MARGIN_FOR_CATEGORY:60,RADIAL_CATEGORY_PADDING:20,COMPONENT_TYPE_DOM:"DOM",COMPONENT_TYPE_RAPHAEL:"Raphael",IMAGE_EXTENSIONS:["png","jpeg"],DATA_EXTENSIONS:["xls","csv"],GUIDE_AREACHART_AREAOPACITY_TYPE:"areaOpacity should be a number between 0 and 1",BULLET_TYPE_ACTUAL:"Actual",BULLET_TYPE_RANGE:"Ranges",BULLET_TYPE_MARKER:"Markers",BULLET_MARKER_STROKE_TICK:3,BULLET_MARKER_BUFFER_POSITION:5,BULLET_RANGES_HEIGHT_RATIO:.7,BULLET_ACTUAL_HEIGHT_RATIO:.28,BULLET_MARKERS_HEIGHT_RATIO:.55,BULLET_MARKER_DETECT_PADDING:3}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e-1||(i.push(e),t.className=i.join(" "))}},removeClass:function(t,e){var i=this._getClassNames(t),o=a["default"].inArray(e,i);o!==-1&&(i.splice(o,1),t.className=i.join(" "))},hasClass:function(t,e){var i=this._getClassNames(t),o=a["default"].inArray(e,i);return o>-1},findParentByClass:function(t,e,i){var o=t.parentNode,n=void 0;return n=o?this.hasClass(o,e)?o:"BODY"===o.nodeName||this.hasClass(o,i)?null:this.findParentByClass(o,e,i):null},append:function(t,e){t&&e&&(e=a["default"].isArray(e)?e:[e],a["default"].forEachArray(e,function(e){e&&t.appendChild(e)}))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);es&&(s=r,o=t)})}else o=Math.max.apply(Math,n(t));return o}function s(t,e,i){var o=!1;return d["default"].forEach(t,function(n,r){return e.call(i,n,r,t)&&(o=!0),!o}),o}function u(t,e,i){var o=!!(t||[]).length;return d["default"].forEach(t,function(n,r){return e.call(i,n,r,t)||(o=!1),o!==!1}),o}function l(t,e,i,o){var n=[];if(d["default"].isBoolean(e)||(o=i,i=e,e=!1),i=i||function(t){return t},e){var r=void 0;d["default"].forEachArray(t,function(e,a){e=i.call(o,e,a,t),a&&r===e||n.push(e),r=e})}else d["default"].forEachArray(t,function(e,r){e=i.call(o,e,r,t),d["default"].inArray(e,n)===-1&&n.push(e)});return n}function h(t){var e=[],i=a(t.map(function(t){return t.length}));return t.forEach(function(t){for(var o=0;o0?1:-1,a=t.left,u=t.width,h=u/4,c="M"+(a+h)+","+t.top+"H"+(a+3*h),d=p["default"].oneLineTrim(s,a+2*h,t.top,t.top+Math.abs(n)*r),f=l["default"].renderLine(o,c,i,T),m=l["default"].renderLine(o,d,i,A),g=[];return f.attr({opacity:0}),m.attr({opacity:0}),g.push(f),g.push(m),g},t.prototype._renderWhiskers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n];t&&(a=a.concat(e._renderWhisker(t.min,t.start,s)),a=a.concat(e._renderWhisker(t.max,t.end,s)))}),n.push(a)}),n},t.prototype._renderMedianLine=function(t){var e=t.width,i="M"+t.left+","+t.top+",H"+(t.left+e),o=l["default"].renderLine(this.paper,i,"#ffffff",b);return o.attr({opacity:0}),o},t.prototype._renderMedianLines=function(t){var e=this,i=[];return t.forEach(function(t){var o=[];t.forEach(function(t){t&&o.push(e._renderMedianLine(t.median))}),i.push(o)}),i},t.prototype._renderOutlier=function(t,e){var i=l["default"].renderCircle(this.paper,{left:t.left,top:t.top},3.5,{stroke:e,"stroke-width":2});return i.attr({opacity:0}),i},t.prototype._renderOutliers=function(t){var e=this,i=this.theme.colors,o=this.options.colorByPoint,n=[];return t.forEach(function(t,r){var a=[];t.forEach(function(t,n){var s=o?i[r]:i[n],u=[];t&&(t.outliers.length&&t.outliers.forEach(function(t){u.push(e._renderOutlier(t,s))}),a.push(u))}),n.push(a)}),n},t.prototype._makeRectPoints=function(t){return{leftTop:{left:Math.ceil(t.left),top:Math.ceil(t.top)},rightTop:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top)},rightBottom:{left:Math.ceil(t.left+t.width),top:Math.ceil(t.top+t.height)},leftBottom:{left:Math.ceil(t.left),top:Math.ceil(t.top+t.height)}}},t.prototype._renderBorderLines=function(t,e,i,o){var n=this,r=this._makeBorderLinesPaths(t,i,o),s={};return Object.entries(r).forEach(function(t){var i=a(t,2),o=i[0],r=i[1];s[o]=l["default"].renderLine(n.paper,r,e,1)}),s},t.prototype._renderBoxBorders=function(t){var e=this,i=this.theme.borderColor;if(!i)return null;var o=t.map(function(t,o){return t.map(function(t,n){if(!t)return null;var r=e.seriesDataModel.getSeriesItem(o,n);return e._renderBorderLines(t.start,i,e.chartType,r)})});return o},t.prototype._animateRect=function(t,e){t.animate({x:e.left,y:e.top,width:e.width,height:e.height},g,">")},t.prototype.animate=function(t){var e=this,i=m["default"].animation({opacity:1},g);l["default"].forEach2dArray(this.groupBoxes,function(t){t&&e._animateRect(t.rect,t.bound)}),l["default"].forEach2dArray(this.groupWhiskers,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupMedians,function(t){t.animate(i.delay(g))}),l["default"].forEach2dArray(this.groupOutliers,function(t){t.forEach(function(t){t.animate(i.delay(g))})}),t&&(this.callbackTimeout=setTimeout(function(){t(),delete e.callbackTimeout},g))},t.prototype.showAnimation=function(t){d["default"].isNumber(t.outlierIndex)?this.showOutlierAnimation(t):this.showRectAnimation(t)},t.prototype.showRectAnimation=function(t){var e=this.groupBoxes[t.groupIndex][t.index];this.hoveredBar=e.rect,this.hoveredBar.attr({stroke:"#ffffff","stroke-width":4}),this.hoveredBar.node.setAttribute("filter","url(#shadow)")},t.prototype.showOutlierAnimation=function(t){var e=this.groupOutliers[t.groupIndex][t.index][t.outlierIndex].attr();this.circleOverlay.attr({r:e.r,cx:e.cx,cy:e.cy,fill:e.stroke,"fill-opacity":1,stroke:e.stroke,"stroke-width":4})},t.prototype.hideAnimation=function(){this.circleOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-width":2}),this.hoveredBar.attr({stroke:"none"}),this.hoveredBar.node.setAttribute("filter","none")},t.prototype._updateRectBound=function(t,e){t.attr({x:e.left,y:e.top,width:e.width,height:e.height})},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds;this.groupBounds=i,this.paper.setSize(e.width,e.height),l["default"].forEach2dArray(this.groupBoxes,function(t,e,o){if(t){var n=i[e][o].end;t.bound=n,l["default"].updateRectBound(t.rect,n)}})},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype._changeBoxColor=function(t,e,i){var o=this.groupBoxes[t.groupIndex][t.index];if(o.rect.attr({stroke:e}),i){var n=this.groupBorders[t.groupIndex][t.index];this._changeBordersColor(n,i)}},t.prototype.selectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=m["default"].color(e.color),o=this.theme.selectionColor,n=l["default"].makeChangedLuminanceColor,r=o||n(i.hex,v),a=this.theme.borderColor;if(a){var s=m["default"].color(a);a=l["default"].makeChangedLuminanceColor(s.hex,v)}this._changeBoxColor(t,r,a)},t.prototype.unselectSeries=function(t){var e=this.groupBoxes[t.groupIndex][t.index],i=this.theme.borderColor;this._changeBoxColor(t,e.color,i)},t.prototype.selectLegend=function(t){var e=d["default"].isNull(t);l["default"].forEach2dArray(this.groupBoxes,function(i,o,n){if(i){var r=e||t===n?y:_;i.rect.attr({"stroke-opacity":r})}}),l["default"].forEach2dArray(this.groupWhiskers,function(i,o,n){var r=e||t===n?y:_;i.attr({"stroke-opacity":r})}),l["default"].forEach2dArray(this.groupMedians,function(i,o,n){var r=e||t===n?y:_;i.attr({"stroke-opacity":r})})},t.prototype.renderSeriesLabel=function(t,e,i,o,n){var r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":n?"middle":"start"},a=t.set();return i.forEach(function(i,o){i.forEach(function(i,n){var s=e[o][n],u=l["default"].renderText(t,s.end,i.end,r);if(u.node.style.userSelect="none",u.node.style.cursor="default",u.node.setAttribute("filter","url(#glow)"),a.push(u),s.start){var h=l["default"].renderText(t,s.start,i.start,r);h.node.style.userSelect="none",h.node.style.cursor="default",h.node.setAttribute("filter","url(#glow)"),a.push(h)}})}),a},t}();e["default"]=E},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i,o){var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),r=t.rect(e.left,e.top,i.width,i.height);return r.id=o+"_rect",n.id=o,n.appendChild(r.node),t.defs.appendChild(n),r}e.__esModule=!0;var a=i(6),s=o(a),u=i(9),l=o(u),h=i(7),p=o(h),c=i(8),d=o(c),f=p["default"].browser,m=f.msie&&f.version<=8,g=700,y=700,_=1,v=.3,T=20,b=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=e.groupBounds,o=e.seriesDataModel;return i&&i.length?(this.paper=t,this.theme=e.theme,this.dimension=e.dimension,this.position=e.position,this.options=e.options,this.chartType=e.chartType,this.isVertical=e.isVertical,this.seriesDataModel=o,this.maxRangeCount=o.maxRangeCount,this.maxMarkerCount=o.maxMarkerCount,this._graphColors=[],this.rangeOpacities={},this.paper.setStart(),this._renderBounds(i),this.paper.setFinish()):null},t.prototype._getRangeOpacity=function(t){var e=this.maxRangeCount;return this.prevMaxRangeCount!==e&&this._updateOpacityStep(e),t",t)),t&&(this.callbackTimeout=setTimeout(function(){t(),delete i.callbackTimeout},y))},t.prototype.resize=function(t){var e=t.dimension,i=t.groupBounds,o=e.width,n=e.height;this.dimension=t.dimension,this.groupBounds=i,this.resizeClipRect(o,n),this.paper.setSize(o,n)},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i&&i.attr({width:t,height:e})},t.prototype.setClipRectPosition=function(t){var e=this.paper.getById(this._getClipRectId()+"_rect");e.attr({x:t.left,y:t.top})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=d["default"].generateClipRectId()),this.clipRectId},t.prototype._changeBordersColor=function(t,e){t.forEach(function(t){t.attr({stroke:e})})},t.prototype.selectLegend=function(t){var e=this,i=p["default"].isNull(t);this.groupBars.forEach(function(o,n){var r=i||t===n?_:v;e.groupBars[n].attr({"fill-opacity":r}),e.groupLabels[n].attr({opacity:r}),e.groupLabels[n].forEach(function(t){t.attr({opacity:r})})})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=this,r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0,"text-anchor":this.isVertical?"middle":"start"},a=t.set();return this.groupLabels=i.map(function(i,o){var s=t.set();return i.forEach(function(i,u){var l=n._renderLabel(t,e[o][u],r,i);s.push(l),a.push(l)}),s},this),a},t.prototype._renderLabel=function(t,e,i,o){var n=s["default"].renderText(t,e,o,i),r=n.node,a=r.style;return a.userSelect="none",a.cursor="default",r.setAttribute("filter","url(#glow)"),n},t.prototype.getGraphColors=function(){var t=this;return this._graphColors.length||(this._graphColors=this.groupBars.map(function(e,i){var o=[],n=t.groupLines[i].length;e.forEach(function(t){o.push(t.attrs.fill)});for(var r=o[o.length-1],a=0;a<=n;a+=1)o.push(r);return o})),this._graphColors},t}();e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(15),u=o(s),l=i(6),h=o(l),p=i(7),c=o(p),d=1,f=.3,m=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="line",i.lineWidth=6,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=e.options,a=e.position,s=n.colors,u=r.showDot?1:0,l=r.spline,h=this.lineWidth=c["default"].isNumber(r.pointWidth)?r.pointWidth:this.lineWidth,p=this.makeBorderStyle(n.dot.strokeColor,u,n.dot.strokeWidth),d=this.makeOutDotStyle(u,p),f=void 0;return f=l?this._getSplineLinesPath(o,r.connectNulls):this._getLinesPath(o,r.connectNulls),this.paper=t,this.theme=n,this.isSpline=l,this.dimension=i,this.position=a,t.setStart(),this.groupLines=this._renderLines(t,f,s,h),this.tooltipLine=this._renderTooltipLine(t,i.height),this.groupDots=this._renderDots(t,o,s,u),r.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=s,this.borderStyle=p,this.outDotStyle=d,this.groupPositions=o,this.groupPaths=f,this.dotOpacity=u,delete this.pivotGroupDots,t.raphael.svg&&this.appendShadowFilterToDefs(),t.setFinish()},e.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},e.prototype._getLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeLinesPath(t,null,e)})},e.prototype._getSplineLinesPath=function(t,e){var i=this;return t.map(function(t){return i._makeSplineLinesPath(t,{connectNulls:e})})},e.prototype._renderLines=function(t,e,i,o){return e.map(function(e,n){var r=i[n]||"transparent",a=h["default"].renderLine(t,e.join(" "),r,o);return a.node.setAttribute("class","auto-shape-rendering"),a})},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.resizeClipRect(i.width,i.height),this.groupPositions=o,this.groupPaths=this.isSpline?this._getSplineLinesPath(o):this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.tooltipLine.attr({top:i.height}),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){t.endDot&&e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=this,i=c["default"].isNull(t);this.selectedLegendIndex&&this.selectedLegendIndex!==-1&&this.resetSeriesOrder(this.selectedLegendIndex),this.selectedLegendIndex=t,this.groupLines.forEach(function(o,n){var r=t===n,a=i||r?d:f,s=e.groupDots[n];o.attr({"stroke-opacity":a}),r&&e.moveSeriesToFront(o,s)}),i&&this.groupLines.forEach(function(t,i){e.moveSeriesToFront(t,e.groupDots[i])})},e.prototype.resetSeriesOrder=function(t){var e=t+10&&(r[0]="M"),r},t.prototype._getAnchor=function(t,e,i,o){var n=(e.left-t.left)/2,r=(i.left-e.left)/2,a=void 0,s=void 0;o?(a=Math.atan((t.left-e.left)/Math.abs(t.top-e.top)),s=Math.atan((e.left-i.left)/Math.abs(i.top-e.top))):(a=Math.atan((e.left-t.left)/Math.abs(e.top-t.top)),s=Math.atan((i.left-e.left)/Math.abs(e.top-i.top))),a=t.top0&&!e||a)&&(i.push(o),o=[])}),i},t.prototype._getSplinePartialPaths=function(t,e){var i=this,o=[],n=void 0,r=void 0,a=void 0,u=void 0,l=void 0;return t.forEach(function(t){var h=s(t,1),p=h[0],c=p;r=t.length,a=c,n=t[r-1],u=t.slice(1).slice(0,r-2),l=u.map(function(o,n){var r=t[n+2],s=i._getAnchor(a,o,r,e);return a=o,Math.abs(s.y1-p.top)>Math.abs(p.top-o.top)&&(s.y1=o.top),Math.abs(s.y2-r.top)>Math.abs(r.top-o.top)&&(s.y2=o.top),p=o,[s.x1,s.y1,o.left,o.top,s.x2,s.y2]}),l.push([n.left,n.top,n.left,n.top]),l.unshift(["M",c.left,c.top,"C",c.left,c.top]),o.push(l)}),o},t.prototype._makeSplineLinesPath=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._getSplinePositionsGroups(t,e.connectNulls),o=this._getSplinePartialPaths(i,e.isReverseDirection),n=[];return o.forEach(function(t){n=n.concat(t)}),e.isBeConnected&&(n[0]=n[0].slice(3)),n},t.prototype._renderTooltipLine=function(t,e){var i=l["default"].makeLinePath({left:10,top:e},{left:10,top:0});return l["default"].renderLine(t,i,"transparent",1)},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype.makeBorderStyle=function(t,e,i){var o={"stroke-width":i,"stroke-opacity":e};return t&&(o.stroke=t),o},t.prototype.makeOutDotStyle=function(t,e){var i={"fill-opacity":t,"stroke-opacity":t,r:b};return e&&y["default"].extend(i,e),i},t.prototype.renderDot=function(t,e,i,o){var n=this.theme&&this.theme.dot||{dot:{}},r=void 0;if(e){var a=t.circle(e.left,e.top,y["default"].isUndefined(n.radius)?b:n.radius),s={fill:n.fillColor||i,"fill-opacity":y["default"].isNumber(o)?o:n.fillOpacity,stroke:n.strokeColor||i,"stroke-opacity":y["default"].isNumber(o)?o:n.strokeOpacity,"stroke-width":n.strokeWidth};a.attr(s),r={dot:a,color:i}}return r},t.prototype._moveDotsToFront=function(t){l["default"].forEach2dArray(t,function(t){t.endDot.dot.toFront(),t.startDot&&t.startDot.dot.toFront()})},t.prototype._renderDots=function(t,e,i,o,n){var r=this,a=e.map(function(e,a){var s=i[a];return Object.values(e).map(function(e){var i={endDot:r.renderDot(t,e,s,o)};if(r.hasRangeData){var a=y["default"].extend({},e);a.top=a.startTop,i.startDot=r.renderDot(t,a,s,o)}return n&&(n.push(i.endDot.dot),i.startDot&&n.push(i.startDot.dot)),i})});return a},t.prototype._getCenter=function(t,e){return{left:(t.left+e.left)/2,top:(t.top+e.top)/2}},t.prototype._showDot=function(t,e){var i=this.theme.dot.hover,o={"fill-opacity":i.fillOpacity,stroke:i.strokeColor||t.color,"stroke-opacity":i.strokeOpacity,"stroke-width":i.strokeWidth,r:i.radius,filter:"url(#shadow)"};this._setPrevDotAttributes(e,t.dot),i.fillColor&&(o.fill=i.fillColor),t.dot.attr(o),t.dot.node&&t.dot.node.setAttribute("filter","url(#shadow)"),t.dot.toFront()},t.prototype._setPrevDotAttributes=function(t,e){this._prevDotAttributes||(this._prevDotAttributes={}),this._prevDotAttributes[t]=e.attr()},t.prototype._updateLineStrokeOpacity=function(t,e){var i=1,o=!y["default"].isNull(this.selectedLegendIndex);this.groupLines&&((t===D||o)&&(i="radial"===this.chartType&&this.isShowArea?0:E),t===L&&o&&(e=this.getLine(this.selectedLegendIndex)),this.groupLines.forEach(function(t){t.attr({"stroke-opacity":i})}),e.attr({"stroke-opacity":1}))},t.prototype.getLine=function(t){return this.groupLines?this.groupLines[t]:this.groupAreas[t]},t.prototype._updateAreaOpacity=function(t){this.groupAreas&&this.groupAreas.forEach(function(e){e.area.attr({"fill-opacity":t===D?E:1})})},t.prototype._updateLineStrokeWidth=function(t,e){var i={"stroke-width":e};t.attrs&&(i.stroke=t.attrs.stroke),t.attr(i)},t.prototype.showAnimation=function(t){var e=t.index,i=this.groupDots[e],o=this._findDotItem(i,t.groupIndex),n=this.groupLines?this.groupLines[e]:this.groupAreas[e],r=void 0,a=void 0;if(o){if("area"===this.chartType){var s=n;a=s.startLine,n=s.line,r=5,this._updateAreaOpacity(D)}else r=this.lineWidth;this._updateLineStrokeOpacity(D,n),this._updateLineStrokeWidth(n,r),a&&this._updateLineStrokeWidth(a,r),this._showDot(o.endDot,e),o.startDot&&this._showDot(o.startDot,e)}},t.prototype._findDotItem=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],i=d["default"].isRadialChart(this.chartType);return i&&t.length===e&&(e=0),t[e]},t.prototype._getPivotGroupDots=function(){return!this.pivotGroupDots&&this.groupDots&&(this.pivotGroupDots=m["default"].pivot(this.groupDots)),this.pivotGroupDots},t.prototype._showGroupDots=function(t){var e=this,i=this._getPivotGroupDots();i&&i[t]&&i[t].forEach(function(t,i){t.endDot&&e._showDot(t.endDot,i),t.startDot&&e._showDot(t.startDot,i)})},t.prototype.showGroupTooltipLine=function(t,e){var i=Math.max(t.position.left,11),o=l["default"].makeLinePath({left:i,top:e.position.top+t.dimension.height},{left:i,top:e.position.top});this.tooltipLine&&this.tooltipLine.attr({path:o,stroke:"#999","stroke-opacity":1})},t.prototype.showGroupAnimation=function(t){this._showGroupDots(t)},t.prototype._hideDot=function(t,e,i){var o=this._prevDotAttributes[e],n=this.outDotStyle;o&&!y["default"].isUndefined(i)&&(n=y["default"].extend({r:o.r,stroke:o.stroke,fill:o.fill,"stroke-opacity":o["stroke-opacity"],"stroke-width":o["stroke-width"],"fill-opacity":o["fill-opacity"]})),t.attr(n),t.node&&t.node.setAttribute("filter",""),this.resetSeriesOrder(e)},t.prototype.hideAnimation=function(t){var e=t.groupIndex,i=t.index,o=this.groupDots[i],n=this._findDotItem(o,e),r=void 0,a=void 0,s=void 0,u=this.dotOpacity;if(n){if(r=this.groupLines?this.groupLines[i]:this.groupAreas[i],"area"===this.chartType){a=this.lineWidth;var l=r;s=l.startLine,r=l.line,this._updateAreaOpacity(L)}else a=this.lineWidth;u&&!y["default"].isNull(this.selectedLegendIndex)&&this.selectedLegendIndex!==i&&(u=E),this._updateLineStrokeOpacity(L,r),this._updateLineStrokeWidth(r,a),s&&this._updateLineStrokeWidth(s,a),n&&(this._hideDot(n.endDot.dot,i,u),n.startDot&&this._hideDot(n.startDot.dot,i,u))}},t.prototype._hideGroupDots=function(t){var e=this,i=!y["default"].isNull(this.selectedLegendIndex),o=this.dotOpacity,n=this._getPivotGroupDots();n&&n[t]&&n[t].forEach(function(t,n){var r=o;r&&i&&e.selectedLegendIndex!==n&&(r=E),t.endDot&&e._hideDot(t.endDot.dot,n,r),t.startDot&&e._hideDot(t.startDot.dot,n,r)})},t.prototype.hideGroupTooltipLine=function(){this.tooltipLine.attr({"stroke-opacity":0})},t.prototype.hideGroupAnimation=function(t){this._hideGroupDots(t)},t.prototype._moveDot=function(t,e){var i={cx:e.left,cy:e.top};this.dotOpacity&&(i=y["default"].extend({"fill-opacity":this.dotOpacity},i,this.borderStyle)),t.attr(i)},t.prototype.animate=function(t,e){var i=this.paper,o=this.dimension,n=this.position,r=this._getClipRectId(),s=this.clipRect;!v&&o&&(s?s.attr({width:0,height:o.height}):(s=a(i,n,o,r),this.clipRect=s),e.forEach(function(t){t.node.setAttribute("clip-path","url(#"+r+")")}),s.animate({width:o.width},T,">",t))},t.prototype._makeSelectionDot=function(t){var e=t.circle(0,0,A);return e.attr({fill:"#ffffff","fill-opacity":0,"stroke-opacity":0,"stroke-width":2}),e},t.prototype.selectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex],i=this.groupPositions[t.index][t.groupIndex];this.selectedItem=e,this.selectionDot.attr({cx:i.left,cy:i.top,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.endDot.color}),this.selectionStartDot&&this.selectionStartDot.attr({cx:i.left,cy:i.startTop,"fill-opacity":.5,"stroke-opacity":1,stroke:this.selectionColor||e.startDot.color})},t.prototype.unselectSeries=function(t){var e=this.groupDots[t.index][t.groupIndex];this.selectedItem===e&&this.selectionDot.attr({"fill-opacity":0,"stroke-opacity":0}),this.selectionStartDot&&this.selectionStartDot.attr({"fill-opacity":0,"stroke-opacity":0})},t.prototype.setSize=function(t,e){t=t||this.dimension.width,e=e||this.dimension.height,this.paper.setSize(t,e)},t.prototype._animateByPosition=function(t,e,i){var o={cx:e.left,cy:e.top};y["default"].isExisty(i)&&(o.transform="t-"+i+",0"),t.animate(o,x)},t.prototype._animateByPath=function(t,e,i){var o={path:e.join(" ")};y["default"].isExisty(i)&&(o.transform="t-"+i+",0"),t.animate(o,x)},t.prototype._removeFirstDot=function(t){var e=t.shift();e.endDot.dot.remove(),e.startDot&&e.startDot.dot.remove()},t.prototype.clear=function(){delete this.paper.dots,this.paper.clear()},t.prototype.resizeClipRect=function(t,e){var i=this.paper.getById(this._getClipRectId()+"_rect");i.attr({width:t,height:e})},t.prototype._getClipRectId=function(){return this.clipRectId||(this.clipRectId=p["default"].generateClipRectId()),this.clipRectId},t.prototype.resetSeriesOrder=function(){},t.prototype.moveSeriesToFront=function(){},t}();e["default"]=S},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(11),s=o(a),u={isBarChart:function(t){return t===r["default"].CHART_TYPE_BAR},isColumnChart:function(t){return t===r["default"].CHART_TYPE_COLUMN},isBarTypeChart:function(t){return u.isBarChart(t)||u.isColumnChart(t)},isColumnTypeChart:function(t,e){return u.isHeatmapChart(t)||u.isColumnChart(t)||u.isBoxplotChart(t)||u.isLineColumnComboChart(t,e)},isBoxplotChart:function(t){return t===r["default"].CHART_TYPE_BOXPLOT},isBulletChart:function(t){return t===r["default"].CHART_TYPE_BULLET},isRadialChart:function(t){return t===r["default"].CHART_TYPE_RADIAL},isDivergingChart:function(t,e){return this.isBarTypeChart(t)&&e},isNormalStackChart:function(t,e){var i=u.isAllowedStackOption(t),o=u.isNormalStack(e);return i&&o},isPercentStackChart:function(t,e){var i=u.isAllowedStackOption(t),o=u.isPercentStack(e);return i&&o},isComboChart:function(t){return t===r["default"].CHART_TYPE_COMBO},isLineColumnComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isColumnChart(t)});return u.isComboChart(t)&&i},isPieDonutComboChart:function(t,e){var i=s["default"].all(e,function(t){return u.isPieChart(t)});return u.isComboChart(t)&&i},isLineChart:function(t){return t===r["default"].CHART_TYPE_LINE},isAreaChart:function(t){return t===r["default"].CHART_TYPE_AREA},isLineAreaComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isAreaChart(t)});return u.isComboChart(t)&&i},hasLineChart:function(t,e){var i=s["default"].any(e||[],function(t){return u.isLineChart(t)});return u.isComboChart(t)&&i},isLineScatterComboChart:function(t,e){var i=s["default"].all(e||[],function(t){return u.isLineChart(t)||u.isScatterChart(t)});return u.isComboChart(t)&&i},isLineTypeChart:function(t,e){return u.isLineChart(t)||u.isAreaChart(t)||u.isLineAreaComboChart(t,e); +},isBubbleChart:function(t){return t===r["default"].CHART_TYPE_BUBBLE},isScatterChart:function(t){return t===r["default"].CHART_TYPE_SCATTER},isHeatmapChart:function(t){return t===r["default"].CHART_TYPE_HEATMAP},isTreemapChart:function(t){return t===r["default"].CHART_TYPE_TREEMAP},isBoxTypeChart:function(t){return u.isHeatmapChart(t)||u.isTreemapChart(t)},isMapTypeChart:function(t){return this.isMapChart(t)||this.isHeatmapChart(t)||this.isTreemapChart(t)},isPieChart:function(t){return t&&t.indexOf(r["default"].CHART_TYPE_PIE)!==-1},isMapChart:function(t){return t===r["default"].CHART_TYPE_MAP},isCoordinateTypeChart:function(t){return u.isBubbleChart(t)||u.isScatterChart(t)},allowMinusPointRender:function(t){return u.isLineTypeChart(t)||u.isCoordinateTypeChart(t)||u.isBoxTypeChart(t)||u.isBulletChart(t)},isChartToDetectMouseEventOnSeries:function(t){return u.isPieChart(t)||u.isMapChart(t)||u.isCoordinateTypeChart(t)},isLabelAlignOuter:function(t){return t===r["default"].LABEL_ALIGN_OUTER},isShowLabel:function(t){return t.showLabel||t.showLegend},isShowOuterLabel:function(t){return u.isShowLabel(t)&&u.isLabelAlignOuter(t.labelAlign)},isLegendAlignLeft:function(t){return t===r["default"].LEGEND_ALIGN_LEFT},isLegendAlignTop:function(t){return t===r["default"].LEGEND_ALIGN_TOP},isLegendAlignBottom:function(t){return t===r["default"].LEGEND_ALIGN_BOTTOM},isHorizontalLegend:function(t){return u.isLegendAlignTop(t)||u.isLegendAlignBottom(t)},isVerticalLegend:function(t){return!u.isHorizontalLegend(t)},isAllowedStackOption:function(t){return u.isBarChart(t)||u.isColumnChart(t)||u.isAreaChart(t)},isNormalStack:function(t){return t===r["default"].NORMAL_STACK_TYPE},isPercentStack:function(t){return t===r["default"].PERCENT_STACK_TYPE},isValidStackOption:function(t){return t&&(u.isNormalStack(t)||u.isPercentStack(t))},isAllowRangeData:function(t){return u.isBarTypeChart(t)||u.isAreaChart(t)},isYAxisAlignCenter:function(t,e){return!t&&e===r["default"].YAXIS_ALIGN_CENTER},isMinusLimit:function(t){return t.min<=0&&t.max<=0},isAutoTickInterval:function(t){return t===r["default"].TICK_INTERVAL_AUTO},isValidLabelInterval:function(t,e){return t&&t>1&&!e},isDatetimeType:function(t){return t===r["default"].AXIS_TYPE_DATETIME},isSupportPublicShowTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)},isSupportPublicHideTooptipAPI:function(t){return this.isBarChart(t)||this.isColumnChart(t)||this.isLineChart(t)||this.isAreaChart(t)||this.isBoxplotChart(t)}};e["default"]=u},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1)&&_["default"].print(v,"warn"):f["default"].isUndefined(t)||_["default"].print(v,"error"),e},e}(h["default"]);e["default"]=E},function(t,e){"use strict";e.__esModule=!0,e["default"]={print:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";window.console&&window.console[e](t)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(7),l=o(u),h=i(4),p=o(h),c=180,d=360,f=.01,m=Math.PI/c,g=700,y=1,_=.3,v=.2,T="overlay",b=20,A=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();this.paper=t;var n=r(e.options.radiusRange,1);return this.holeRatio=n[0],this.chartBackground=e.chartBackground,this.chartType=e.chartType,this.callbacks=i,this.selectionColor=e.theme.selectionColor,this.circleBound=e.circleBound,this.sectorName="sector_"+this.chartType,this._setSectorAttr(),this.sectorInfos=this._renderPie(e.sectorData,e.theme.colors,e.additionalIndex,o),this.overlay=this._renderOverlay(),this.labelInfos={value:[],legend:[]},this.prevPosition=null,this.prevHoverSector=null,o},t.prototype.clear=function(){this.paper.clear()},t.prototype._makeSectorPath=function(t,e,i,o,n){var r=o*m,a=n*m,s=t+i*Math.sin(r),u=e-i*Math.cos(r),l=t+i*Math.sin(a),h=e-i*Math.cos(a),p=n-o>c?1:0,d=["M",t,e,"L",s,u,"A",i,i,0,p,1,l,h,"Z"];return{path:d}},t.prototype._makeDonutSectorPath=function(t,e,i,o,n,r){var a=o*m,s=n*m,u=r||i*this.holeRatio,l=t+i*Math.sin(a),h=e-i*Math.cos(a),p=t+u*Math.sin(a),d=e-u*Math.cos(a),f=t+i*Math.sin(s),g=e-i*Math.cos(s),y=t+u*Math.sin(s),_=e-u*Math.cos(s),v=n-o>c?1:0,T=["M",l,h,"A",i,i,0,v,1,f,g,"L",y,_,"A",u,u,0,v,0,p,d,"Z"];return{path:T}},t.prototype._setSectorAttr=function(){var t=void 0;this.paper.customAttributes[this.sectorName]||(t=this.holeRatio?this._makeDonutSectorPath:this._makeSectorPath,this.paper.customAttributes[this.sectorName]=t.bind(this))},t.prototype._renderOverlay=function(){var t={paper:this.paper,circleBound:{cx:0,cy:0,r:0},angles:{startAngle:0,endAngle:0},attrs:{fill:"none",opacity:0,stroke:this.chartBackground.color,"stroke-width":1}},e=this._renderSector(t);return e.node.setAttribute("class","auto-shape-rendering"),e.data("id",T),e.data("chartType",this.chartType),e},t.prototype._renderSector=function(t){var e=t.circleBound,i=t.angles,o=t.attrs;return o[this.sectorName]=[e.cx,e.cy,e.r,i.startAngle,i.endAngle],t.paper.path().attr(o)},t.prototype._renderPie=function(t,e,i,o){var n=this,r=this.circleBound,a=this.chartBackground,s=[];return t.forEach(function(t,u){var l=t.ratio,h=e[u],p=n._renderSector({paper:n.paper,circleBound:r,angles:t.angles.start,attrs:{fill:a.color,stroke:a.color,"stroke-width":0}});p.node.setAttribute("class","auto-shape-rendering"),p.data("index",u),p.data("legendIndex",u+i),p.data("chartType",n.chartType),s.push({sector:p,color:h,angles:t.angles.end,ratio:l}),o.push(p)}),s},t.prototype._showOverlay=function(t,e){var i=this.overlay,o=this.sectorInfos[t],n=o.angles.startAngle,r=o.angles.endAngle,a=this.circleBound,s={fill:"#fff",opacity:1,"stroke-width":7,"stroke-color":"#fff","stroke-miterlimit":15};s[this.sectorName]=[a.cx,a.cy,a.r,n,r,a.r*this.holeRatio],i.attr(s),i.data("index",t),i.data("legendIndex",e),i.node.setAttribute("filter","url(#shadow)"),this._indexingOverlapElement([i,o.sector,this.labelInfos.legend[t],this.labelInfos.value[t]])},t.prototype._indexingOverlapElement=function(t){t.forEach(function(t){t&&t.toFront()})},t.prototype._hideOverlay=function(){var t=this.overlay,e={fill:"none",opacity:0};t.attr(e),this._indexingOverlapElement(this.labelInfos.legend),this._indexingOverlapElement(this.labelInfos.value)},t.prototype.animate=function(t){var e=this.sectorName,i=this.circleBound,o=[i.cx,i.cy,i.r],n=0;this.sectorInfos.forEach(function(t){var i=t.angles,r={fill:t.color},a=g*t.ratio;0===i.startAngle&&i.endAngle===d&&(i.endAngle=d-f),r[e]=o.concat([i.startAngle,i.endAngle]);var s=p["default"].animation(r,a,">");t.sector.animate(s.delay(n)),n+=a}),t&&setTimeout(t,n)},t.prototype.resize=function(t){var e=t.dimension,i=t.circleBound;this.circleBound=i,this.paper.setSize(e.width,e.height)},t.prototype.findSectorInfo=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={legendIndex:l["default"].isExisty(e.data("legendIndex"))?e.data("legendIndex"):-1,index:l["default"].isExisty(e.data("index"))?e.data("index"):-1,chartType:e.data("chartType")}),i},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype._showTooltip=function(t,e){var i=[{},0,t.data("index"),{left:e.left-b,top:e.top-b}];this.callbacks.showTooltip.apply(null,i)},t.prototype._isValidSector=function(t){return t&&t.data("chartType")===this.chartType},t.prototype.moveMouseOnSeries=function(t){var e=this.paper&&this.paper.getElementByPoint(t.left,t.top);this._isValidSector(e)?(this.prevHoverSector!==e&&(this._showOverlay(e.data("index"),e.data("legendIndex")),this.prevHoverSector=e),this._isChangedPosition(this.prevPosition,t)&&this._showTooltip(e,t)):this.prevHoverSector&&(this._hideOverlay(),this.callbacks.hideTooltip(),this.prevHoverSector=null),this.prevPosition=t},t.prototype.selectSeries=function(t){var e=this.sectorInfos[t.index];if(e){var i=p["default"].color(e.color),o=s["default"].makeChangedLuminanceColor(i.hex,v),n=this.selectionColor||o;e.sector.attr({fill:n})}},t.prototype.unselectSeries=function(t){var e=this.sectorInfos[t.index];e&&e.sector.attr({fill:e.color})},t.prototype.selectLegend=function(t){var e=l["default"].isNull(t);this.sectorInfos.forEach(function(i,o){var n=e||t===o?y:_;i.sector.attr({"fill-opacity":n})})},t.prototype.getRenderedLabelWidth=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).width},t.prototype.getRenderedLabelHeight=function(t,e){return s["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype.renderLabels=function(t){var e=this,i=t.theme,o={"font-size":i.fontSize,"font-family":t.fontFamily?t.fontFamily:t.theme.fontFamily,"font-weight":i.fontWeight,"text-anchor":"middle",fill:i.color||"#fff",opacity:0};t.positions.forEach(function(i,n){var r=void 0;t.colors&&(o.fill=t.colors[n]),i&&(r=s["default"].renderText(t.paper,i,t.labels[n],o),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("class","auto-shape-rendering")),e.labelInfos[t.dataType].push(r),t.labelSet.push(r)},this),this.labelSet||(this.labelSet=t.labelSet)},t}();e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(15),u=o(s),l=i(6),h=o(l),p=i(7),c=o(p),d=1,f=.3,m=6,g=function(t){function e(){n(this,e);var i=r(this,t.call(this));return i.selectedLegendIndex=null,i.chartType="radial",i.lineWidth=m,i}return a(e,t),e.prototype.render=function(t,e){var i=e.dimension,o=e.groupPositions,n=e.theme,r=n.colors,a=e.options.showDot?1:0,s=e.options,u=s.isShowArea,l=s.pointWidth,h=this._getLinesPath(o),p=this.makeBorderStyle(n.strokeColor,a,n.strokeWidth),c=this.makeOutDotStyle(a,p),d=t.set(),f=this.lineWidth=l?l:this.lineWidth,m=o.map(function(t){return t.pop(),t});return this.paper=t,this.theme=n,this.dimension=i,this.position=e.position,u&&(this.groupAreas=this._renderArea(t,h,r,d)),this.groupLines=this._renderLines(t,h,r,f,d),this.groupDots=this._renderDots(t,m,r,a,d),e.options.allowSelect&&(this.selectionDot=this._makeSelectionDot(t),this.selectionColor=n.selectionColor),this.colors=r,this.borderStyle=p,this.outDotStyle=c,this.groupPositions=o,this.groupPaths=h,this.dotOpacity=a,this.isShowArea=u,d},e.prototype._getLinesPath=function(t){var e=this;return t.map(function(t){return e._makeLinesPath(t)})},e.prototype._renderLines=function(t,e,i,o,n){return e.map(function(e,r){var a=i[r]||"transparent",s=h["default"].renderLine(t,e.join(" "),a,o);return n.push(s),s})},e.prototype._renderArea=function(t,e,i,o){var n=this;return e.map(function(e,r){var a=i[r]||"transparent",s=h["default"].renderArea(t,e,{fill:a,opacity:.4,"stroke-width":n.lineWidth,stroke:a});return o.push(s),s},this)},e.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupPositions;this.groupPositions=o,this.groupPaths=this._getLinesPath(o),this.paper.setSize(i.width,i.height),this.groupPaths.forEach(function(t,i){e.groupLines[i].attr({path:t.join(" ")}),e.groupAreas[i].attr({path:t.join(" ")}),e.groupDots[i].forEach(function(t,n){e._moveDot(t.endDot.dot,o[i][n])})})},e.prototype.selectLegend=function(t){var e=c["default"].isNull(t);this.selectedLegendIndex=t,this.groupLines.forEach(function(i,o){var n=e||t===o?d:f;i.attr({"stroke-opacity":n})})},e}(u["default"]);e["default"]=g},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(6),a=o(r),s=i(7),u=o(s),l=i(4),h=o(l),p=700,c=.8,d=1,f=.8,m=.3,g=.2,y=2,_=20,v=function(){function t(){n(this,t)}return t.prototype.render=function(t,e,i){var o=t.set();return this.paper=t,this.theme=e.theme,this.seriesDataModel=e.seriesDataModel,this.groupBounds=e.groupBounds,this.callbacks=i,this.overlay=this._renderOverlay(),this.groupCircleInfos=this._renderCircles(o),this.prevCircle=null,this.prevOverCircle=null,this.animationTimeoutId=null,this.selectedLegend=null,this.paper.raphael.svg&&this.appendShadowFilterToDefs(),o},t.prototype._renderOverlay=function(){var t={left:0,top:0},e={fill:"none",stroke:"#fff","stroke-opacity":d,"stroke-width":2},i=a["default"].renderCircle(this.paper,t,0,e);return i},t.prototype._renderCircles=function(t){var e=this,i=this.theme.colors;return this.groupBounds.map(function(o,n){return o.map(function(o,r){var s=null;if(o){var u=i[r],l=a["default"].renderCircle(e.paper,o,0,{fill:u,opacity:0,stroke:"none"});t.push(l),l.data("groupIndex",n),l.data("index",r),s={circle:l,color:u,bound:o}}return s})})},t.prototype._animateCircle=function(t,e){t.animate({r:e,opacity:c},p,">")},t.prototype.animate=function(){var t=this;a["default"].forEach2dArray(this.groupCircleInfos,function(e){e&&t._animateCircle(e.circle,e.bound.radius)})},t.prototype._updatePosition=function(t,e){t.attr({cx:e.left,cy:e.top,r:e.radius})},t.prototype.resize=function(t){var e=this,i=t.dimension,o=t.groupBounds;this.groupBounds=o,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.groupCircleInfos,function(t,i,n){var r=o[i][n];t&&(t.bound=r,e._updatePosition(t.circle,r))})},t.prototype.findIndexes=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=null;return e&&(i={index:e.data("index"),groupIndex:e.data("groupIndex")}),i},t.prototype.appendShadowFilterToDefs=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","filter"),e=document.createElementNS("http://www.w3.org/2000/svg","feOffset"),i=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),o=document.createElementNS("http://www.w3.org/2000/svg","feBlend");t.setAttributeNS(null,"id","shadow"),t.setAttributeNS(null,"x","-50%"),t.setAttributeNS(null,"y","-50%"),t.setAttributeNS(null,"width","180%"),t.setAttributeNS(null,"height","180%"),e.setAttributeNS(null,"result","offOut"),e.setAttributeNS(null,"in","SourceAlpha"),e.setAttributeNS(null,"dx","0"),e.setAttributeNS(null,"dy","0"),i.setAttributeNS(null,"result","blurOut"),i.setAttributeNS(null,"in","offOut"),i.setAttributeNS(null,"stdDeviation","2"),o.setAttributeNS(null,"in","SourceGraphic"),o.setAttributeNS(null,"in2","blurOut"),o.setAttributeNS(null,"mode","normal"),t.appendChild(e),t.appendChild(i),t.appendChild(o),this.paper.defs.appendChild(t)},t.prototype._isChangedPosition=function(t,e){return!t||t.left!==e.left||t.top!==e.top},t.prototype.showAnimation=function(t){var e=this.groupCircleInfos[t.groupIndex][t.index],i=e.bound;this.circle=e.circle,this.overlay.attr({fill:e.color,cx:i.left,cy:i.top,r:i.radius+y,stroke:"#fff",opacity:1}),this.circle.attr({opacity:1}),this.overlay.node.setAttribute("filter","url(#shadow)"),this.overlay.toFront(),this.circle.toFront()},t.prototype.hideAnimation=function(t){var e=m;this.overlay.attr({cx:0,cy:0,r:0,opacity:0}),(u["default"].isNull(this.selectedLegend)||t.index===this.selectedLegend)&&(e=f),this.circle.attr({opacity:e})},t.prototype._findCircle=function(t){for(var e=[],i=this.paper,o=void 0;u["default"].isUndefined(o);){var n=i.getElementByPoint(t.left,t.top);n?n.attrs.opacity>m?o=n:(e.push(n),n.hide()):o=null}return o||(o=e[0]),e.forEach(function(t){t.show()}),o},t.prototype.moveMouseOnSeries=function(t){var e=this._findCircle(t);if(e&&u["default"].isExisty(e.data("groupIndex"))){var i=e.data("groupIndex"),o=e.data("index"),n=[{},i,o,{left:t.left-_,top:t.top-_}];this._isChangedPosition(this.prevPosition,t)&&(this.callbacks.showTooltip.apply(null,n),this.prevOverCircle=e)}else this.prevOverCircle&&(this.callbacks.hideTooltip(),this.prevOverCircle=null);this.prevPosition=t},t.prototype.selectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i],n=h["default"].color(o.color),r=this.theme.selectionColor,s=r||a["default"].makeChangedLuminanceColor(n.hex,g);o.circle.attr({fill:s})},t.prototype.unselectSeries=function(t){var e=t.groupIndex,i=t.index,o=this.groupCircleInfos[e][i];o.circle.attr({fill:o.color})},t.prototype.selectLegend=function(t){var e=u["default"].isNull(t);this.selectedLegend=t,a["default"].forEach2dArray(this.groupCircleInfos,function(i,o,n){if(i){var r=e||t===n?f:m;i.circle.attr({opacity:r})}})},t}();e["default"]=v},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(6),a=o(r),s=i(7),u=o(s),l=i(16),h=o(l),p=100,c=0,d=4,f=function(){function t(){n(this,t)}return t.prototype.render=function(t,e){var i=t.set();return this.paper=t,this.chartType=e.chartType,this.theme=e.theme||{},this.colorSpectrum=e.colorSpectrum,this.chartBackground=e.chartBackground,this.zoomable=e.zoomable,this.useColorValue=e.options.useColorValue,this.borderColor=this.theme.borderColor||"none",this.borderWidth=this.theme.borderWidth,this.groupBounds=e.groupBounds,this.boundMap=e.boundMap,this._bindGetBoundFunction(),this._bindGetColorFunction(),this.seriesDataModel=e.seriesDataModel,this.boxesSet=this._renderBoxes(e.seriesDataModel,e.startDepth,!!e.isPivot,i),this.rectOverlay=this._renderRectOverlay(),i},t.prototype._renderRectOverlay=function(){var t={width:1,height:1,left:0,top:0},e={"fill-opacity":0},i=a["default"].renderRect(this.paper,t,Object.assign({"stroke-width":0},e));return i.node.setAttribute("filter","url(#shadow)"),i},t.prototype._bindGetBoundFunction=function(){this.boundMap?this._getBound=this._getBoundFromBoundMap:this._getBound=this._getBoundFromGroupBounds},t.prototype._bindGetColorFunction=function(){this.colorSpectrum?this._getColor=this._getColorFromSpectrum:this._getColor=this._getColorFromColors},t.prototype._getBoundFromGroupBounds=function(t){return this.groupBounds[t.groupIndex][t.index].end},t.prototype._getBoundFromBoundMap=function(t){return this.boundMap[t.id]},t.prototype._getColorFromSpectrum=function(t,e){var i=void 0;return i=t.hasChild&&t.depth===e?"none":this.colorSpectrum.getColor(t.colorRatio||t.ratio)||this.chartBackground},t.prototype._getColorFromColors=function(t,e){return t.depth===e?this.theme.colors[t.group]:"#000"},t.prototype._renderRect=function(t,e,i,o){return a["default"].renderRect(this.paper,t,{fill:e,stroke:this.borderColor,"stroke-width":i,"fill-opacity":o})},t.prototype._getStrokeWidth=function(t){var e=void 0;return e=this.borderWidth?this.borderWidth:t?d:c},t.prototype._renderBoxes=function(t,e,i,o){var n=this,r=h["default"].isTreemapChart(this.chartType);return t.map(function(t,i){if(r&&!n.colorSpectrum&&t.getSeriesItemCount()){var a=t.getSeriesItem(0);n._setTreeFillOpacity({id:a.parent},e)}return t.map(function(t,r){var a=null,s=t.depth,u=n.colorSpectrum?0:n._getStrokeWidth(s===e),l=n.colorSpectrum?1:t.fillOpacity;t.groupIndex=i,t.index=r;var h=n._getBound(t);if(h){var p=n._getColor(t,e);a={rect:n._renderRect(h,p,u,l),seriesItem:t,color:p},o&&o.push(a.rect)}return a})},i)},t.prototype._setTreeFillOpacity=function(t,e){var i=this,o=this.seriesDataModel.findSeriesItemsByParent(t.id);o.forEach(function(o,n){var r=o.depth;r===e?o.fillOpacity=1:r===e+1?o.fillOpacity=.05*n:r")},t.prototype.showAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];if(e){var i=e.rect.node,o=e.color;"treemap"!==this.chartType||this.zoomable||this.useColorValue||(o=this.theme.colors[t.index]),this.rectOverlay.attr({x:i.getAttribute("x"),y:i.getAttribute("y"),width:i.getAttribute("width"),height:i.getAttribute("height"),fill:o,"fill-opacity":1,stroke:"#ffffff","stroke-width":4,"stroke-opacity":1}),this.rectOverlay.toFront(),this.labelSet&&this.labelSet.toFront()}},t.prototype.hideAnimation=function(t){var e=this.boxesSet[t.groupIndex][t.index];e&&this.rectOverlay.attr({width:1,height:1,x:0,y:0,"fill-opacity":0,"stroke-opacity":0})},t.prototype.resize=function(t){var e=this,i=t.dimension;this.boundMap=t.boundMap,this.groupBounds=t.groupBounds,this.paper.setSize(i.width,i.height),a["default"].forEach2dArray(this.boxesSet,function(t,i,o){if(t){var n=e._getBound(t.seriesItem,i,o);n&&a["default"].updateRectBound(t.rect,n)}})},t.prototype.renderSeriesLabel=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:"#ffffff",opacity:0};return i.forEach(function(i,o){i.forEach(function(i,s){var u=a["default"].renderText(t,e[o][s].end,i,r);u.node.style.userSelect="none",u.node.style.cursor="default",n.push(u)})}),this.labelSet=n,n},t.prototype.renderSeriesLabelForTreemap=function(t,e,i,o){var n=t.set(),r={"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,fill:o.color,opacity:0};return i.forEach(function(i,o){if(e[o]){var s=a["default"].renderText(t,e[o],i,r);s.node.style.userSelect="none",s.node.style.cursor="default",n.push(s)}}),this.labelSet=n,n},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,i){var o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.id=i,e.forEach(function(t){c["default"].append(o,t.node)}),t.canvas.appendChild(o),o}e.__esModule=!0;var s=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),u=n(["\n s",",",",0,0\n t",",","\n "],["\n s",",",",0,0\n t",",","\n "]),l=i(6),h=o(l),p=i(10),c=o(p),d=i(8),f=o(d),m=i(7),g=o(m),y=g["default"].browser,_=y.msie&&y.version<=8,v="gray",T=100,b="tui-chart-series-group",A="#eee",E=function(){function t(){r(this,t)}return t.prototype.render=function(t,e){var i=e.mapModel.getMapDimension();this.ratio=this._getDimensionRatio(e.layout.dimension,i),this.dimension=e.layout.dimension,this.position=e.layout.position,this.paper=t,this.sectorSet=t.set(),this.sectors=this._renderMap(e,this.ratio),_||(this.g=a(t,this.sectorSet,b)),this.overColor=e.theme.overColor},t.prototype._getDimensionRatio=function(t,e){return Math.min(t.height/e.height,t.width/e.width)},t.prototype._renderMap=function(t,e){var i=this.sectorSet,o=this.paper,n=t.layout.position,r=t.colorSpectrum;return t.mapModel.getMapData().map(function(t,a){var u=t.ratio,l=t.path,p=u?r.getColor(u):A,c=h["default"].renderArea(o,l,{fill:p,opacity:1,stroke:v,"stroke-width":.2,"stroke-opacity":1,transform:f["default"].oneLineTrim(s,e,e,n.left/e,n.top/e)});return c.data("index",a),i.push(c),{sector:c,color:p,ratio:u}})},t.prototype.findSectorIndex=function(t){var e=this.paper.getElementByPoint(t.left,t.top),i=e&&e.data("index"),o=!g["default"].isUndefined(i)&&this.sectors[i];return o&&!g["default"].isUndefined(o.ratio)?i:null},t.prototype.changeColor=function(t){var e=this.sectors[t],i={stroke:"#ffffff","stroke-width":4};this.overColor&&(i.fill=this.overColor),e.sector.animate(i,T,">"),e.sector.node.setAttribute("filter","url(#shadow)"),e.sector.toFront()},t.prototype.restoreColor=function(t){var e=this.sectors[t];e.sector.animate({fill:e.color,stroke:v,"stroke-width":.2},T,">"),e.sector.node.setAttribute("filter","none")},t.prototype.scaleMapPaths=function(t,e,i,o,n){ +var r=this.g.transform.baseVal,a=this.paper.canvas.createSVGTransform(),s=this.paper.canvas.createSVGMatrix(),u=this.paper.raphael.matrix(),l=r.numberOfItems?r.getItem(0).matrix:{a:1,b:0,c:0,d:1,e:0,f:0},h=n.width-this.dimension.width,p=n.height-this.dimension.height,c=l.e/l.a,d=l.f/l.d,f=-h/l.a,m=-p/l.d;u.scale(t,t,e.left*i-c*t,e.top*i-d*t);var g=u.e/u.a+c,y=u.f/u.d+d;g>=0?u.e=-c*u.a:g=0?u.f=-d*u.a:y=0&&n>0?e.e=0:r<0&&r<-o/i.a&&n<0&&(e.e=0)},t.prototype._translateYForRaphaelMatrix=function(t){var e=t.raphaelMatrix,i=t.transformMatrix,o=t.maxTop,n=e.f/e.d,r=n+i.f/i.d;r>=0&&n>0?e.f=0:r<0&&r<-o/i.d&&n<0&&(e.f=0)},t.prototype.renderSeriesLabels=function(t,e,i){var o={"font-size":i.fontSize,"font-family":i.fontFamily,"font-weight":i.fontWeight,fill:i.color,"text-anchor":"middle",opacity:0,transform:f["default"].oneLineTrim(u,this.ratio,this.ratio,this.position.left/this.ratio,this.position.top/this.ratio)},n=t.set();return e.forEach(function(e){var i=e.position,r=h["default"].renderText(t,i,e.name||e.code,o);n.push(r),r.node.style.userSelect="none",r.node.style.cursor="default",r.node.setAttribute("filter","url(#glow)"),_||self.g.appendChild(r.node)}),n},t}();e["default"]=E},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){return l["default"].LEGEND_ICON_WIDTH+l["default"].LEGEND_LABEL_LEFT_PADDING}e.__esModule=!0;var s=n(["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "],["\n M","\n ,","\n l","\n ,","\n l","\n ,-","\n "]),u=i(9),l=o(u),h=i(6),p=o(h),c=i(11),d=o(c),f=i(8),m=o(f),g=i(25),y=o(g),_=i(7),v=o(_),T=.5,b=8,A=10,E=A/2,x=3,D=function(){function t(){r(this,t),this._checkBoxWidth=0,this._checkBoxHeight=0,this._legendItemHeight=0,this._currentPageCount=1,this._showCheckbox=!0}return t.prototype._renderLegendItems=function(t){var e=this,i=l["default"].LEGEND_LABEL_LEFT_PADDING,o=Object.assign({},this.basePosition);t.forEach(function(t,n){var r=t.iconType,a=t.index,s=t.isUnselected,u=t.labelHeight,h=t.checkbox,p=t.colorByPoint?"#aaa":t.theme.color,c=o.left+e._calculateSingleLegendWidth(a,r),d=c>=e.paper.width;e.isHorizontal&&d&&(o.top+=e._legendItemHeight+l["default"].LABEL_PADDING_TOP,o.left=e.basePosition.left),e._showCheckbox&&(e._renderCheckbox(o,{isChecked:h.checked,legendIndex:a,legendSet:e.legendSet}),o.left+=e._checkBoxWidth+i),e._renderIcon(o,{legendColor:p,iconType:r,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),o.left+=l["default"].LEGEND_ICON_WIDTH+i,e._renderLabel(o,{labelText:t.label,labelHeight:u,isUnselected:s,legendIndex:a,legendSet:e.legendSet}),e.isHorizontal?o.left+=e.labelWidths[n]+l["default"].LEGEND_H_LABEL_RIGHT_PADDING:(o.left=e.basePosition.left,o.top+=e._legendItemHeight+l["default"].LINE_MARGIN_TOP)})},t.prototype._getLegendData=function(t,e){var i=this.basePosition.top,o=this.dimension.height,n=this.paper.height,r=t;if(!this.isHorizontal&&o+2*i>n){this._legendItemHeight=Math.max(t[0].labelHeight,l["default"].LEGEND_CHECKBOX_SIZE);var a=n-2*i,s=this._legendItemHeight+l["default"].LINE_MARGIN_TOP,u=Math.floor(a/s);r=t.slice((e-1)*u,e*u)}return r},t.prototype.render=function(t){if(this.eventBus=t.eventBus,this.paper=t.paper,this.dimension=t.dimension,this.legendSet=this.paper.set(),this.labelWidths=t.labelWidths,this.labelTheme=t.labelTheme,this.basePosition=t.position,this.isHorizontal=t.isHorizontal,this.originalLegendData=t.legendData,this.originalLegendData.length){this._showCheckbox=v["default"].isExisty(t.legendData[0].checkbox),this._setComponentDimensionsBaseOnLabelHeight(t.legendData[0].labelHeight);var e=this._getLegendData(t.legendData,this._currentPageCount);if(this._renderLegendItems(e),!this.isHorizontal&&e&&e.length1&&(i._paginateLegendAreaTo("previous"),i._currentPageCount-=1)}),D.click(function(){i._currentPageCounti&&(o=i),o+l["default"].LEGEND_LABEL_LEFT_PADDING})},t.prototype.getRenderedLabelHeight=function(t,e){return p["default"].getRenderedTextSize(t,e.fontSize,e.fontFamily).height},t.prototype._renderLabel=function(t,e){var i=this.eventBus,o=this.labelTheme,n={left:t.left,top:t.top+this._legendItemHeight/2},r={fill:o.color,"font-size":o.fontSize,"font-family":o.fontFamily,"font-weight":o.fontWeight,opacity:e.isUnselected?T:1,"text-anchor":"start"},a=p["default"].renderText(this.paper,n,e.labelText,r);a.data("index",e.legendIndex),a.node.style.userSelect="none",a.node.style.cursor="pointer",e.legendSet.push(a),a.click(function(){i.fire("labelClicked",e.legendIndex)})},t.prototype._renderCheckbox=function(t,e){var i=this,o=t.left,n=t.top+(this._legendItemHeight-this._checkBoxHeight)/2,r=this._checkBoxWidth/3,a=this._checkBoxWidth/5.7,u=m["default"].oneLineTrim(s,.25*this._checkBoxWidth+o,.5*this._checkBoxHeight+n,a,a,r,r),l=this.paper.set(),h=this.paper.rect(o,n,this._checkBoxWidth,this._checkBoxHeight,0).attr({fill:"#fff",stroke:"#aaa","stroke-width":1});if(h.node.setAttribute("class","auto-shape-rendering"),l.push(h),e.isChecked){var p=this.paper.path(u).attr({stroke:"#555","stroke-width":2});p.node.setAttribute("class","auto-shape-rendering"),l.push(p)}l.data("index",e.legendIndex),l.click(function(){i.eventBus.fire("checkboxClicked",e.legendIndex)}),l.forEach(function(t){e.legendSet.push(t)})},t.prototype._renderIcon=function(t,e){var i=this,o=void 0;this.paper.setStart(),"line"!==e.iconType&&"radial"!==e.iconType||!this.paper.canvas.transform?o=p["default"].renderRect(this.paper,{left:t.left,top:t.top+(l["default"].LEGEND_CHECKBOX_SIZE-l["default"].LEGEND_ICON_HEIGHT)/2,width:l["default"].LEGEND_ICON_WIDTH,height:l["default"].LEGEND_ICON_HEIGHT},{"stroke-width":0,fill:e.legendColor,opacity:e.isUnselected?T:1}):(o=this.paper.path(l["default"].LEGEND_LINE_ICON_PATH),o.attr({stroke:e.legendColor,"stroke-width":2,"stroke-opacity":e.isUnselected?T:1}),o.translate(t.left,t.top)),o.data("icon",e.iconType),o.data("index",e.legendIndex),o.click(function(){i.eventBus.fire("labelClicked",e.legendIndex)}),e.legendSet.push(o)},t.prototype.selectLegend=function(t,e){e.forEach(function(e){var i=e.data("index"),o="line"===e.data("icon")?"stroke-opacity":"opacity";v["default"].isNull(i)||v["default"].isUndefined(i)?e.attr(o,1):v["default"].isUndefined(i)||(v["default"].isNumber(t)&&i!==t?e.attr(o,T):e.attr(o,1))})},t.prototype._getCheckboxWidth=function(){return this._showCheckbox?this._checkBoxWidth+l["default"].LEGEND_LABEL_LEFT_PADDING:0},t.prototype._getLabelWidth=function(t){var e=void 0;return e=t?this.labelWidths[t]||0:d["default"].max(this.labelWidths)},t.prototype._calculateLegendWidth=function(){return this._calculateSingleLegendWidth()},t.prototype._calculateSingleLegendWidth=function(t){return l["default"].LEGEND_AREA_H_PADDING+this._getCheckboxWidth()+a()+this._getLabelWidth(t)+l["default"].LEGEND_AREA_H_PADDING},t.prototype._setComponentDimensionsBaseOnLabelHeight=function(t){this._legendItemHeight=Math.max(t,l["default"].LEGEND_CHECKBOX_SIZE),this._checkBoxWidth=this._checkBoxHeight=l["default"].LEGEND_CHECKBOX_SIZE},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(7),r=o(n),a=i(11),s=o(a),u=100,l={calculateLimit:function(t,e){var i={},o=0;t<0&&(o=t,e-=t,t=0);var n=(e-t)/20;return i.max=e+n+o,e/6>t?i.min=o:i.min=t-n+o,i},makeTickPixelPositions:function(t,e,i,o){var n=[];return i=i||0,e>0&&(n=r["default"].range(0,e).map(function(o){var n=0===o?0:o/(e-1);return n*t+i}),n[n.length-1]-=1),o&&n.push(o),n},makeLabelsFromLimit:function(t,e){var i=l.findMultipleNum(e),o=Math.round(t.min*i),n=Math.round(t.max*i),a=r["default"].range(o,n+1,e*i);return a.map(function(t){return t/i})},calculateStepFromLimit:function(t,e){return l.divide(l.subtract(t.max,t.min),e-1)},sumPlusValues:function(t){var e=r["default"].filter(t,function(t){return t>0});return l.sum(e)},sumMinusValues:function(t){var e=r["default"].filter(t,function(t){return t<0});return l.sum(e)},makePercentageValue:function(t,e){return t/e*u},calculateRatio:function(t,e,i,o){return e?(t-i)/e*o:0}},h=function(t){var e=String(t).split(".");return 2===e.length?e[1].length:0},p=function(){for(var t=arguments.length,e=Array(t),i=0;ih.dimension[e]+f},g=void 0;o.forEach(function(o){var s="M";o+=n,m(o)||(r?a?(s+=d+","+(c+o),s+="H"+(d+5),s+="M"+p+","+(c+o),s+="H"+(p-5)):u?(s+=d+","+(c+o),s+="H"+(d+5)):(s+=p+","+(c+o),s+="H"+(p-5)):(s+=d+o+","+c,s+="V"+(c+5)),isNaN(o)||(g=i.path(s).attr({stroke:l,opacity:.5}),t.set.push(g),e.ticks.push(g)))})},t.prototype.renderStandardLine=function(t){var e=t.areaSize,i=t.layout,o=i.position,n=i.dimension,r=t.paper,a=t.isVertical,s=o.left,u=Math.abs(t.axisLimit.min),l=Math.abs(t.axisLimit.max),h=1-l/(u+l),p="M",c=o.top,d=s+n.width;if(a){var f=c;d+=t.seriesDimension.width*h,p+=d+","+f;var m=c+e;p+="V"+m}else{p+=s,c-=t.seriesDimension.height*h,p+=","+c+"H";var g=s+e;p+=g}t.set.push(r.path(p).attr({"stroke-width":1,opacity:.5}))},t.prototype.renderTickLine=function(t){var e=t.areaSize,i=t.paper,o=t.layout,n=o.position,r=n.top,a=n.left,s=o.dimension,u=t.isNegativeStandard,l=t.isNotDividedXAxis,h=t.additionalSize,p=t.isPositionRight,c=t.isCenter,d=t.isVertical,f=t.tickColor,m=t.seriesDimension,g=e,y=s.height+r,_=a+s.width,v="M",T=void 0,b=void 0;p?(v+=a+","+r,v+="V"+y):d?(T=r,u&&(_+=m.width/2),v+=_+","+T,c?(v+="V"+y,v+="M"+a+","+T,v+="V"+y):(b=r+g,v+="V"+b)):v=this._makeNormalTickPath(v,{isNotDividedXAxis:l,baseTop:r,baseLeft:a,additionalSize:h,isNegativeStandard:u,seriesDimension:m,lineSize:g}),t.set.push(i.path(v).attr({"stroke-width":1,stroke:f,opacity:.5}))},t.prototype._makeNormalTickPath=function(t,e){t+=e.isNotDividedXAxis?e.baseLeft:e.baseLeft+e.additionalSize,e.isNegativeStandard&&(e.baseTop-=e.seriesDimension.height/2),t+=","+e.baseTop+"H";var i=e.baseLeft+e.lineSize;return e.isNotDividedXAxis||(i+=e.additionalSize),t+=i},t.prototype.animateForAddingData=function(t){this.ticks.forEach(function(e){e.animate({transform:"t-"+t+",0"},300)})},t.prototype.calculatePosition=function(t,e){var i=e.rotationInfo,o=e.text,n=e.theme,u=e.additionalWidth,l=e.otherSideDimension,h=e.areaSize,p=e.tickCount,d=e.layout,f=r(o,n),m=a(o,n),g=d.dimension.height,y=d.dimension.width,_=d.position.top,v=d.position.left+u,T=m/2-l.width,b={top:_+g-f/2,left:v+(T<0?0:T)};return i.isVertical?i.isCenter?(b.top+=f/2,b.left=v+y/2):i.isDiverging||(b.top=_-f/2-c):i.isVertical||(i.isDiverging&&i.isYAxisCenter?b.left=v+h/2:i.isDiverging&&!i.isYAxisCenter?b.left=v+y/2:i.isColumnType&&(b.left=v+y/(p-1)/2)),i.isPositionRight&&(b.left+=y),i.isCenter||s(b,e.offset),b},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(6),s=o(a),u=i(11),l=o(u),h=8,p=3,c=function(){function t(){n(this,t)}return t.prototype.render=function(t){var e=t.paper.set();return this.paper=t.paper,this.layout=t.layout,this.plotPositions=t.plotPositions,this.theme=t.theme,this.options=t.options,this.labelData=t.labelData,this._renderPlot(e),this._renderLabels(e),e.toBack(),this.paper.pushDownBackgroundToBottom(),e},t.prototype._renderPlot=function(t){"circle"===this.options.type?this._renderCirclePlot(t):this._renderSpiderwebPlot(t),this._renderCategoryDots(t)},t.prototype._renderSpiderwebPlot=function(t){var e=this._getLinesPath(this.plotPositions);this._renderLines(e,this.theme.lineColor,t)},t.prototype._renderCirclePlot=function(t){for(var e=this.plotPositions,i=r(e,1),o=r(i[0],1),n=o[0],a=this.theme.lineColor,u=1;u1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=arguments[3];if(e.table&&(e=k["default"].makeDataWithTable(e.table)),e.series||(e.series=[]),e=O["default"].deepCopy(e),"combo"!==o){var n=e.series;e.series={},e.series[o]=n}i=i?O["default"].deepCopy(i):{},i.chartType=o,i.theme=i.theme||E["default"].DEFAULT_THEME_NAME;var r=M["default"].get(i.theme,o,e.series),a=D["default"].get(i.chartType,e,r,i);return a.render(t),a.animateChart(),a}function r(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BAR)}function a(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COLUMN)}function s(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_LINE)}function u(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_AREA)}function l(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BUBBLE)}function h(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_SCATTER)}function p(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_HEATMAP)}function c(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_TREEMAP)}function d(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_COMBO)}function f(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_PIE)}function m(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_MAP)}function g(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_RADIAL)}function y(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BOXPLOT)}function _(t,e,i){return n(t,e,i,E["default"].CHART_TYPE_BULLET)}function v(t,e){M["default"].register(t,e)}function T(t,e){w["default"].register(t,e)}function b(t,e,i){S["default"].register(t,e),N["default"].addRendererType(t,i)}var A=i(9),E=o(A),x=i(32),D=o(x),L=i(34),S=o(L),C=i(35),M=o(C),P=i(37),w=o(P),R=i(38),O=o(R),I=i(39),k=o(I),B=i(40),N=o(B);i(41),i(42),i(147),t.exports={barChart:r,columnChart:a,lineChart:s,areaChart:u,bubbleChart:l,scatterChart:h,heatmapChart:p,treemapChart:c,comboChart:d,pieChart:f,mapChart:m,radialChart:g,boxplotChart:y,bulletChart:_,registerTheme:v,registerMap:T,registerPlugin:b}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(33),s=o(a),u=i(16),l=o(u),h={};e["default"]={_findKey:function(t,e){var i=null;if(l["default"].isComboChart(t)){var o=s["default"].getChartTypeMap(e);o[r["default"].CHART_TYPE_COLUMN]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_COLUMN_LINE_COMBO:o[r["default"].CHART_TYPE_LINE]&&o[r["default"].CHART_TYPE_SCATTER]?i=r["default"].CHART_TYPE_LINE_SCATTER_COMBO:o[r["default"].CHART_TYPE_AREA]&&o[r["default"].CHART_TYPE_LINE]?i=r["default"].CHART_TYPE_LINE_AREA_COMBO:o[r["default"].CHART_TYPE_PIE]&&(i=r["default"].CHART_TYPE_PIE_DONUT_COMBO)}else i=t;return i},get:function(t,e,i,o){var n=this._findKey(t,e),r=h[n];if(!r)throw new Error("Not exist "+t+" chart.");return new r(e,i,o)},register:function(t,e){h[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(11),h=o(l),p=i(7),c=o(p); +e["default"]={pickStacks:function(t,e){var i=t.map(function(t){return t.stack}),o=h["default"].unique(i);e&&(o=o.slice(0,2));var n=o.filter(function(t){return!!t});return n.length1&&void 0!==arguments[1]?arguments[1]:{};u["default"].isValidStackOption(i.stackType)&&Object.keys(t.series).forEach(function(i){t.series[i]=e._sortSeriesData(t.series[i])}),i.diverging&&Object.entries(t.series).forEach(function(o){var r=n(o,2),a=r[0],s=r[1];t.series[a]=e._makeRawSeriesDataForDiverging(s,i.stackType)})},appendOutliersToSeriesData:function(t){var e=t.series.boxplot;e.forEach(function(t){var e=t.outliers;e&&e.length&&e.forEach(function(e){t.data[e[0]].push(e[1])})})},filterCheckedRawData:function(t,e){var i=JSON.parse(JSON.stringify(t));if(e&&Object.entries(i.series).forEach(function(t){var o=n(t,2),r=o[0],a=o[1];e[r]?e[r].length&&(i.series[r]=a.filter(function(t,i){return e[r][i]})):i.series[r]=[]}),i.series.bullet){var o=[];e.bullet.forEach(function(e,i){e&&o.push(t.categories[i])}),i.categories=o}return i},_makeRawSeriesDataForBulletChart:function(t){var e=t.series.bullet,i=void 0===e?[]:e;t.categories=t.categories||[],t.categories=i.map(function(t){return t.name||""})}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a={};e["default"]={get:function(t,e){var i=a[t||r["default"].DEFAULT_PLUGIN];if(!i)throw new Error("Not exist "+t+" plugin.");var o=i[e];if(!o)throw new Error("Not exist "+e+" chart renderer.");var n=new o;return n},register:function(t,e){a[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(36),h=o(l),p=i(7),c=o(p),d={};e["default"]={register:function(t,e){e=JSON.parse(JSON.stringify(e)),d[t]=e},_pickSeriesNames:function(t,e){var i=[];return u["default"].isComboChart(t)?Object.keys(e).forEach(function(t){i.push(t)}):i.push(t),i},_overwriteTheme:function(t,e){var i=this;Object.entries(e).forEach(function(o){var r=n(o,2),a=r[0],s=r[1],u=t[a];(u||0===u)&&(c["default"].isArray(u)?e[a]=u.slice():c["default"].isObject(u)?i._overwriteTheme(u,s):e[a]=u)})},_pickValidTheme:function(t,e){var i={};return a["default"].THEME_PROPS_MAP[e].forEach(function(e){c["default"].isExisty(t[e])&&(i[e]=t[e])}),i},_createComponentThemeWithSeriesName:function(t,e,i,o){var n=this,r={};return e=e||{},t.forEach(function(t){var a=e[t]||n._pickValidTheme(e,o);c["default"].keys(a).length?(r[t]=JSON.parse(JSON.stringify(h["default"][o])),n._overwriteTheme(a,r[t])):r[t]=JSON.parse(JSON.stringify(i))}),r},_makeEachSeriesColors:function(t,e,i){for(var o=[],n=t.length,r=i||0,a=0;a=n&&(r=0);return o},_setSeriesColors:function(t,e,i,o){var n=this,r=void 0,a=void 0,s=void 0,u=0;i=i||{},t.forEach(function(t){i[t]?(r=i[t].colors,s=!0):(r=i.colors||h["default"].series.colors,s=!1),a=n._getSeriesThemeColorCount(o[t]),e[t].colors=n._makeEachSeriesColors(r,a,!s&&u),s||(u=(a+u)%r.length)})},_getSeriesThemeColorCount:function(t){var e=0;return t&&t.length&&(e=t.colorLength?t.colorLength:t.length),e},_initTheme:function(t,e,i,o){var n=void 0;return t!==a["default"].DEFAULT_THEME_NAME?(n=JSON.parse(JSON.stringify(h["default"])),this._overwriteTheme(e,n)):n=JSON.parse(JSON.stringify(e)),n.yAxis=this._createComponentThemeWithSeriesName(i,e.yAxis,n.yAxis,"yAxis"),n.series=this._createComponentThemeWithSeriesName(i,e.series,n.series,"series"),this._setSeriesColors(i,n.series,e.series,o),n},_createTargetThemesForFontInherit:function(t){var e=[t.title,t.xAxis.title,t.xAxis.label,t.legend.label,t.plot.label];return c["default"].forEach(t.yAxis,function(t){e.push(t.title,t.label)}),c["default"].forEach(t.series,function(t){e.push(t.label)}),e},_inheritThemeFont:function(t){var e=this._createTargetThemesForFontInherit(t),i=t.chart.fontFamily;e.forEach(function(t){t.fontFamily||(t.fontFamily=i)})},_copySeriesColorTheme:function(t,e,i){e[i]={colors:t.colors,borderColor:t.borderColor,selectionColor:t.selectionColor}},_copySeriesColorThemeToOther:function(t){var e=this;c["default"].forEach(t.series,function(i,o){e._copySeriesColorTheme(i,t.legend,o),e._copySeriesColorTheme(i,t.tooltip,o)})},get:function(t,e,i){var o=d[t];if(!o)throw new Error("Not exist "+t+" theme.");var n=this._pickSeriesNames(e,i),r=this._initTheme(t,o,n,i);return this._inheritThemeFont(r,n),this._copySeriesColorThemeToOther(r),r}}},function(t,e){"use strict";e.__esModule=!0;var i="#000000",o="#ffffff",n="lighter",r="Arial",a="",s={tickColor:i,title:{fontSize:11,fontFamily:r,color:"#bbbbbb",fontWeight:"bold"},label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:"normal"}};e["default"]={chart:{background:{color:o,opacity:1},fontFamily:r},title:{fontSize:18,fontFamily:r,color:i,fontWeight:n},yAxis:s,xAxis:s,plot:{lineColor:"#000000",background:"#ffffff",label:{fontSize:11,fontFamily:r,color:"#888"}},series:{label:{fontSize:11,fontFamily:r,color:i,fontWeight:n},colors:["#00a9ff","#ffb840","#ff5a46","#00bd9f","#785fff","#f28b8c","#989486","#516f7d","#29dbe3","#dddddd"],borderColor:a,borderWidth:a,selectionColor:a,startColor:"#FFE98A",endColor:"#D74177",overColor:a,dot:{fillColor:a,fillOpacity:1,strokeColor:a,strokeOpacity:a,strokeWidth:0,radius:6,hover:{fillColor:a,fillOpacity:1,strokeColor:"#fff",strokeOpacity:1,strokeWidth:4,radius:6}},ranges:[]},legend:{label:{fontSize:11,fontFamily:r,color:"#333",fontWeight:n}},tooltip:{},chartExportMenu:{backgroundColor:"#fff",borderRadius:0,borderWidth:1,color:"#000"}}},function(t,e){"use strict";e.__esModule=!0;var i={};e["default"]={get:function(t){var e=i[t];if(!e)throw new Error("Not exist "+t+" map.");return e},register:function(t,e){i[t]=e}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(7),a=o(r),s=function u(t){var e=void 0;return a["default"].isArray(t)?(e=[],t.forEach(function(t,i){e[i]=u(t)})):a["default"].isFunction(t)||a["default"].isDate(t)?e=t:a["default"].isObject(t)?(e={},Object.entries(t).forEach(function(t){var i=n(t,2),o=i[0],r=i[1];e[o]=u(r)})):e=t,e};e["default"]={deepCopy:s}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=void 0;return t.length>0&&(e={},e.categories=[],e.series=[],e.categories=t.shift().slice(1),t.forEach(function(t){var i={name:t[0],data:t.slice(1)};e.series.push(i)})),e}function r(t){var e=[];if(t){var i=[],o=h["default"].toArray(t.getElementsByTagName("TR"));h["default"].forEach(o,function(t,e){var o=0===e?"TH":"TD",n=h["default"].toArray(t.getElementsByTagName(o)),r=h["default"].pluck(n,"innerText");i.push(r)}),i[0].length1,this.addComponents(),this._attachToEventBus(),this.options.usageStatistics&&this._sendHostName()}return t.prototype._sendHostName=function(){L["default"].sendHostname("chart")},t.prototype._attachToEventBus=function(){this.eventBus.on("changeCheckedLegends",this.onChangeCheckedLegends,this),this.onZoom&&this.eventBus.on({zoom:this.onZoom,resetZoom:this.onResetZoom},this)},t.prototype._setOffsetProperty=function(t,e,i){L["default"].isExisty(t[e])&&(t.offset=t.offset||{},t.offset[i]=t[e],delete t[e])},t.prototype._initializeOffset=function(t){t&&(this._setOffsetProperty(t,"offsetX","x"),this._setOffsetProperty(t,"offsetY","y"))},t.prototype._initializeTitleOptions=function(t){var e=this;if(t){var i=L["default"].isArray(t)?t:[t];i.forEach(function(t){var i=t.title;L["default"].isString(i)&&(t.title={text:i}),e._initializeOffset(t.title)})}},t.prototype._initializeTooltipOptions=function(t){t.grouped=!!t.grouped,this._initializeOffset(t),delete t.position},t.prototype._initializeOptions=function(t){var e=_["default"].deepCopy(t),i={chartTypes:this.charTypes,xAxis:{},series:{},tooltip:{},usageStatistics:!0,chartExportMenu:Object.assign({visible:!0},e.chartExportMenu),legend:Object.assign({visible:!0},e.legend)};delete e.chartExportMenu,delete e.legend,Object.assign(t,i,e),this._initializeTitleOptions(t.chart),this._initializeTitleOptions(t.xAxis),this._initializeTitleOptions(t.yAxis),this._initializeTooltipOptions(t.tooltip),this.options=t},t.prototype._createDataProcessor=function(t){var e=t.DataProcessor||h["default"],i=new e(t.rawData,this.chartType,t.options,this.seriesTypes);return i},t.prototype._createComponentManager=function(){return new u["default"]({options:this.options,theme:this.theme,dataProcessor:this.dataProcessor,hasAxes:this.hasAxes,eventBus:this.eventBus,isVertical:this.isVertical,seriesTypes:this.seriesTypes||[this.chartType]})},t.prototype.addComponents=function(){},t.prototype.getScaleOption=function(){},t.prototype._buildBoundsAndScaleData=function(t,e){return T["default"].build(this.dataProcessor,this.componentManager,{chartType:this.chartType,seriesTypes:this.seriesTypes,options:this.options,theme:this.theme,hasAxes:this.hasAxes,scaleOption:this.getScaleOption(),isVertical:this.isVertical,hasRightYAxis:this.hasRightYAxis,addedDataCount:this._dynamicDataHelper?this._dynamicDataHelper.addedDataCount:null,prevXAxisData:t,addingDataMode:e})},t.prototype.addDataRatios=function(){},t.prototype.readyForRender=function(t){var e=this._buildBoundsAndScaleData(this.prevXAxisData,t);return e.axisDataMap.xAxis&&(this.prevXAxisData=e.axisDataMap.xAxis),this.addDataRatios(e.limitMap),e},t.prototype.render=function(t){var e=f["default"].create("DIV","tui-chart "+this.className),i=this.componentManager,o=this.dataProcessor,n=o.getLegendVisibility(),r=c["default"].filterCheckedRawData(o.rawData,n),s=i.drawingToolPicker.getPaper(e,a["default"].COMPONENT_TYPE_RAPHAEL);this.dataProcessor.initData(r),s.changeChartBackgroundColor(this.theme.chart.background.color),s.changeChartBackgroundOpacity(this.theme.chart.background.opacity),g["default"].renderFontFamily(e,this.theme.chart.fontFamily),f["default"].append(t,e);var u=this.readyForRender();g["default"].renderDimension(e,u.dimensionMap.chart),i.render("render",u,{checkedLegends:n},e),this.chartContainer=e,this.paper=s},t.prototype.protectedRerender=function(t,e){var i=this.dataProcessor;e||(e=c["default"].filterCheckedRawData(i.getZoomedRawData(),t)),this.dataProcessor.initData(e);var o=this.readyForRender();this.componentManager.render("rerender",o,{checkedLegends:t},this.chartContainer)},t.prototype.rerender=function(t,e){t=t||this.getCheckedLegend(),e=e||this.dataProcessor.getOriginalRawData();var i=e.series;e.series=Object.keys(i).reduce(function(e,o){var n=i[o],r=t[o];return e[o]=n.map(function(t,e){return t.visible=r[e],t}),e},{}),this.setData(e)},t.prototype.setData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._initializeRawData(t),i=this.dataProcessor,o=this.options,n=o.chartType,r=o.theme;i.initData(e,!0);var a=A["default"].get(r,n,e.series);this.theme=a,this.componentManager.presetForChangeData(a),this.protectedRerender(i.getLegendVisibility())},t.prototype.getCheckedLegend=function(){var t=this.componentManager,e=this.dataProcessor,i=t.has("legend");return i?t.get("legend").getCheckedIndexes():e.getLegendVisibility()},t.prototype._initializeRawData=function(t){var e=_["default"].deepCopy(t),i=this.options,o=i.chartType,n=i.series;if("combo"!==o&&L["default"].isArray(e.series)){var r=e.series;e.series={},e.series[o]=r}return c["default"].updateRawSeriesDataByOptions(e,n),"boxplot"===o&&c["default"].appendOutliersToSeriesData(e),e},t.prototype.onChangeCheckedLegends=function(t,e,i){this.protectedRerender(t,e,i)},t.prototype.animateChart=function(){this.componentManager.execute("animateComponent")},t.prototype.on=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.on(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype.off=function(t,e){a["default"].PUBLIC_EVENT_MAP[t]&&this.eventBus.off(a["default"].PUBLIC_EVENT_PREFIX+t,e)},t.prototype._updateChartDimension=function(t){var e=!1,i=this.options;return i.chart=i.chart||{},t.width&&t.width>0&&i.chart.width!==t.width&&(i.chart.width=t.width,e=!0),t.height&&t.height>0&&i.chart.height!==t.height&&(i.chart.height=t.height,e=!0),e},t.prototype.resize=function(t){var e=this.dataProcessor,i=e.getLegendVisibility();if(t){var o=this._updateChartDimension(t);if(o){var n=this.readyForRender(),r=n.dimensionMap.chart;g["default"].renderDimension(this.chartContainer,r),this.paper.resizeBackground(r.width,r.height),this.componentManager.render("resize",n,{checkedLegends:i})}}},t.prototype.setTooltipAlign=function(t){this.componentManager.get("tooltip").setAlign(t)},t.prototype.setTooltipOffset=function(t){this.componentManager.get("tooltip").setOffset(t)},t.prototype.setTooltipPosition=function(t){this.componentManager.get("tooltip").setPosition(t)},t.prototype.resetTooltipAlign=function(){this.componentManager.get("tooltip").resetAlign()},t.prototype.resetTooltipOffset=function(){this.componentManager.get("tooltip").resetOffset()},t.prototype.resetTooltipPosition=function(){this.resetTooltipOffset()},t.prototype.showSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.showLabel()})},t.prototype.hideSeriesLabel=function(){var t=this.componentManager.where({componentType:"series"});t.forEach(function(t){t.hideLabel()})},t.prototype.addData=function(){},t.prototype.addPlotLine=function(){},t.prototype.addPlotBand=function(){},t.prototype.removePlotLine=function(){},t.prototype.removePlotBand=function(){},t.prototype._getSeriesData=function(t,e,i){var o={index:t,seriesIndex:e,outlierIndex:i};return e<0?null:this.componentManager.get("mouseEventDetector").findDataByIndexes(o)},t.prototype._findSeriesIndexByLabel=function(t,e){for(var i=this.dataProcessor.getLegendLabels(t),o=i?i.length:0,n=-1,r=0;r=0||!t&&e.prevFoundData)&&e._hideTooltip({silent:!0})}},t}();e["default"]=S},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(10),l=o(u),h=i(46),p=o(h),c=i(47),d=o(c),f=i(48),m=o(f),g=i(49),y=o(g),_=i(51),v=o(_),T=i(40),b=o(T),A=i(57),E=o(A),x=i(59),D=o(x),L=i(60),S=o(L),C=i(61),M=o(C),P=i(67),w=o(P),R=i(69),O=o(R),I=i(70),k=o(I),B=i(74),N=o(B),F=i(81),G=o(F),H=i(85),V=o(H),z=i(86),j=o(z),W=i(88),Y=o(W),U=i(89),X=o(U),Z=i(90),K=o(Z),q=i(92),J=o(q),Q=i(93),$=o(Q),tt=i(94),et=o(tt),it=i(95),ot=o(it),nt=i(96),rt=o(nt),at=i(98),st=o(at),ut=i(99),lt=o(ut),ht=i(100),pt=o(ht),ct=i(7),dt=o(ct),ft={axis:p["default"],plot:d["default"],radialPlot:y["default"],legend:E["default"],spectrumLegend:D["default"],circleLegend:S["default"],tooltip:M["default"],groupTooltip:w["default"],mapChartTooltip:O["default"],mapChartEventDetector:k["default"],mouseEventDetector:N["default"],barSeries:G["default"],columnSeries:V["default"],lineSeries:j["default"],radialSeries:Y["default"],areaSeries:X["default"],bubbleSeries:K["default"],scatterSeries:J["default"],mapSeries:$["default"],pieSeries:et["default"],heatmapSeries:ot["default"],treemapSeries:rt["default"],boxplotSeries:st["default"],bulletSeries:lt["default"],zoom:pt["default"],chartExportMenu:v["default"],title:m["default"]},mt=function(){function t(e){n(this,t);var i=e.options.chart,o=dt["default"].pick(i,"width")||s["default"].CHART_DEFAULT_WIDTH,r=dt["default"].pick(i,"height")||s["default"].CHART_DEFAULT_HEIGHT;this.components=[],this.componentMap={},this.theme=e.theme||{},this.options=e.options||{},this.dataProcessor=e.dataProcessor,this.hasAxes=e.hasAxes,this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.drawingToolPicker=new b["default"],this.drawingToolPicker.initDimension({width:o,height:r}),this.seriesTypes=e.seriesTypes}return t.prototype._makeComponentOptions=function(t,e,i,o){return t=t||this.options[e],t=dt["default"].isArray(t)?t[o]:t||{}},t.prototype.register=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.index||0,n=ft[e],r=n.componentType;i.name=t,i.chartTheme=this.theme,i.chartOptions=this.options,i.seriesTypes=this.seriesTypes;var a=this._getOptionKey(r,t);i.theme=this._makeTheme(a,t),i.options=this._makeOptions(a,t,o),i.dataProcessor=this.dataProcessor,i.hasAxes=this.hasAxes,i.isVertical=this.isVertical,i.eventBus=this.eventBus,i.alternativeModel=this.alternativeModel;var s=n(i);s&&(s.componentName=t,s.componentType=r,this.components.push(s),this.componentMap[t]=s)},t.prototype.presetForChangeData=function(t){var e=this;this.theme=t,this.components.forEach(function(t){if(t.presetForChangeData){var i=t.componentType,o=t.componentName,n=e._getOptionKey(i,o);t.presetForChangeData(e._makeTheme(n,o))}})},t.prototype._makeOptions=function(t,e,i){var o=this.options[t];return o||"rightYAxis"!==t||(o=this.options.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(o=o[t]||o,dt["default"].isArray(o)&&(o=o[i]||{}),!1)}),o},t.prototype._getOptionKey=function(t,e){return"axis"===t?e:t},t.prototype._makeTheme=function(t,e){var i=this.theme[t];return i||"rightYAxis"!==t||(i=this.theme.yAxis),"series"===t&&this.seriesTypes.forEach(function(t){return 0!==e.indexOf(t)||(i=i[t],!1)}),i},t.prototype._makeDataForRendering=function(t,e,i,o,n){var r=Object.assign({paper:i},n);return o&&(Object.assign(r,o),r.layout={dimension:r.dimensionMap[t]||r.dimensionMap[e],position:r.positionMap[t]||r.positionMap[e]}),r},t.prototype.render=function(t,e,i,o){var n=this,r=this.components.map(function(r){var a=null;if(r[t]){var s=r.componentName,u=r.componentType,l=n.drawingToolPicker.getPaper(o,r.drawingType),h=n._makeDataForRendering(s,u,l,e,i),p=r[t](h);p&&!p.paper&&(a=p)}return a});o&&l["default"].append(o,r)},t.prototype.where=function(t){return this.components.filter(function(e){var i=!0;return Object.entries(t).forEach(function(t){var o=r(t,2),n=o[0],a=o[1];return e[n]!==a&&(i=!1),i}),i})},t.prototype.execute=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o3&&void 0!==arguments[3]?arguments[3]:0,n=this.isYAxis&&this.data.aligned,r=this.limitMap[this.dataProcessor.chartType],a=!this.data.limit&&r&&r.min<0,s=l["default"].isBarTypeChart(this.dataProcessor.chartType),u=this.dataProcessor.getOption("series")||{},h=u.diverging;this.isYAxis&&!this.data.isPositionRight&&!this.options.isCenter&&this.shifting&&this._renderBackground(),this._renderTitleArea(t,o),this.options.showLabel!==!1&&this._renderLabelArea(t,e,i,o),n||this._renderTickArea(t,e,o),a&&s&&!h&&this._renderNegativeStandardsLine(t,o,this.dimensionMap.series,r)},t.prototype._renderDividedAxis=function(t){var e=t.width,i=this.data,o=i.tickCount,n=i.labels,r=Math.round(e/2),a=e-r-1,s=parseInt(o/2,10)+1,u=n.slice(0,s),l=n.slice(s-1,o),h=r/s,p=r+this.dimensionMap.yAxis.width-1; +this.paperAdditionalWidth=h,this._renderChildContainers(r,s,u,0),this._renderChildContainers(a+1,s,l,p)},t.prototype._renderNotDividedAxis=function(t){var e=t.width,i=t.height,o=this.data,n=o.positionRatio,r=o.tickCount,a=o.labels,s=this.isYAxis,u=s?i:e,l=0;n&&(l=u*n),this._renderChildContainers(u,r,a,l)},t.prototype._renderAxisArea=function(){var t=this.layout.dimension,e=this.data.isLabelAxis,i=this.options,o=i.divided,n=i.isCenter,r=t.width;this.isLabelAxis=e,o?(this.containerWidth=r+this.dimensionMap.yAxis.width,this._renderDividedAxis(t),r=this.containerWidth):(r+=n?1:0,this._renderNotDividedAxis(t))},t.prototype._setDataForRendering=function(t){var e=t.layout,i=t.dimensionMap,o=t.limitMap,n=t.axisDataMap;this.layout=e,this.dimensionMap=i,this.limitMap=o,this.data=n[this.componentName],this.options=this.data.options},t.prototype.render=function(t){var e=t.paper;this.paper=e,this.axisSet=e.set(),this._setDataForRendering(t),this._renderAxisArea()},t.prototype.rerender=function(t){this.axisSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._getOtherSideDimension=function(){return this.dimensionMap[this.isYAxis?"xAxis":"yAxis"]},t.prototype._renderTitleArea=function(t,e){var i=this.options.title,o=void 0===i?{}:i,n=this.dataProcessor.getOption("yAxis"),r=this.dataProcessor.getOption("series")||{};o.text&&this.graphRenderer.renderTitle(this.paper,{text:o.text,offset:o.offset,theme:this.theme.title,rotationInfo:{isVertical:this.isYAxis,isPositionRight:this.data.isPositionRight,isCenter:this.options.isCenter,isColumnType:l["default"].isColumnTypeChart(this.dataProcessor.chartType,this.dataProcessor.seriesTypes),isDiverging:r.diverging,isYAxisCenter:n&&"center"===n.align},layout:this.layout,areaSize:t,additionalWidth:e,otherSideDimension:this._getOtherSideDimension(),tickCount:this.data.tickCount,set:this.axisSet})},t.prototype._renderTickLine=function(t,e,i){this.graphRenderer.renderTickLine({areaSize:t,additionalSize:i,additionalWidth:this.paperAdditionalWidth,additionalHeight:this.paperAdditionalHeight,isPositionRight:this.data.isPositionRight,isCenter:this.data.options.isCenter,isNotDividedXAxis:e,isVertical:this.isYAxis,tickColor:this.theme.tickColor,layout:this.layout,paper:this.paper,set:this.axisSet})},t.prototype._renderTicks=function(t,e,i,o){var n=this.theme.tickColor,r=this.data,a=r.remainLastBlockInterval,s=r.sizeRatio,u=void 0===s?1:s,l=r.tickCount,h=r.isPositionRight,c=a?t:0,d=this.isYAxis,f=this.data.options,m=f.isCenter,g=f.divided,y=p["default"].makeTickPixelPositions(t*u,e,0,c),_=this.paperAdditionalHeight+1,v=this.paperAdditionalWidth,T=c?l+1:l;y.length=T,this.graphRenderer.renderTicks({paper:this.paper,layout:this.layout,positions:y,isVertical:d,isCenter:m,isDivided:g,additionalSize:o,additionalWidth:v,additionalHeight:_,otherSideDimension:this._getOtherSideDimension(),isPositionRight:h,tickColor:n,set:this.axisSet})},t.prototype._renderNegativeStandardsLine=function(t,e,i,o){this.graphRenderer.renderStandardLine({areaSize:t,isVertical:this.isYAxis,layout:this.layout,paper:this.paper,set:this.axisSet,seriesDimension:i,axisLimit:o})},t.prototype._renderTickArea=function(t,e,i){var o=!this.isYAxis&&!this.options.divided;this._renderTickLine(t,o,i||0),this._renderTicks(t,e,o,i||0)},t.prototype._renderLabelArea=function(t,e,i,o){var n=this.data,r=n.sizeRatio,a=void 0===r?1:r,s=n.remainLastBlockInterval,u=s?t:0,l=p["default"].makeTickPixelPositions(t*a,e,0,u),h=l[1]-l[0];this._renderLabels(l,i,h,o||0)},t.prototype._renderRotationLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.theme.label,u=this.data.degree,l=i/2,h=i/_,p=this.layout.position,c=p.top,d=p.left,f=c+v,m=d,g=this.options.labelMargin||0;t.forEach(function(t,p){var c=t+(o||0),d={};a?(d.top=c+l,d.left=i+g):(d.top=f+g,d.left=m+c+h),r.renderRotatedLabel({degree:u,labelText:e[p],paper:n.paper,positionTopAndLeft:d,set:n.axisSet,theme:s})},this)},t.prototype._renderNormalLabels=function(t,e,i,o){var n=this,r=this.graphRenderer,a=this.isYAxis,s=this.isLabelAxis,u=this.dataProcessor,h=this.layout,p=this.data.isPositionRight,c=this.theme.label,d=this.options,f=d.labelMargin,g=void 0===f?0:f,y=d.pointOnColumn,_=d.isCenter,v=l["default"].isLineTypeChart(u.chartType,u.seriesTypes),T=v&&y,b=l["default"].isAutoTickInterval(this.options.tickInterval);t.forEach(function(u,l){var d=u+o,f=i/2,y=n._isOverLapXAxisLabel(e[l],u,t[l+1]),A={};d<0||!a&&b&&y||(A=a?n._getYAxisLabelPosition(h,{labelPosition:d,isCategoryLabel:s,halfLabelDistance:f,isPositionRight:p}):n._getXAxisLabelPosition(h,{labelMargin:g,labelHeight:m["default"].getRenderedLabelsMaxHeight(e,c),labelPosition:d,isCategoryLabel:s,isLineTypeChart:v,isPointOnColumn:T,halfLabelDistance:f}),A.top=Math.round(A.top),A.left=Math.round(A.left),r.renderLabel({isPositionRight:p,isVertical:a,isCenter:_,labelSize:i,labelText:e[l],paper:n.paper,positionTopAndLeft:A,set:n.axisSet,theme:c}))},this)},t.prototype._isOverLapXAxisLabel=function(t,e,i){var o=m["default"].getRenderedLabelWidth(t);return!y["default"].isUndefined(i)&&i-e0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t},t.prototype._renderPlotArea=function(t){var e=this.layout.dimension;p["default"].isLineTypeChart(this.chartType,this.chartTypes)&&this._renderOptionalLines(t,e),this.options.showLine&&this._renderPlotLines(t,e)},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.axisDataMap=t.axisDataMap,this.paper=t.paper)},t.prototype.render=function(t){var e=t&&t.paper||this.paper;this.plotSet=e.set(),this.additionalPlotSet=e.set(),this._setDataForRendering(t),this._renderPlotArea(this.paper),this.additionalPlotSet.toBack(),this.plotSet.toBack(),e.pushDownBackgroundToBottom()},t.prototype.rerender=function(t){this.additionalPlotSet.remove(),this.plotSet.remove(),this.render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype.zoom=function(t){this.rerender(t)},t.prototype._makeVerticalLineTemplateParams=function(t){return m["default"].extend({className:"vertical",positionType:"left",width:"1px"},t)},t.prototype._makeHorizontalLineTemplateParams=function(t){return m["default"].extend({className:"horizontal",positionType:"bottom",height:"1px"},t)},t.prototype._renderLine=function(t,e){var i=this.layout,o=i.position.top,n=i.dimension.height,r="M"+t+","+o+"V"+(o+n),a=this.paper.path(r);return a.attr({opacity:e.opacity||1,stroke:e.color}),this.additionalPlotSet.push(a),a},t.prototype._renderBand=function(t,e,i){var o=this.layout,n=o.position,r=o.dimension,a=r.width-t+n.left,s=e<0?a:e,u=this.paper.rect(t,n.top,s,r.height);return u.attr({fill:i.color,opacity:i.opacity||1,stroke:i.color}),this.additionalPlotSet.push(u),u},t.prototype._createOptionalLineValueRange=function(t){var e=t.range||[t.value];return p["default"].isDatetimeType(this.xAxisTypeOption)&&(e=e.map(function(t){var e=new Date(t);return e.getTime()||t})),e},t.prototype._createOptionalLinePosition=function(t,e,i){var o=t.dataMin,n=t.distance,r=(i-o)/n,a=r*e;return 1===r&&(a-=1),a<0&&(a=null),a},t.prototype._createOptionalLinePositionWhenLabelAxis=function(t,e){var i=this.dataProcessor,o=i.findCategoryIndex(e),n=null,r=void 0;return m["default"].isNull(o)||(r=0===o?0:o/(i.getCategoryCount()-1),n=r*t),1===r&&(n-=1),n},t.prototype._createOptionalLinePositionMap=function(t,e,i){var o=this.dataProcessor.getCategories(),n=this._createOptionalLineValueRange(t),r=void 0,a=void 0;return e.isLabelAxis?(r=this._createOptionalLinePositionWhenLabelAxis(i,n[0]),a=this._createOptionalLinePositionWhenLabelAxis(i,n[1])):(r=this._createOptionalLinePosition(e,i,n[0]),a=n[1]&&this._createOptionalLinePosition(e,i,n[1])),m["default"].isNull(r)&&(r=this._isBeforeVisibleCategories(n[0],o[0])?0:-1),m["default"].isNull(a)&&(a=this._isAfterVisibleCatgories(n[1],o[o.length-1])?i:-1),{start:r,end:a}},t.prototype._isBeforeVisibleCategories=function(t,e){var i=this.dataProcessor;if(!m["default"].isExisty(t))return!1;if(p["default"].isDatetimeType(this.xAxisTypeOption))return t=0&&oe;var o=i.findAbsoluteCategoryIndex(t),n=i.findAbsoluteCategoryIndex(e);return o>=0&&o>n},t.prototype._renderOptionalLine=function(t,e,i,o){var n=this._createOptionalLinePositionMap(o,t,e),r=void 0;return n.start>=0&&n.start<=e&&(i.width=1,i.color=o.color||"transparent",i.opacity=o.opacity,r=this._renderLine(n.start+this.layout.position.left,i)),r},t.prototype._makeOptionalBand=function(t,e,i,o){var n=this,a=o.range;a&&a.length&&this._makeRangeTo2DArray(o);var s=o.range.map(function(i){return n._createOptionalLinePositionMap({range:i},t,e)});return o.mergeOverlappingRanges&&(s.sort(r),s=this._mergeOverlappingPositionMaps(s)),s.map(function(t){var r=t.start>=0&&t.start<=e,a=void 0;if(r&&t.end>=0){i.color=o.color||"transparent",i.opacity=o.opacity;var s=t.end-t.start;a=n._renderBand(t.start+n.layout.position.left,s,i)}return a},this)},t.prototype._makeOptionalLines=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._renderOptionalLine.bind(this,n,i,r);return t.map(a)},t.prototype._makeOptionalBands=function(t,e){var i=e.width,o=e.height,n=this.axisDataMap.xAxis,r=this._makeVerticalLineTemplateParams({height:o+"px"}),a=this._makeOptionalBand.bind(this,n,i,r);return t.map(a)},t.prototype._renderOptionalLines=function(t,e){this.optionalBands=this._makeOptionalBands(this.options.bands,e),this.optionalLines=this._makeOptionalLines(this.options.lines,e)},t.prototype._renderVerticalLines=function(t){var e=this,i=t.width,o=this._makeHorizontalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.top,u=a.left;o.forEach(function(t){var i="M"+(t+u)+","+s+"V"+(s+n.dimension.height),o=e.paper.path(i);o.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(o)})},t.prototype._renderHorizontalLines=function(t){var e=this,i=t.height,o=this._makeVerticalPositions(i),n=this.layout,r=this.theme.lineColor,a=n.position,s=a.left,u=a.top,l=o[1]-o[0];o.forEach(function(t,i){var o="M"+s+","+(l*i+u)+"H"+(s+n.dimension.width),a=e.paper.path(o);a.attr({stroke:r,"stroke-width":1,"stroke-opacity":.05}),e.plotSet.push(a)})},t.prototype._renderPlotLines=function(t,e){this.options.hideLine||(this._renderVerticalLines(e),this._renderHorizontalLines(e))},t.prototype._makeVerticalPositions=function(t){var e=this.axisDataMap,i=e.yAxis||e.rightYAxis,o=d["default"].makeTickPixelPositions(t,i.validTickCount);return o.shift(),o},t.prototype._makeDividedPlotPositions=function(t,e){var i=this.dimensionMap.yAxis.width;e=parseInt(e/2,10)+1,t-=i;var o=Math.round(t/2),n=t-o,r=d["default"].makeTickPixelPositions(o,e),a=d["default"].makeTickPixelPositions(n,e,o+i);return r.pop(),a.shift(),r.concat(a)},t.prototype._makeHorizontalPositions=function(t){var e=this.axisDataMap.xAxis.validTickCount,i=void 0;return this.options.divided?i=this._makeDividedPlotPositions(t,e):(i=d["default"].makeTickPixelPositions(t,e),i.shift()),i},t.prototype.addPlotLine=function(t){this.options.lines.push(t),this.rerender()},t.prototype.addPlotBand=function(t){this.options.bands.push(t),this.rerender()},t.prototype.removePlotLine=function(t){this.options.lines=this.options.lines.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.removePlotBand=function(t){this.options.bands=this.options.bands.filter(function(e){return e.id!==t}),this.rerender()},t.prototype.animateForAddingData=function(t){var e=this,i=this.options.lines,o=this.options.bands;this.dataProcessor.isCoordinateType()||t.shifting&&(this._animateItemForAddingData(this.optionalLines,t,function(t){i.splice(t,1)}),this.optionalBands.forEach(function(i,n){e._animateItemForAddingData(i,t,function(t){o[n].range.splice(t,1)})}))},t.prototype._animateItemForAddingData=function(t,e,i){var o=this;t.forEach(function(t,n){var r=t.getBBox();r.x-e.tickSize0&&c<180?"end":c>180&&c<360?"start":"middle",u.push({left:d.x,top:i-d.y,anchor:f})}return u}function s(t){return new A(t)}e.__esModule=!0,e["default"]=s;var u=i(50),l=o(u),h=i(25),p=o(h),c=i(9),d=o(c),f=i(34),m=o(f),g=i(7),y=o(g),_=d["default"].COMPONENT_TYPE_RAPHAEL,v=d["default"].RADIAL_PLOT_PADDING,T=d["default"].RADIAL_MARGIN_FOR_CATEGORY,b=d["default"].RADIAL_CATEGORY_PADDING,A=function(){function t(e){n(this,t),this.className="tui-chart-plot-area",this.options=y["default"].extend({type:"spiderweb"},e.options),this.theme=e.theme||{},this.graphRenderer=m["default"].get(_,"radialPlot"),this.drawingType=_}return t.prototype._renderPlotArea=function(t,e,i,o){var n={paper:t,layout:e,plotPositions:i,labelData:o,theme:this.theme,options:this.options};return this.graphRenderer.render(n)},t.prototype._makePositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,a=o.top,s=i.width,u=i.height;s=s-v-T,u=u-v-T;var l=p["default"].sum([s/2,v/2,T/2,n]),h=u/2-v/2-T/2-a,c=t.yAxis.tickCount,d=t.xAxis.labels.length;return r({width:s,height:u,centerX:l,centerY:h,angleStepCount:d,stepCount:c})},t.prototype._makeCategoryPositions=function(t,e){var i=e.dimension,o=e.position,n=o.left,r=o.top,s=i.width,u=i.height;s=s-v-b,u=u-v-b;var l=p["default"].sum([s/2,v/2,b/2,n]),h=u/2-v/2-b/2-r,c=t.xAxis.labels.length;return a({width:s,height:u,centerX:l,centerY:h,angleStepCount:c})},t.prototype._makeLabelData=function(t,e,i){for(var o=t.xAxis.labels,n=t.yAxis.labels,r=this._makeCategoryPositions(t,e),a=[],s=[],u=0;u0?t[o][0]:"",a=t[o].length>1?t[o][1]:"";n=r+"~"+a}i.push(n)}return i}function l(t,e){for(var i=[],o=0;o",x["default"].forEach(t,function(t,n){var r=0!==i||0===n?' class="number"':"",a="<"+o+r+">"+t+"";e+=a}),e+=""}),e+=""}function f(t){var e=A["default"].oneLineTrim(g,d(t));return e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.lineDelimiter,o=void 0===i?"\n":i,n=e.itemDelimiter,r=void 0===n?",":n,a=t.length-1,s="";return x["default"].forEachArray(t,function(t,e){var i=t.length-1;x["default"].forEachArray(t,function(t,e){var o=x["default"].isNumber(t)?t:'"'+t+'"';s+=o,e\n \n \n \n \n \n \n ',"\n \n "],['\n \n \n \n \n \n \n ',"\n \n "]),y=i(54),_=o(y),v=i(9),T=o(v),b=i(8),A=o(b),E=i(7),x=o(E),D={xls:"data:application/vnd.ms-excel;base64,",csv:"data:text/csv;charset=utf-8,%EF%BB%BF"},L={xls:f,csv:m},S=[].concat(r(T["default"].DATA_EXTENSIONS)),C={downloadData:function(t,e,i,o){var n=a(i),r=D[e].replace(/(data:|;base64,|,%EF%BB%BF)/g,""),s=L[e](n,o);this._isNeedDataEncodeing()&&("csv"!==e&&(s=window.btoa(unescape(encodeURIComponent(s)))),s=D[e]+s),_["default"].execDownload(t,e,s,r)},_isNeedDataEncodeing:function(){var t=x["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob;return!(e||!t)},getExtensions:function(){return S}};Object.assign(C,{_makeCsvBodyWithRawData:m,_makeXlsBodyWithRawData:f,_get2DArrayFromRawData:a,_get2DArrayFromBulletRawData:h,_get2DArrayFromHeatmapRawData:c,_makeTCellsFromBulletRanges:u,_makeTCellsFromBulletMarkers:l,_makeTHeadForBullet:s}),e["default"]=C},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(){var t=p["default"].isExisty(document.createElement("a").download),e=window.Blob&&window.navigator.msSaveOrOpenBlob,i=void 0;return e?i="msSaveOrOpenBlob":t&&(i="downloadAttribute"),i}function r(t){for(var e=t.substr(0,t.indexOf(";base64,")).substr(t.indexOf(":")+1),i=1024,o=atob(t.substr(t.indexOf(",")+1)),n=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.legendModel=new l["default"]({theme:this.theme,labels:this.dataProcessor.getLegendLabels(),legendData:this.dataProcessor.getLegendData(),seriesTypes:this.seriesTypes,chartType:this.chartType})},t.prototype._setDataForRendering=function(t){t&&(this.layout=t.layout,this.paper=t.paper)},t.prototype._render=function(t){this._setDataForRendering(t),this.legendSet=this._renderLegendArea(t.paper)},t.prototype.render=function(t){this._render(t),this._listenEvents()},t.prototype.rerender=function(t){this.legendSet.remove(),this._render(t)},t.prototype.resize=function(t){this.rerender(t)},t.prototype._getLegendRenderingData=function(t,e,i){var o=this,n=this.options.maxWidth,r=(d["default"].isBarTypeChart(this.chartType)||d["default"].isBoxplotChart(this.chartType))&&this.dataProcessor.options.series.colorByPoint;return t.map(function(t,a){var s=o.options.showCheckbox===!1?null:{checked:o.legendModel.isCheckedIndex(a)},u=t.label;return n&&(u=m["default"].getEllipsisText(u,n,o.theme.label)),{checkbox:s,iconType:t.chartType||"rect",colorByPoint:r,index:a,theme:t.theme,label:u,labelHeight:e,labelWidth:i[a],isUnselected:o.legendModel.isUnselectedIndex(a)}})},t.prototype._renderLegendArea=function(t){var e=this.legendModel.getData(),i=this.graphRenderer,o=d["default"].isHorizontalLegend(this.options.align),n=this.layout.position,r=i.makeLabelWidths(e,this.theme.label,this.options.maxWidth),a=e[0]?e[0].theme:{},s=i.getRenderedLabelHeight("DEFAULT_TEXT",a)-1,u=r.length,l=Math.max(_,s),h=(v+l)*(o?1:u),p=n.top,c=n.left;return d["default"].isLegendAlignLeft(this.options.align)||(c+=T),i.render({paper:t,legendData:this._getLegendRenderingData(e,s,r),isHorizontal:o,position:{left:c,top:p},dimension:{height:h,width:this.layout.dimension.width},labelTheme:this.theme.label,labelWidths:r,eventBus:this.eventBus})},t.prototype._fireChangeCheckedLegendsEvent=function(){this.eventBus.fire("changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireChangeCheckedLegendsPublicEvent=function(){this.eventBus.fire(b+"changeCheckedLegends",this.legendModel.getCheckedIndexes())},t.prototype._fireSelectLegendEvent=function(t){var e=this.legendModel.getSelectedIndex(),i=y["default"].isNull(e)?e:t.seriesIndex;this.eventBus.fire("selectLegend",t.chartType,i)},t.prototype._fireSelectLegendPublicEvent=function(t){var e=t.label,i=t.index,o=t.chartType;this.eventBus.fire(b+"selectLegend",{legend:e,chartType:o,index:i})},t.prototype._selectLegend=function(t){var e=this.legendModel.getDatum(t);this.legendModel.toggleSelectedIndex(t),y["default"].isNull(this.legendModel.getSelectedIndex())||this.legendModel.isCheckedSelectedIndex()||(this.legendModel.checkSelectedIndex(),this._fireChangeCheckedLegendsEvent()),this.dataProcessor.selectLegendIndex=this.legendModel.getSelectedIndex(),this.graphRenderer.selectLegend(this.dataProcessor.selectLegendIndex,this.legendSet),this._fireSelectLegendEvent(e),this._fireSelectLegendPublicEvent(e)},t.prototype._getCheckedIndexes=function(){var t=[];return this.legendModel.checkedWholeIndexes.forEach(function(e,i){e&&t.push(i)}),t},t.prototype.getCheckedIndexes=function(){return this.legendModel.getCheckedIndexes()},t.prototype._checkLegend=function(){var t=this.legendModel.getSelectedDatum();this.legendModel.isCheckedSelectedIndex()||this.legendModel.updateSelectedIndex(null),this._fireChangeCheckedLegendsEvent(),this._fireChangeCheckedLegendsPublicEvent(),t&&this._fireSelectLegendEvent(t)},t.prototype._checkboxClick=function(t){this.legendModel.toggleCheckedIndex(t);var e=this._getCheckedIndexes();e.length>0?(this.legendModel.updateCheckedLegendsWith(e),this._checkLegend()):this.legendModel.toggleCheckedIndex(t)},t.prototype._labelClick=function(t){this._selectLegend(t)},t.prototype._listenEvents=function(){this.eventBus.on("checkboxClicked",this._checkboxClick,this),this.eventBus.on("labelClicked",this._labelClick,this)},t}();y["default"].CustomEvents.mixin(A),r.componentType="legend",r.Legend=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e5;o=r?o.substr(0,4):String(n);var a=o+" % "||"";return e.ratioLabel=i+a,e.label=t.tooltipLabel||(t.label?t.label:""),e}function r(t){var e=t.chartOptions.chartType,i=t.seriesTypes,o=t.chartOptions.xAxis,r=[],a=void 0,u=Object.values(t.chartTheme.legend).filter(function(t){return m["default"].isArray(t.colors)});return u.forEach(function(t){r=r.concat(t.colors)}),a="map"===e?p["default"]:t.options.grouped?l["default"]:s["default"],("pie"===e||d["default"].isPieDonutComboChart(e,i))&&(t.labelFormatter=n),t.chartType=e,t.chartTypes=i,t.xAxisType=o.type,t.dateFormat=o.dateFormat,t.colors=r,a(t)}e.__esModule=!0,e["default"]=r;var a=i(62),s=o(a),u=i(67),l=o(u),h=i(69),p=o(h),c=i(16),d=o(c),f=i(7),m=o(f);r.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new b(t)}e.__esModule=!0,e["default"]=s;var u=i(63),l=o(u),h=i(64),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),g=i(65),y=o(g),_=i(7),v=o(_),T="#aaa",b=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e){var i=this._getTooltipTemplate(e);return i(v["default"].extend({categoryVisible:t?"show":"hide",category:t},e))},e.prototype._getTooltipTemplate=function(t){var e=y["default"].tplDefault;return m["default"].isBoxplotChart(this.chartType)?e=this._getBoxplotTooltipTemplate(t):m["default"].isPieChart(this.chartType)||m["default"].isPieDonutComboChart(this.chartType,this.chartTypes)?e=y["default"].tplPieChart:this.dataProcessor.coordinateType?e=y["default"].tplCoordinatetypeChart:m["default"].isBulletChart(this.chartType)?e=y["default"].tplBulletChartDefault:m["default"].isHeatmapChart(this.chartType)&&(e=y["default"].tplHeatmapChart),e},e.prototype._getBoxplotTooltipTemplate=function(t){var e=y["default"].tplBoxplotChartDefault;return v["default"].isNumber(t.outlierIndex)&&(e=y["default"].tplBoxplotChartOutlier,t.label=t.outliers[t.outlierIndex].label),e},e.prototype._makeHtmlForValueTypes=function(t,e){return e.map(function(e){return t[e]?""+e+''+t[e]+"":""}).join("")},e.prototype._makeSingleTooltipHtml=function(t,e){var i=e.groupIndex,o=this._findTooltipData(t,e),n=this._findTooltipColor(t,e,o);return m["default"].isBoxplotChart(this.chartType)&&v["default"].isNumber(e.outlierIndex)&&(o.outlierIndex=e.outlierIndex),this.colorSpectrum&&(n=this.colorSpectrum.getColor(o.colorRatio||o.ratio)),o.chartType=this.chartType,o.cssText="background-color: "+n,o=Object.assign({suffix:this.suffix},o),o.valueTypes=this._makeHtmlForValueTypes(o,["x","y","r"]),this.templateFunc(o.category,o,this.getRawCategory(i))},e.prototype._findTooltipData=function(t,e){var i=this.data[t],o=e.groupIndex;return m["default"].isRadialChart(t)&&i.length===o&&(o=0),Object.assign({},v["default"].pick(i,o,e.index))},e.prototype._findTooltipColor=function(t,e,i){var o=m["default"].isBarTypeChart(this.chartType),n=m["default"].isBoxplotChart(this.chartType),r=(o||n)&&this.dataProcessor.options.series.colorByPoint,a=e.groupIndex,s=e.index;return m["default"].isBulletChart(this.chartType)?s=a:m["default"].isTreemapChart(this.chartType)&&(s=i.tooltipColorIndex),r?T:this.tooltipColors[t][s]},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=d["default"].TOOLTIP_DEFAULT_ALIGN_OPTION:this.options.align=d["default"].TOOLTIP_DEFAULT_HORIZONTAL_ALIGN_OPTION)},e.prototype._makeShowTooltipParams=function(t,e){var i=t.index,o=this.dataProcessor.getLegendItem(i);if(!o)return null;var n=o.chartType,r=o.label,a=v["default"].extend({chartType:n,legend:r,legendIndex:i,index:t.groupIndex},e);return m["default"].isBoxplotChart(n)&&v["default"].isNumber(t.outlierIndex)&&(a.outlierIndex=t.outlierIndex),a},e.prototype._makeTooltipDatum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments[2],o=i.tooltipLabel,n=this.labelFormatter,r={legend:t,label:o||(i.label?i.label:""),category:e};return n&&(r=n(i,r,"")),r.category=e,v["default"].extend(r,i.pickValueMapForTooltip())},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getLegendLabels(),i=m["default"].isTreemapChart(this.chartType),o={},n={};return v["default"].isArray(e)?o[this.chartType]=e:o=e,this.dataProcessor.eachBySeriesGroup(function(e,i,r){r=r||t.chartType;var a=m["default"].isBulletChart(r),s=e.map(function(e,n){var s=t.dataProcessor.makeTooltipCategory(i,n,t.isVertical),u=a?i:n;return e?t._makeTooltipDatum(o[r][u],s,e):null});n[r]||(n[r]=[]),n[r].push(s)},i),n},e}(l["default"]);p["default"].mixin(b),s.componentType="tooltip",s.NormalTooltip=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(7),a=o(r),s=i(4),u=o(s),l=i(38),h=o(l),p=i(9),c=o(p),d=i(10),f=o(d),m=i(16),g=o(m),y=i(8),_=o(y),v=function(){function t(e){n(this,t);var i=g["default"].isPieChart(e.chartType);this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.dataProcessor=e.dataProcessor,this.options=e.options,this.colors=e.colors,this.theme=e.theme,this.originalTheme=h["default"].deepCopy(e.theme),this.isVertical=e.isVertical,this.eventBus=e.eventBus,this.labelTheme=e.labelTheme,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.labelFormatter=e.labelFormatter,this.className="tui-chart-tooltip-area",this.tooltipContainer=null,this.suffix=this.options.suffix?" "+this.options.suffix:"",this.templateFunc=this.options.template||a["default"].bind(this._makeTooltipHtml,this),this.animationTime=i?c["default"].TOOLTIP_PIE_ANIMATION_TIME:c["default"].TOOLTIP_ANIMATION_TIME,this.data=[],this.layout=null,this.dimensionMap=null,this.positionMap=null,this.drawingType=c["default"].COMPONENT_TYPE_DOM,this._setDefaultTooltipPositionOption(),this._saveOriginalPositionOptions(),this._attachToEventBus()}return t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;this.theme=t,this.originalTheme=h["default"].deepCopy(t)},t.prototype._attachToEventBus=function(){this.eventBus.on({showTooltip:this.onShowTooltip,hideTooltip:this.onHideTooltip},this),this.onShowTooltipContainer&&this.eventBus.on({showTooltipContainer:this.onShowTooltipContainer,hideTooltipContainer:this.onHideTooltipContainer},this)},t.prototype._makeTooltipHtml=function(){},t.prototype._setDefaultTooltipPositionOption=function(){},t.prototype._saveOriginalPositionOptions=function(){this.orgPositionOptions={align:this.options.align,offset:this.options.offset}},t.prototype.makeLineLegendIcon=function(t){for(var e=t.length,i=0;i-1?n-=r+a:e.indexOf("center")>-1&&r?n-=r/2:n+=a,n},_makeTopPositionOfNotBarChart:function(t,e,i,o){var n=t,r=i||0;return e.indexOf("bottom")>-1?n+=r+o:e.indexOf("middle")>-1&&r?n+=r/2:n-=r+s["default"].TOOLTIP_GAP,n},_makeTooltipPositionForNotBarChart:function(t){var e=t.bound,i=t.positionOption,o=t.dimension,n=t.alignOption,r=void 0===n?"":n,a=o.width-(e.width||0),u=e.width?0:s["default"].TOOLTIP_GAP,l=o.height,h=e.left-this.layout.position.left+i.left,p=e.top-this.layout.position.top+i.top-s["default"].TOOLTIP_GAP;return{left:this._makeLeftPositionOfNotBarChart(h,r,a,u),top:this._makeTopPositionOfNotBarChart(p,r,l,u)}},_makeTooltipPositionToMousePosition:function(t){return t.bound||(t.bound=t.bound||{},r["default"].extend(t.bound,t.mousePosition)),this._makeTooltipPositionForNotBarChart(t)},_makeLeftPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("left")>-1?o-=i:e.indexOf("center")>-1?o-=i/2:o+=s["default"].TOOLTIP_GAP,o},_makeTopPositionForBarChart:function(t,e,i){var o=t;return e.indexOf("top")>-1?o-=i:e.indexOf("middle")>-1&&(o-=i/2),o},_makeTooltipPositionForBarChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=t.alignOption,a=void 0===r?"":r,s=n.height-(i.height||0),u=n.width,l=i.left+i.width+o.left-e.left,h=i.top+o.top-e.top;return{left:this._makeLeftPositionForBarChart(l,a,u),top:this._makeTopPositionForBarChart(h,a,s)}},_makeTooltipPositionForTreemapChart:function(t){var e=this.layout.position,i=t.bound,o=t.positionOption,n=t.dimension,r=d["default"].getRenderedLabelHeight(s["default"].MAX_HEIGHT_WORD,this.labelTheme);return{left:i.left+(i.width-n.width)/2+o.left-e.left,top:i.top+i.height/2-r+o.top-e.top}},_adjustPosition:function(t,e){var i=this.dimensionMap.chart,o=this.layout.position;return e.left=Math.max(e.left,-o.left),e.left=Math.min(e.left,i.width-o.left-t.width),e.top=Math.max(e.top,-o.top),e.top=Math.min(e.top,i.height-o.top-t.height),e},_makeTooltipPosition:function(t){var e={};if(t.mousePosition)e=this._makeTooltipPositionToMousePosition(t);else{var i=void 0,o=void 0,n=void 0;l["default"].isBarChart(t.chartType)?(e=this._makeTooltipPositionForBarChart(t),i="width",o="left",n=1):l["default"].isTreemapChart(t.chartType)?e=this._makeTooltipPositionForTreemapChart(t):(e=this._makeTooltipPositionForNotBarChart(t),i="height",o="top",n=-1),t.allowNegativeTooltip&&(e=this._moveToSymmetry(e,{bound:t.bound,indexes:t.indexes,dimension:t.dimension,chartType:t.chartType,sizeType:i,positionType:o,addPadding:n})),e=this._adjustPosition(t.dimension,e)}return e},_moveToSymmetry:function(t,e){var i=e.bound,o=e.sizeType,n=e.positionType,r=e.indexes,a=e.seriesType||e.chartType,s=this.dataProcessor.getValue(r.groupIndex,r.index,a),u=l["default"].isBarChart(this.chartType)?-1:1; +if(s<0){var h=e.dimension[o],p=i[o],c=t[n]+(p+h)*u;t[n]=c}return t},_isChangedIndexes:function(t,e){return!!t&&(t.groupIndex!==e.groupIndex||t.index!==e.index)},_showTooltip:function(t,e,i){var o=this.tooltipContainer.parentNode.getBoundingClientRect(),n=e.indexes,a=this._getIndexesCustomAttribute(t),u=this.options.offset||{},l={},h=t&&t.getAttribute("data-chart-type");!e.bound&&e.mousePosition&&(e.bound={left:e.mousePosition.left-o.left+s["default"].CHART_PADDING,top:e.mousePosition.top-o.top+s["default"].CHART_PADDING}),(this._isChangedIndexes(a,n)||h!==e.chartType)&&this.eventBus.fire("hoverOffSeries",a,h),t.innerHTML=this._makeSingleTooltipHtml(e.seriesType||e.chartType,n),"line"===e.chartType&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),t.setAttribute("data-chart-type",e.chartType),this._setIndexesCustomAttribute(t,n),this._setShowedCustomAttribute(t,!0),this._fireBeforeShowTooltipPublicEvent(n,e.silent),p["default"].addClass(t,"show"),l.left=u.x||0,l.top=u.y||0;var c=this._makeTooltipPosition(r["default"].extend({dimension:this.getTooltipDimension(t),positionOption:l,alignOption:this.options.align||""},e));this._moveToPosition(t,c,i),this.eventBus.fire("hoverSeries",n,e.chartType),this._fireAfterShowTooltipPublicEvent(n,{element:t,position:c},e.silent),delete e.silent},_fireBeforeShowTooltipPublicEvent:function(t,e){if(!e){var i=this._makeShowTooltipParams(t);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeShowTooltip",i)}},_fireAfterShowTooltipPublicEvent:function(t,e,i){if(!i){var o=this._makeShowTooltipParams(t,e);this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"afterShowTooltip",o)}},_executeHidingTooltip:function(t){p["default"].removeClass(t,"show"),t.removeAttribute("data-groupIndex"),t.removeAttribute("data-index"),t.style.cssText=""},_hideTooltip:function(t,e,i){var o=this,n=this._getIndexesCustomAttribute(t),r=t.getAttribute("data-chart-type"),a=!(!i||!i.silent);l["default"].isChartToDetectMouseEventOnSeries(r)?(this.eventBus.fire("hoverOffSeries",n,r),this._fireBeforeHideTooltipPublicEvent(n,a),this._executeHidingTooltip(t)):r&&(this._setShowedCustomAttribute(t,!1),this.eventBus.fire("hoverOffSeries",n,r),this._isChangedIndexes(this.prevIndexes,n)&&delete this.prevIndexes,setTimeout(function(){o._isShowedTooltip(t)||(o._fireBeforeHideTooltipPublicEvent(n,a),o._executeHidingTooltip(t))},s["default"].HIDE_DELAY))},_fireBeforeHideTooltipPublicEvent:function(t,e){var i=void 0;e||this.eventBus.fire(s["default"].PUBLIC_EVENT_PREFIX+"beforeHideTooltip",i)},onShowTooltipContainer:function(){this.tooltipContainer.style.zIndex=s["default"].TOOLTIP_ZINDEX},onHideTooltipContainer:function(){this.tooltipContainer.style.zIndex=0},mixin:function(t){r["default"].extend(t.prototype,this)}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(66),r=o(n),a={HTML_DEFAULT_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}{{ suffix }}
',HTML_PIE_TEMPLATE:'
{{ category }}
{{ legend }}{{ ratioLabel }} ( {{ label }} {{ suffix }})
',HTML_COORDINATE_TYPE_CHART_TEMPLATE:'
{{ category }}
{{ legend }}{{ label }}
{{ valueTypes }}
',HTML_GROUP:'
{{ category }}
{{ items }}
',HTML_GROUP_TYPE:'{{ type }}',HTML_GROUP_ITEM:'
{{ legend }}{{ value }} {{ suffix }}',GROUP_CSS_TEXT:"background-color:{{ color }}",HTML_MAP_CHART_DEFAULT_TEMPLATE:'
{{ name }}{{ value }}{{ suffix }}
',HTML_HEATMAP_TEMPLATE:'
{{ category }}
{{ label }}{{ suffix }}
',HTML_BOXPLOT_TEMPLATE:'
{{ category }}
{{ legend }}
Maximum: {{ maxLabel }} {{ suffix }}
Upper Quartile: {{ uqLabel }} {{ suffix }}
Median: {{ medianLabel }} {{ suffix }}
Lower Quartile: {{ lqLabel }} {{ suffix }}
Minimum: {{ minLabel }} {{ suffix }}
',HTML_BOXPLOT_OUTLIER:'
{{ category }}
{{ legend }}
Outlier: {{ label }} {{ suffix }}
',HTML_BULLET_TEMPLATE:'
{{ category }}{{ label }} {{ suffix }}
'};e["default"]={tplDefault:r["default"].template(a.HTML_DEFAULT_TEMPLATE),tplPieChart:r["default"].template(a.HTML_PIE_TEMPLATE),tplCoordinatetypeChart:r["default"].template(a.HTML_COORDINATE_TYPE_CHART_TEMPLATE),tplGroup:r["default"].template(a.HTML_GROUP),tplGroupType:r["default"].template(a.HTML_GROUP_TYPE),tplGroupItem:r["default"].template(a.HTML_GROUP_ITEM),tplGroupCssText:r["default"].template(a.GROUP_CSS_TEXT),tplMapChartDefault:r["default"].template(a.HTML_MAP_CHART_DEFAULT_TEMPLATE),tplHeatmapChart:r["default"].template(a.HTML_HEATMAP_TEMPLATE),tplBoxplotChartDefault:r["default"].template(a.HTML_BOXPLOT_TEMPLATE),tplBoxplotChartOutlier:r["default"].template(a.HTML_BOXPLOT_OUTLIER),tplBulletChartDefault:r["default"].template(a.HTML_BULLET_TEMPLATE)}},function(t,e){"use strict";e.__esModule=!0;var i=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e["default"]={template:function(t){return function(e){var o=t;return Object.entries(e).forEach(function(t){var e=i(t,2),n=e[0],r=e[1],a=new RegExp("{{\\s*"+n+"\\s*}}","g");o=o.replace(a,String(r).replace("$","$"))}),o}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new P(t)}e.__esModule=!0,e["default"]=s;var u=i(63),l=o(u),h=i(68),p=o(h),c=i(9),d=o(c),f=i(10),m=o(f),g=i(8),y=o(g),_=i(36),v=o(_),T=i(65),b=o(T),A=i(7),E=o(A),x=i(16),D=o(x),L=d["default"].TOOLTIP_DEFAULT_GROUP_ALIGN_OPTION,S=d["default"].TOOLTIP_DEFAULT_GROUP_HORIZONTAL_ALIGN_OPTION,C=d["default"].SERIES_EXPAND_SIZE,M=d["default"].PUBLIC_EVENT_PREFIX,P=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevIndex=null,o.isBullet=D["default"].isBulletChart(i.chartType),o}return a(e,t),e.prototype._makeTooltipHtml=function(t,e,i,o){var n=b["default"].tplGroupItem,r=b["default"].tplGroupCssText,a=D["default"].isBarTypeChart(this.chartType),s=D["default"].isBoxplotChart(this.chartType),u=(a||s)&&this.dataProcessor.options.series.colorByPoint,l=this._makeColors(this.theme,o),h=void 0,p=e.map(function(t,e){var i=t.type,o="data"!==i&&h!==i,a="";return h=i,t.value?(o&&(a=b["default"].tplGroupType({type:i})),a+=n(E["default"].extend({cssText:r({color:u?"#aaa":l[e]})},t))):null}).join("");return b["default"].tplGroup({category:t,items:p})},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.isVertical?this.options.align=L:this.options.align=S)},e.prototype.render=function(t){var e=l["default"].prototype.render.call(this,t),i=this.dimensionMap.chart,o=this.layout;return t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends)),this.positionModel=new p["default"](i,o,this.isVertical,this.options),e},e.prototype.rerender=function(t){l["default"].prototype.rerender.call(this,t),this.prevIndex=null,t.checkedLegends&&(this.theme=this._updateLegendTheme(t.checkedLegends))},e.prototype.zoom=function(){this.prevIndex=null,l["default"].prototype.zoom.call(this)},e.prototype._updateLegendTheme=function(t){var e=this,i=[],o=Object.keys(this.originalTheme);return o.forEach(function(o){var n=e.originalTheme[o].colors;n.forEach(function(e,n){var r=t[o]||t;r[n]&&i.push(e)})}),{colors:i}},e.prototype.makeTooltipData=function(){var t=this,e=this.dataProcessor.getCategoryCount(this.isVertical);return this.dataProcessor.getSeriesGroups().map(function(i,o){var n=i.map(function(t){return{type:t.type||"data",label:t.label}});return{category:t.dataProcessor.makeTooltipCategory(o,e-o,t.isVertical),values:n}})},e.prototype._makeColors=function(t,e){var i=0,o=this.dataProcessor.getLegendData(),n=void 0,r=void 0;if(this.isBullet)return this.dataProcessor.getGraphColors()[e];if(t.colors)return t.colors;var a=v["default"].series.colors.slice(0,o.length);return E["default"].pluck(o,"chartType").map(function(e){r!==e&&(n=t[e]?t[e].colors:a,i=0),r=e;var o=n[i];return i+=1,o})},e.prototype._makeItemRenderingData=function(t,e){var i=this,o=this.dataProcessor,n=this.suffix;return t.map(function(t,r){var a={value:t.label,type:t.type,suffix:n,legend:""},s=void 0;return i.isBullet?s=o.getLegendItem(e):(s=o.getLegendItem(r),a.legend=s.label),a.chartType=s.chartType,a})},e.prototype._makeGroupTooltipHtml=function(t){var e=this.data[t],i="";if(e){var o=this._makeItemRenderingData(e.values,t);i=this.templateFunc(e.category,o,this.getRawCategory(t),t)}return i},e.prototype._getTooltipSectorElement=function(){if(!this.groupTooltipSector){var t=this.groupTooltipSector=m["default"].create("DIV","tui-chart-group-tooltip-sector");m["default"].append(this.tooltipContainer,t)}return this.groupTooltipSector},e.prototype._makeVerticalTooltipSectorBound=function(t,e,i){var o=void 0;return o=i?1:e.end-e.start,{dimension:{width:o,height:t},position:{left:e.start,top:C}}},e.prototype._makeHorizontalTooltipSectorBound=function(t,e){return{dimension:{width:t,height:e.end-e.start},position:{left:C,top:e.start}}},e.prototype._makeTooltipSectorBound=function(t,e,i,o){return i?this._makeVerticalTooltipSectorBound(t,e,o):this._makeHorizontalTooltipSectorBound(t,e)},e.prototype._showTooltipSector=function(t,e,i,o,n){var r=this._getTooltipSectorElement(),a=e.start===e.end,s=this._makeTooltipSectorBound(t,e,i,a);a?this.eventBus.fire("showGroupTooltipLine",s):(y["default"].renderDimension(r,s.dimension),y["default"].renderPosition(r,s.position),m["default"].addClass(r,"show")),n&&(o-=1),this.eventBus.fire("showGroupAnimation",o)},e.prototype._hideTooltipSector=function(t){var e=this._getTooltipSectorElement();m["default"].hasClass(e,"show")?m["default"].removeClass(e,"show"):this.eventBus.fire("hideGroupTooltipLine"),this.eventBus.fire("hideGroupAnimation",t),this.eventBus.fire("hideGroupTooltipLine")},e.prototype._showTooltip=function(t,e,i){E["default"].isNull(this.prevIndex)||this.eventBus.fire("hideGroupAnimation",this.prevIndex),t.innerHTML=this._makeGroupTooltipHtml(e.index),this._fireBeforeShowTooltipPublicEvent(e.index,e.range,e.silent),document.getElementsByClassName&&this.makeLineLegendIcon(t.querySelectorAll(".tui-chart-legend-rect.line")),m["default"].addClass(t,"show"),this._showTooltipSector(e.size,e.range,e.isVertical,e.index,e.isMoving);var o=this.getTooltipDimension(t),n=this.positionModel.calculatePosition(o,e.range);this._moveToPosition(t,n,i),this._fireAfterShowTooltipPublicEvent(e.index,e.range,{element:t,position:n},e.silent),this.prevIndex=e.index},e.prototype._fireBeforeShowTooltipPublicEvent=function(t,e,i){i||this.eventBus.fire(M+"beforeShowTooltip",{chartType:this.chartType,index:t,range:e})},e.prototype._fireAfterShowTooltipPublicEvent=function(t,e,i,o){o||this.eventBus.fire(M+"afterShowTooltip",Object.assign({chartType:this.chartType,index:t,range:e},i))},e.prototype._hideTooltip=function(t,e,i){var o=!(!i||!i.silent);this.prevIndex=null,this._fireBeforeHideTooltipPublicEvent(e,o),this._hideTooltipSector(e),m["default"].removeClass(t,"show"),t.style.cssText=""},e.prototype._fireBeforeHideTooltipPublicEvent=function(t,e){e||this.eventBus.fire(M+"beforeHideTooltip",{chartType:this.chartType,index:t})},e}(l["default"]);s.componentType="tooltip",s.GroupTooltip=P},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=function(){function t(e,i,o,r){n(this,t),this.chartDimension=e,this.areaBound=i,this.isVertical=o,this.options=r,this.positions={},this._setData(e,i,o,r)}return t.prototype._getHorizontalDirection=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=void 0;return e=t.indexOf("left")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("center")>-1?a["default"].TOOLTIP_DIRECTION_CENTER:a["default"].TOOLTIP_DIRECTION_FORWARD},t.prototype._makeVerticalData=function(t,e,i){var o=this._getHorizontalDirection(i);return{positionType:"left",sizeType:"width",direction:o,areaPosition:e.position.left,areaSize:e.dimension.width,chartSize:t.width,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._getVerticalDirection=function(t){var e=void 0;return t=t||"",e=t.indexOf("top")>-1?a["default"].TOOLTIP_DIRECTION_BACKWARD:t.indexOf("bottom")>-1?a["default"].TOOLTIP_DIRECTION_FORWARD:a["default"].TOOLTIP_DIRECTION_CENTER},t.prototype._makeHorizontalData=function(t,e,i){var o=this._getVerticalDirection(i);return{positionType:"top",sizeType:"height",direction:o,areaPosition:e.position.top,areaSize:e.dimension.height,chartSize:t.height,basePosition:a["default"].SERIES_EXPAND_SIZE}},t.prototype._setData=function(t,e,i,o){var n=this._makeVerticalData(t,e,o.align),r=this._makeHorizontalData(t,e,o.align),a=o.offset||{};i?(this.mainData=n,this.subData=r):(this.mainData=r,this.subData=n),this.positionOption={},this.positionOption.left=a.x||0,this.positionOption.top=a.y||0,this.positions={}},t.prototype._calculateMainPositionValue=function(t,e,i){var o=e.start===e.end,n=9,r=5,s=o?n:r,u=i.basePosition;return u+=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?e.end+s:i.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?e.start-t-s:o?e.start-t/2:e.start+(e.end-e.start-t)/2},t.prototype._calculateSubPositionValue=function(t,e){var i=e.areaSize/2,o=void 0;return o=e.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?i+e.basePosition:e.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?i-t+e.basePosition:i-t/2+e.basePosition},t.prototype._makePositionValueDiff=function(t,e,i){return t+i.areaPosition+e-i.chartSize},t.prototype._adjustBackwardPositionValue=function(t,e,i,o){var n=void 0;return t<-o.areaPosition&&(n=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_FORWARD,basePosition:o.basePosition}),t=this._makePositionValueDiff(n,i,o)>0?-o.areaPosition:n),t},t.prototype._adjustForwardPositionValue=function(t,e,i,o){var n=this._makePositionValueDiff(t,i,o);if(n>0){var r=this._calculateMainPositionValue(i,e,{direction:a["default"].TOOLTIP_DIRECTION_BACKWARD,basePosition:o.basePosition});r<-o.areaPosition?t-=n:t=r}return t},t.prototype._adjustMainPositionValue=function(t,e,i,o){return o.direction===a["default"].TOOLTIP_DIRECTION_BACKWARD?t=this._adjustBackwardPositionValue(t,e,i,o):o.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?t=this._adjustForwardPositionValue(t,e,i,o):(t=Math.max(t,-o.areaPosition),t=Math.min(t,o.chartSize-o.areaPosition-i)),t},t.prototype._adjustSubPositionValue=function(t,e,i){return t=i.direction===a["default"].TOOLTIP_DIRECTION_FORWARD?Math.min(t,i.chartSize-i.areaPosition-e):Math.max(t,-i.areaPosition)},t.prototype._makeCachingKey=function(t){var e=t.start,i=t.end;return e+"-"+i},t.prototype._addPositionOptionValue=function(t,e){return t+this.positionOption[e]},t.prototype._makeMainPositionValue=function(t,e,i){var o=this._calculateMainPositionValue(t[i.sizeType],e,i);return o=this._addPositionOptionValue(o,i.positionType),o=this._adjustMainPositionValue(o,e,t[i.sizeType],i)},t.prototype._makeSubPositionValue=function(t,e){var i=this._calculateSubPositionValue(t[e.sizeType],e);return i=this._addPositionOptionValue(i,e.positionType),i=this._adjustSubPositionValue(i,t[e.sizeType],e)},t.prototype.calculatePosition=function(t,e){var i=this._makeCachingKey(e),o=this.mainData,n=this.subData,r=this.positions[i];return r||(r={},r[o.positionType]=this._makeMainPositionValue(t,e,o),r[n.positionType]=this._makeSubPositionValue(t,n),this.positions[i]=r),r},t.prototype.updateOptions=function(t){this.options=t,this._setData(this.chartDimension,this.areaBound,this.isVertical,t)},t.prototype.updateBound=function(t){this.areaBound=t,this._setData(this.chartDimension,t,this.isVertical,this.options)},t}();e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new _(t)}e.__esModule=!0,e["default"]=s;var u=i(9),l=o(u),h=i(63),p=o(h),c=i(64),d=o(c),f=i(65),m=o(f),g=i(7),y=o(g),_=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.mapModel=i.mapModel,o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeTooltipHtml=function(t){return m["default"].tplMapChartDefault(t)},e.prototype._makeSingleTooltipHtml=function(t,e){var i=this.mapModel.getDatum(e.index),o=this.options.suffix?" "+this.options.suffix:"";return this.templateFunc({name:i.name||i.code,value:i.label,suffix:o,cssText:"background-color: "+this.colorSpectrum.getColor(i.ratio)})},e.prototype._makeShowTooltipParams=function(t,e){var i=this.mapModel.getDatum(t.index),o=y["default"].extend({chartType:this.chartType,code:i.code,name:i.name,value:i.label,index:t.index},e);return o},e.prototype._setDefaultTooltipPositionOption=function(){this.options.align||(this.options.align=l["default"].TOOLTIP_DEFAULT_ALIGN_OPTION)},e}(p["default"]);d["default"].mixin(_),s.componentType="tooltip"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new T(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(9),p=o(h),c=i(56),d=o(c),f=i(10),m=o(f),g=i(8),y=o(g),_=i(7),v=o(_),T=function(t){function e(i){n(this,e);var o=r(this,t.call(this));return o.chartType=i.chartType,o.eventBus=i.eventBus,o.isDown=!1,o.drawingType=p["default"].COMPONENT_TYPE_DOM,o}return a(e,t),e.prototype._renderMouseEventDetectorArea=function(t){y["default"].renderDimension(t,this.layout.dimension),y["default"].renderPosition(t,this.layout.position)},e.prototype._onClick=function(){},e.prototype._onMousedown=function(t){this.isDown=!0,this.eventBus.fire("dragStartMapSeries",{left:t.clientX,top:t.clientY})},e.prototype._dragEnd=function(){this.isDrag=!1,m["default"].removeClass(this.mouseEventDetectorContainer,"drag"),this.eventBus.fire("dragEndMapSeries")},e.prototype._onMouseup=function(t){this.isDown=!1,this.isDrag?this._dragEnd():this._onMouseEvent("click",t),this.isMove=!1},e.prototype._onMousemove=function(t){this.isDown?(this.isDrag||m["default"].addClass(this.mouseEventDetectorContainer,"drag"),this.isDrag=!0,this.eventBus.fire("dragMapSeries",{left:t.clientX,top:t.clientY})):(this.isMove=!0,this._onMouseEvent("move",t))},e.prototype._onMouseout=function(t){this.isDrag?this._dragEnd():this._onMouseEvent("move",t),this.isDown=!1},e.prototype._onMousewheel=function(t){var e=t.wheelDelta||t.detail*p["default"].FF_WHEELDELTA_ADJUSTING_VALUE;return this.eventBus.fire("wheel",e,{left:t.clientX,top:t.clientY}),t.preventDefault&&t.preventDefault(),!1},e.prototype.attachEvent=function(t){l["default"].prototype.attachEvent.call(this,t),v["default"].browser.firefox?d["default"].on(t,"DOMMouseScroll",this._onMousewheel,this):d["default"].on(t,"mousewheel",this._onMousewheel,this)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(72),a=o(r),s=i(73),u=o(s),l=i(9),h=o(l),p=i(56),c=o(p),d=i(16),f=o(d),m=i(10),g=o(m),y=i(8),_=o(y),v=i(7),T=o(v),b=function(){function t(e){if(n(this,t),e){this.chartType=e.chartType,this.chartTypes=e.chartTypes,this.isVertical=e.isVertical,this.dataProcessor=e.dataProcessor,this.allowSelect=e.allowSelect,this.eventBus=e.eventBus,this.layout=null,this.selectedData=null;var i=f["default"].isLineTypeChart(this.chartType,this.chartTypes);this.expandSize=i?h["default"].SERIES_EXPAND_SIZE:0,this.seriesItemBoundsData=[],this.seriesCount=f["default"].isComboChart(this.chartType)?2:1,this._attachToEventBus(),this.drawingType=h["default"].COMPONENT_TYPE_DOM}}return t.prototype._attachToEventBus=function(){this.eventBus.on("receiveSeriesData",this.onReceiveSeriesData,this)},t.prototype._getRenderingBound=function(){var t=_["default"].expandBound(this.layout);return t},t.prototype._renderMouseEventDetectorArea=function(t,e){this.dimension=this.layout.dimension;var i=new a["default"](this.layout,e,this.chartType,this.isVertical,this.chartTypes);this.tickBaseCoordinateModel=i;var o=this._getRenderingBound(),n=o.dimension,r=o.position;_["default"].renderDimension(t,n),_["default"].renderPosition(t,r)},t.prototype._setDataForRendering=function(t){this.layout=t.layout},t.prototype._pickTickCount=function(t){return this.isVertical?t.xAxis.eventTickCount||t.xAxis.tickCount:t.yAxis.tickCount},t.prototype.render=function(t){this.positionMap=t.positionMap;var e=t.paper,i=void 0;return g["default"].addClass(e,"tui-chart-series-custom-event-area"),e.style.backgroundColor="aliceblue",t.axisDataMap.xAxis&&(i=this._pickTickCount(t.axisDataMap)),this._setDataForRendering(t),this._renderMouseEventDetectorArea(e,i),this.attachEvent(e),this.mouseEventDetectorContainer=e,this.transparentChild=this._createTransparentChild(),g["default"].append(e,this.transparentChild),e},t.prototype._createTransparentChild=function(){var t=document.createElement("DIV"),e=t.style;return e.backgroundColor="#fff",e.height=_["default"].getStyle(this.mouseEventDetectorContainer).height,_["default"].setOpacity(t,0),t},t.prototype._calculateLayerPosition=function(t,e,i){var o=this.mouseEventDetectorContainer.getBoundingClientRect(),n=o.left,r=o.right,a=o.top,s=this.positionMap.series,u=this.expandSize,l={};if(i=!!T["default"].isUndefined(i)||i){var p=r-u,c=n+u;t=Math.min(Math.max(t,c),p)}return l.x=t-n+s.left-h["default"].CHART_PADDING,T["default"].isUndefined(e)||(l.y=e-a+s.top-h["default"].CHART_PADDING),l},t.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.boundsBaseCoordinateModel=new u["default"](i))},t.prototype.rerender=function(t){var e=void 0;t.axisDataMap.xAxis&&(e=this._pickTickCount(t.axisDataMap)),this.selectedData=null,this._setDataForRendering(t),this._renderMouseEventDetectorArea(this.mouseEventDetectorContainer,e),this.transparentChild.style.height=_["default"].getStyle(this.mouseEventDetectorContainer).height},t.prototype.resize=function(t){this.containerBound=null,this.rerender(t)},t.prototype._isChangedSelectData=function(t,e){return!t||!e||t.chartType!==e.chartType||t.indexes.groupIndex!==e.indexes.groupIndex||t.indexes.index!==e.indexes.index},t.prototype._findDataFromBoundsCoordinateModel=function(t){var e=t.x,i=t.y,o=void 0;return o=f["default"].isTreemapChart(this.chartType)?0:this.tickBaseCoordinateModel.findIndex(this.isVertical?e:i),this.boundsBaseCoordinateModel.findData(o,e,i)},t.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e);return this._findDataFromBoundsCoordinateModel(i)},t.prototype._showTooltip=function(){},t.prototype._hideTooltip=function(){},t.prototype._onMouseEvent=function(t,e){g["default"].addClass(this.mouseEventDetectorContainer,"hide"),this.eventBus.fire(t+"Series",{left:e.clientX,top:e.clientY}),g["default"].removeClass(this.mouseEventDetectorContainer,"hide")},t.prototype._unselectSelectedData=function(){this.eventBus.fire("unselectSeries",this.selectedData),this.selectedData=null},t.prototype._onClick=function(t){var e=this._findData(t.clientX,t.clientY);this._isChangedSelectData(this.selectedData,e)?e&&(this.selectedData&&this._unselectSelectedData(),this.eventBus.fire("selectSeries",e),this.allowSelect&&(this.selectedData=e)):this._unselectSelectedData()},t.prototype._onMousedown=function(){},t.prototype._onMouseup=function(){},t.prototype._onMousemove=function(){},t.prototype._onMouseout=function(){},t.prototype.attachEvent=function(t){c["default"].on(t,{click:this._onClick,mousedown:this._onMousedown,mouseup:this._onMouseup,mousemove:this._onMousemove,mouseout:this._onMouseout},this)},t.prototype.findDataByIndexes=function(){},t.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},t}();T["default"].CustomEvents.mixin(b),e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(16),a=o(r),s=i(11),u=o(s),l=i(7),h=o(l),p=function(){function t(e,i,o,r,s){n(this,t),this.isLineType=a["default"].isLineTypeChart(o,s),this.data=this._makeData(e,i,r)}return t.prototype._getRanges=function(t,e,i){var o=e,n=i/2;return h["default"].range(0,t).map(function(){var t={min:o-n,max:o+n};return o+=i,t})},t.prototype._makeLineTypeData=function(t,e,i){var o=(t+1)/(e-1),n=this._getRanges(e,i||0,o);return n[e-1].max-=1,n},t.prototype._makeNormalData=function(t,e,i){var o=e-1,n=t/o,r=i||0;return h["default"].range(0,o).map(function(){var e=u["default"].min([t+r,n+r]),i={min:r,max:e};return r=e,i})},t.prototype._makeData=function(t,e,i){var o=i?"width":"height",n=i?"left":"top";return this.isLineType?this._makeLineTypeData(t.dimension[o],e,t.position[n]):this._makeNormalData(t.dimension[o],e,t.position[n])},t.prototype.findIndex=function(t){var e=-1;return this.data.forEach(function(i,o){return!(i.min=t)||(e=o,!1)}),e},t.prototype.getLastIndex=function(){return this.data.length-1},t.prototype.makeRange=function(t,e){var i=this.data[t],o=void 0,n=void 0;return this.isLineType?(n=parseInt(i.max-(i.max-i.min)/2,10),o={start:n,end:n}):o={start:i.min-(e||0),end:i.max-(e||0)},o},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e=i,r=t.top<=o&&t.bottom>=o;return n&&r},t.prototype.findData=function(t,e,i){var o=1e4,n=null;if(t>-1&&this.data[t]){var r=this._findCandidates(this.data[t],e,i);r.forEach(function(t){var e=Math.abs(i-t.bound.top);o>e&&(o=e,n=t.sendData)})}return n},t.prototype.findDataByIndexes=function(t){var e=this.data[t.index][t.seriesIndex].sendData;return d["default"].isNumber(t.outlierIndex)?this._findOutlierDataByIndexes(t):e},t.prototype._findOutlierDataByIndexes=function(t){var e=null;return this.data[t.index].forEach(function(i){var o=i.sendData.indexes,n=o.index===t.seriesIndex&&o.outlierIndex===t.outlierIndex;return n&&(e=i.sendData),!n}),e},t}();e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=t.chartOptions,i=t.seriesTypes,o=e.chartType,n=e.series,r=n.zoomable,s=n.allowSelect,l=void 0;return l=t.chartOptions.tooltip.grouped?c["default"]:a["default"].isMapChart(o)?g["default"]:a["default"].isBarTypeChart(o)||a["default"].isBoxplotChart(o)||a["default"].isHeatmapChart(o)||a["default"].isTreemapChart(o)||a["default"].isBulletChart(o)?f["default"]:a["default"].isCoordinateTypeChart(o)||a["default"].isPieChart(o)||a["default"].isPieDonutComboChart(o,i)?h["default"]:u["default"],t.chartType=o,t.chartTypes=i,t.zoomable=r,t.allowSelect=s,l(t)}e.__esModule=!0,e["default"]=n;var r=i(16),a=o(r),s=i(75),u=o(s),l=i(78),h=o(l),p=i(79),c=o(p),d=i(80),f=o(d),m=i(70),g=o(m);n.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new y(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(76),p=o(h),c=i(77),d=o(c),f=i(7),m=o(f),g=50,y=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.prevFoundData=null,o.prevClientPosition=null,o.zoomable=i.zoomable,o.zoomable&&(m["default"].extend(o,p["default"]),o._initForZoom(i.zoomable)),o}return a(e,t),e.prototype.animateForAddingData=function(){if(this.prevClientPosition){var t=this._findData(this.prevClientPosition.x,this.prevClientPosition.y);if(t){var e=this.prevFoundData.indexes.groupIndex===t.indexes.groupIndex,i=this.prevFoundData&&e;this._showTooltip(t,i)}this.prevFoundData=t}},e.prototype.onReceiveSeriesData=function(t){var e=this.seriesCount,i=this.seriesItemBoundsData;i.length===e&&(i=[]),i.push(t),i.length===e&&(this.dataModel=new d["default"](i)),this.zoomable&&this._showTooltipAfterZoom()},e.prototype._findData=function(t,e){var i=this._calculateLayerPosition(t,e),o=this.dataProcessor.selectLegendIndex;return this.dataModel.findData(i,g,o)},e.prototype._findDataForZoomable=function(t,e){var i=this._calculateLayerPosition(t,e);return this.dataModel.findData(i)},e.prototype._getFirstData=function(t){return this.dataModel.getFirstData(t)},e.prototype._getLastData=function(t){return this.dataModel.getLastData(t)},e.prototype._showTooltip=function(t){this.eventBus.fire("showTooltip",t),this.prevFoundData=t},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevFoundData,t),this.prevFoundData=null},e.prototype._onMousemove=function(t){var e=void 0;this._setPrevClientPosition(t);var i=this._findData(t.clientX,t.clientY);this.zoomable&&(e=this._isAfterDragMouseup()),!e&&this._isChangedSelectData(this.prevFoundData,i)&&(i?this._showTooltip(i):this.prevFoundData&&this._hideTooltip(),this.prevFoundData=i)},e.prototype._onMouseout=function(){this.prevFoundData&&this._hideTooltip(),this.prevClientPosition=null,this.prevFoundData=null},e.prototype.findDataByIndexes=function(t){return this.dataModel.findDataByIndexes(t)},e.prototype._setPrevClientPosition=function(t){t?this.prevClientPosition={x:t.clientX,y:t.clientY}:this.prevClientPosition=null},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(71),r=o(n),a=i(9),s=o(a),u=i(10),l=o(u),h=i(8),p=o(h),c=i(56),d=o(c),f=i(7),m=o(f);e["default"]={_initForZoom:function(t){this.zoomable=t,this.dragStartIndexes=null,this.startClientPosition=null,this.startLayerX=null,this.dragSelectionElement=null,this.containerBound=null,this.isShowTooltipAfterZoom=!1,this.afterMouseup=!1,this.prevDistanceOfRange=null,this.reverseMove=null,this.resetZoomBtn=null},_showTooltipAfterZoom:function(){var t=this.isShowTooltipAfterZoom,e=void 0;this.isShowTooltipAfterZoom=!1,t&&this.dragStartIndexes&&(e=this.reverseMove?this._getFirstData(this.dragStartIndexes.index):this._getLastData(this.dragEndIndexes.index),e&&this._showTooltip(e))},_updateDimensionForDragSelection:function(t){p["default"].renderDimension(t,{height:this.layout.dimension.height})},_renderDragSelection:function(){var t=l["default"].create("DIV","tui-chart-drag-selection");return this._updateDimensionForDragSelection(t),t},render:function(t){var e=r["default"].prototype.render.call(this,t),i=this._renderDragSelection();return l["default"].append(e,i),this.dragSelectionElement=i,e},resize:function(t){this.containerBound=null,r["default"].prototype.resize.call(this,t),this._updateDimensionForDragSelection(this.dragSelectionElement)},_onClick:function(){},_isAfterDragMouseup:function(){var t=this.afterMouseup;return t&&(this.afterMouseup=!1),t},_bindDragEvent:function(t){t.setCapture&&t.setCapture(),d["default"].on(document,"mousemove",this._onDrag,this),d["default"].off(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this),d["default"].on(document,"mouseup",this._onMouseupAfterDrag,this)},_unbindDragEvent:function(){this.downTarget&&this.downTarget.releaseCapture&&this.downTarget.releaseCapture(),d["default"].off(document,"mousemove",this._onDrag,this),d["default"].off(document,"mouseup",this._onMouseupAfterDrag,this),d["default"].on(this.mouseEventDetectorContainer,"mouseup",this._onMouseup,this)},_onMousedown:function(t){if(this.zoomable){var e=t.target||t.srcElement;this.startClientPosition={x:t.clientX,y:t.clientY},this.startLayerX=this._calculateLayerPosition(t.clientX).x,this.downTarget=e,this._bindDragEvent(e)}},_showDragSelection:function(t){var e=this._calculateLayerPosition(t).x,i=Math.min(e,this.startLayerX)-this.layout.position.left,o=Math.abs(e-this.startLayerX),n=this.dragSelectionElement;n.style.left=i+"px",n.style.width=o+"px",l["default"].addClass(n,"show")},_hideDragSelection:function(){l["default"].removeClass(this.dragSelectionElement,"show")},_onDrag:function(t){var e=this.startClientPosition,i=t.target||t.srcElement;if(e){var o=this._findDataForZoomable(e.x,e.y);l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)||(m["default"].isNull(this.dragStartIndexes)?this.dragStartIndexes=o?o.indexes:{}:this._showDragSelection(t.clientX))}},_adjustIndexRange:function(t,e){var i=[t,e].sort(function(t,e){return t-e}),o=i[1]-i[0];return 0===o?0===i[0]?i[1]+=2:(i[0]-=1,i[1]+=1):1===o&&(0===i[0]?i[1]+=1:i[0]-=1),i},_fireZoom:function(t,e){var i=t>e,o=this._adjustIndexRange(t,e),n=o[1]-o[0];this.prevDistanceOfRange!==n&&(this.prevDistanceOfRange=n,this.reverseMove=i,this.eventBus.fire("zoom",o))},_setIsShowTooltipAfterZoomFlag:function(t,e){var i=this._calculateLayerPosition(t,e,!1).x,o=this._calculateLayerPosition(t,e).x;this.isShowTooltipAfterZoom=i===o},_onMouseupAfterDrag:function(t){var e=this._findDataForZoomable(t.clientX,t.clientY);if(this._unbindDragEvent(),m["default"].isNull(this.dragStartIndexes)){var i=t.target||t.srcElement;l["default"].hasClass(i,s["default"].CLASS_NAME_RESET_ZOOM_BTN)?(this._hideTooltip(),this.prevDistanceOfRange=null,this.eventBus.fire("resetZoom")):r["default"].prototype._onClick.call(this,t)}else this.dragStartIndexes&&e?(this.dragEndIndexes=e.indexes,this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection(),this._fireZoom(this.dragStartIndexes.groupIndex,this.dragEndIndexes.groupIndex)):(this._setIsShowTooltipAfterZoomFlag(t.clientX,t.clientY),this._hideDragSelection());this.startClientPosition=null,this.dragStartIndexes=null,this.startLayerX=null,this.afterMouseup=!0},_renderResetZoomBtn:function(){var t=l["default"].create("DIV",s["default"].CLASS_NAME_RESET_ZOOM_BTN);return t},zoom:function(t){this.prevFoundData=null,this.rerender(t),this._updateDimensionForDragSelection(this.dragSelectionElement),this.resetZoomBtn?t.isResetZoom&&(this.mouseEventDetectorContainer.removeChild(this.resetZoomBtn),this.resetZoomBtn=null):(this.resetZoomBtn=this._renderResetZoomBtn(),l["default"].append(this.mouseEventDetectorContainer,this.resetZoomBtn))}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&(a.indexes.legendIndex=e),a})})});return a=(e=[]).concat.apply(e,n(a)),this.lastGroupIndex=r,(i=[]).concat.apply(i,n(a)).filter(function(t){return!!t})},t.prototype.findData=function(t,e,i){var o={},n=1e5,r=void 0;return e=e||Number.MAX_VALUE,this.data.forEach(function(i){var a=t.x-i.bound.left,s=t.y-i.bound.top,u=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));us+o||ea+n},e.prototype._showTooltip=function(t,e){var i=t.indexes.groupIndex,o=(this.isVertical?this.layout.position.left:this.layout.position.top)-l["default"].CHART_PADDING;this.tickBaseCoordinateModel.data.length>i&&(this.eventBus.fire("showTooltip",{index:i,range:this.tickBaseCoordinateModel.makeRange(i,o),size:this.dimension[this.sizeType],isVertical:this.isVertical,isMoving:e,silent:t.silent}),this.prevIndex=i)},e.prototype._hideTooltip=function(t){this.eventBus.fire("hideTooltip",this.prevIndex,t),this.prevIndex=null},e.prototype._onMousemove=function(t){if(!this.zoomable||!this._isAfterDragMouseup()){var e=this._findGroupData(t.clientX,t.clientY),i=e.indexes.groupIndex;i===-1?this._onMouseout(t):this.prevIndex!==i&&this._showTooltip(e)}},e.prototype._onMouseout=function(t){var e=this._calculateLayerPosition(t.clientX,t.clientY,!1),i=e.x,o=e.y;this._isOuterPosition(i,o)&&!m["default"].isNull(this.prevIndex)&&this._hideTooltip()},e}(p["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return new g(t)}e.__esModule=!0,e["default"]=s;var u=i(71),l=o(u),h=i(9),p=o(h),c=i(16),d=o(c),f=i(10),m=o(f),g=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a=e&&s>=i||(this.prevFoundData&&this._hideTooltip(),this.prevFoundData=null)},e.prototype.onAfterZoom=function(t){this.historyBackBtn||(this.historyBackBtn=m["default"].create("DIV",p["default"].CLASS_NAME_RESET_ZOOM_BTN),m["default"].append(this.mouseEventDetectorContainer,this.historyBackBtn)),this.zoomHistory[this.zoomHistory.length-1]!==t&&this.zoomHistory.push(t)},e.prototype.findDataByIndexes=function(t){return this.boundsBaseCoordinateModel.findDataByIndexes(t)},e}(l["default"]);s.componentType="mouseEventDetector"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="bar",t.chartBackground=e.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(83),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),g=d["default"].OVERLAPPING_WIDTH,y=d["default"].TEXT_PADDING,_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:i,left:o,width:0,height:e},end:{top:i,left:n,width:t,height:e}}},e.prototype._calculateAdditionalLeft=function(t){var e=0;return this.options.divided&&t>0&&(e=this.dimensionMap.yAxis.width+g),e},e.prototype._makeBarChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,p=o.ratioDistance,c=o.value,d=o.startRatio,f=o.stack,m=r*p,g=this._calculateAdditionalLeft(c),y=r*d,_=a+y+g,v=f!==e.prevStack,T=s*u>l,b=T?h:s,A=void 0;if(!i||!this.options.diverging&&v){var E=i?this.dataProcessor.findStackIndex(f):n;e.top=e.baseTop+b*E,e.plusLeft=0,e.minusLeft=0}c>=0?(A=_+e.plusLeft,e.plusLeft+=m):(e.minusLeft-=m,A=_+e.minusLeft),e.prevStack=f;var x=e.top+h-s/2;return T||(x+=(h-s)/2*(u-1)),this._makeBound(m,s,x,_,A)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout,n=o.dimension,r=n.width,a=n.height,s=o.position.top,u=this._makeBaseDataForMakingBound(a,r);return e.map(function(e,o){var n=o*u.groupSize+s,r={baseTop:n,top:n,plusLeft:0,minusLeft:0,prevStack:null},a=t._makeBarChartBound.bind(t,u,r,i);return e.map(a)})},e.prototype._calculateTopPositionOfSumLabel=function(t,e){return t.top+(t.height-e+y)/2},e}(l["default"]);p["default"].mixin(_),s.componentType="series",s.BarChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(7),a=o(r),s=i(9),u=o(s),l=i(10),h=o(l),p=i(16),c=o(p),d=i(8),f=o(d),m=i(34),g=o(m),y=i(6),_=o(y),v=600,T=a["default"].browser,b=T.msie&&7===T.version,A=u["default"].COMPONENT_TYPE_RAPHAEL,E=u["default"].PUBLIC_EVENT_PREFIX,x=u["default"].CLASS_NAME_SERIES_LABEL,D=function(){function t(e){n(this,t);var i=e.libType;this.className="tui-chart-series-area",this.chartType=e.chartType,this.seriesType=e.seriesType||e.chartType,this.componentType=e.componentType,this.dataProcessor=e.dataProcessor,this.eventBus=e.eventBus,this.chartBackground=e.chartBackground,this.options=e.options||{},this.orgTheme=this.theme=e.theme,this.graphRenderer=g["default"].get(i,e.chartType),this.seriesContainer=null,this.seriesLabelContainer=null,this.seriesData=[],this.selectedLegendIndex=null,this.labelShowEffector=null,this.paper=null,this.limit=null,this.aligned=null,this.layout=null,this.dimensionMap=null,this.positionMap=null,this.axisDataMap=null,this.beforeAxisDataMap=null,this.drawingType=A,this.supportSeriesLable=!0,this._attachToEventBus()}return t.prototype.decorateLabel=function(t){var e=this.options,i=e.labelPrefix,o=void 0===i?"":i,n=e.labelSuffix,r=void 0===n?"":n,s=f["default"].addPrefixSuffix,u=f["default"].addPrefixSuffixItem,l=(a["default"].isArray(t)?s:u).bind(f["default"]);return l(t,o,r)},t.prototype.presetForChangeData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.orgTheme;this.orgTheme=t,this.theme=t,"treemap"===this.chartType&&(this.boundMap=null)},t.prototype._attachToEventBus=function(){var t=function(){this.isInitRenderCompleted=!0,this.eventBus.off("load",t)}.bind(this);this.eventBus.on(E+"load",t),this.eventBus.on({selectLegend:this.onSelectLegend,selectSeries:this.onSelectSeries,unselectSeries:this.onUnselectSeries,hoverSeries:this.onHoverSeries,hoverOffSeries:this.onHoverOffSeries,showGroupAnimation:this.onShowGroupAnimation,hideGroupAnimation:this.onHideGroupAnimation},this),this.onShowTooltip&&this.eventBus.on("showTooltip",this.onShowTooltip,this),this.onShowGroupTooltipLine&&this.eventBus.on({showGroupTooltipLine:this.onShowGroupTooltipLine,hideGroupTooltipLine:this.onHideGroupTooltipLine},this),this.onClickSeries&&this.eventBus.on({clickSeries:this.onClickSeries,moveSeries:this.onMoveSeries},this)},t.prototype._getSeriesDataModel=function(){return this.dataProcessor.getSeriesDataModel(this.seriesType)},t.prototype._makeSeriesData=function(){},t.prototype.getSeriesData=function(){return this.seriesData},t.prototype._renderSeriesLabel=function(){},t.prototype._renderSeriesLabelArea=function(t){return this._renderSeriesLabel(t)},t.prototype._sendBoundsToMouseEventDetector=function(t){this.eventBus.fire("receiveSeriesData",{chartType:this.chartType,data:t})},t.prototype._renderSeriesArea=function(t,e){var i=this.dimensionMap.extendedSeries,o=this.seriesData=this._makeSeriesData();this._sendBoundsToMouseEventDetector(o),(this.hasDataForRendering(o)||"map"===this.chartType)&&(e&&(this.seriesSet=e(i,o,t)),c["default"].isShowLabel(this.options)&&this.supportSeriesLable&&(this.labelSet=this._renderSeriesLabelArea(t)))},t.prototype._makeParamsForGraphRendering=function(t,e){return Object.assign({dimension:t,position:this.layout.position,chartType:this.seriesType,theme:this.theme,options:this.options},e)},t.prototype._renderGraph=function(t,e,i){var o=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,o)},t.prototype._setDataForRendering=function(t){this.paper=t.paper,this.limit=t.limitMap[this.chartType],t.axisDataMap&&t.axisDataMap.xAxis&&(this.aligned=t.axisDataMap.xAxis.aligned),this.layout=t.layout,this.dimensionMap=t.dimensionMap,this.positionMap=t.positionMap,this.axisDataMap=t.axisDataMap},t.prototype.render=function(t){if(this.paper=t.paper,this._setDataForRendering(t),this._clearSeriesContainer(),this.beforeAxisDataMap=this.axisDataMap,t.checkedLegends){var e=t.checkedLegends[this.seriesType];this.options.colorByPoint||(this.theme=this._getCheckedSeriesTheme(this.orgTheme,e))}this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.paper.pushDownBackgroundToBottom&&this.paper.pushDownBackgroundToBottom()},t.prototype._getCheckedSeriesTheme=function(t,e){if(!e.length)return t;var i=JSON.parse(JSON.stringify(t));return i.colors=i.colors.filter(function(t,i){return e[i]}),i},t.prototype._clearSeriesContainer=function(){this.seriesSet&&this.seriesSet.remove&&(this.seriesSet.forEach(function(t){t.remove()},this),this.seriesSet.remove()),this.labelSet&&this.labelSet.remove&&(this.labelSet.forEach(function(t){t.remove()},this),this.labelSet.remove()),this.seriesData=[]},t.prototype.rerender=function(t){var e=void 0;"map"===this.seriesType||this.dataProcessor.getGroupCount(this.seriesType)?(t.checkedLegends&&(e=t.checkedLegends[this.seriesType],this.theme=this._getCheckedSeriesTheme(this.orgTheme,e)),this._setDataForRendering(t),this._clearSeriesContainer(),this._renderSeriesArea(t.paper,a["default"].bind(this._renderGraph,this)),this.labelShowEffector&&clearInterval(this.labelShowEffector.timerId),!e&&this.isInitRenderCompleted||this.animateComponent(!0),a["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)):this._clearSeriesContainer()},t.prototype._isLabelVisible=function(){return!(!this.options.showLabel&&!this.options.showLegend)},t.prototype._resizeGraph=function(t,e){return this.graphRenderer.resize(a["default"].extend({dimension:this.dimensionMap.chart},e)),this.seriesSet},t.prototype.resize=function(t){this._clearSeriesContainer(),this._setDataForRendering(t),this._renderSeriesArea(t.paper,a["default"].bind(this._resizeGraph,this)),this.rerender(t)},t.prototype._renderPosition=function(t,e){var i=f["default"].isOldBrowser()?1:0;f["default"].renderPosition(t,{top:e.top-i,left:e.left-2*i})},t.prototype._getLimitDistanceFromZeroPoint=function(t,e){var i=e.min,o=e.max,n=o-i,r=0,a=0;return i<=0&&o>=0?(r=(n+i)/n*t,a=(n-o)/n*t):i>0&&(r=t),{toMax:r,toMin:a}},t.prototype._findLabelElement=function(t){return h["default"].hasClass(t,x)?t:h["default"].findParentByClass(t,x)},t.prototype.onHoverSeries=function(t,e){e===this.chartType&&this.graphRenderer.showAnimation&&this.graphRenderer.showAnimation(t)},t.prototype.onHoverOffSeries=function(t,e){e===this.chartType&&this.graphRenderer.hideAnimation&&t&&this.graphRenderer.hideAnimation(t)},t.prototype.onShowGroupAnimation=function(t){this.graphRenderer.showGroupAnimation&&this.graphRenderer.showGroupAnimation(t)},t.prototype.onHideGroupAnimation=function(t){this.graphRenderer.hideGroupAnimation&&this.graphRenderer.hideGroupAnimation(t)},t.prototype.animateComponent=function(t){this.graphRenderer.animate&&this.seriesSet?this.graphRenderer.animate(a["default"].bind(this.animateSeriesLabelArea,this,t),this.seriesSet):this.animateSeriesLabelArea(t)},t.prototype._fireLoadEvent=function(t){t||this.eventBus.fire(E+"load")},t.prototype.animateSeriesLabelArea=function(t){return this._isLabelVisible()?void(b?(this._fireLoadEvent(t),this.labelSet.attr({opacity:1})):this.labelSet&&this.labelSet.length&&_["default"].animateOpacity(this.labelSet,0,1,v)):void this._fireLoadEvent(t)},t.prototype._makeExportationSeriesData=function(t){var e=t.indexes,i=a["default"].isExisty(e.legendIndex)?e.legendIndex:e.index,o=this.dataProcessor.getLegendItem(i),n=a["default"].isExisty(e.groupIndex)?e.groupIndex:0,r=this._getSeriesDataModel().getSeriesItem(n,e.index),s=void 0;return a["default"].isExisty(r)&&(s={chartType:o.chartType,legend:o.label,legendIndex:i},s.index=r.index),s},t.prototype._executeGraphRenderer=function(t,e){var i=!1;this.eventBus.fire("hideTooltipContainer"),this.seriesLabelContainer&&h["default"].hasClass(this.seriesLabelContainer,"show")&&(h["default"].removeClass(this.seriesLabelContainer,"show"),i=!0);var o=this.graphRenderer[e](t);return i&&h["default"].addClass(this.seriesLabelContainer,"show"),this.eventBus.fire("showTooltipContainer"),o},t.prototype.onSelectSeries=function(t,e){if(t.chartType===this.chartType){var i=E+"selectSeries";this.eventBus.fire(i,this._makeExportationSeriesData(t)),e=!!a["default"].isEmpty(e)||e,this.options.allowSelect&&this.graphRenderer.selectSeries&&e&&this.graphRenderer.selectSeries(t.indexes)}},t.prototype.onUnselectSeries=function(t){if(t.chartType===this.chartType){var e=E+"unselectSeries";this.eventBus.fire(e,this._makeExportationSeriesData(t)),this.options.allowSelect&&this.graphRenderer.unselectSeries&&this.graphRenderer.unselectSeries(t.indexes)}},t.prototype.onSelectLegend=function(t,e){this.seriesType===t||a["default"].isNull(e)||(e=-1),this.selectedLegendIndex=e,this._getSeriesDataModel().getGroupCount()&&this.graphRenderer.selectLegend(e)},t.prototype.showLabel=function(){this.options.showLabel=!0,!this.seriesLabelContainer&&this.supportSeriesLable&&this._renderSeriesLabelArea(this.paper)},t.prototype.hideLabel=function(){this.options.showLabel=!1,this.seriesLabelContainer&&(h["default"].removeClass(this.seriesLabelContainer,"show"),h["default"].removeClass(this.seriesLabelContainer,"opacity"))},t.prototype.hasDataForRendering=function(t){return!(!t||!t.isAvailable())},t}();e["default"]=D},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(84),u=o(s),l=i(16),h=o(l),p=i(25),c=o(p),d=i(8),f=o(d),m=i(6),g=o(m),y=i(7),_=o(y),v=a["default"].CHART_PADDING,T=a["default"].LEGEND_LABEL_LEFT_PADDING,b=.85,A=function(){function t(){n(this,t)}return t.prototype._makeSeriesData=function(){var t=this._makeBounds(this.layout.dimension);return this.groupBounds=t,{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isAvailable:function(){return t&&t.length>0}}},t.prototype._getBarWidthOptionSize=function(t,e){var i=0; +return e&&(e/2>=t?e=2*t:e<0&&(e=0),i=e),i},t.prototype._calculateAdditionalPosition=function(t,e,i){var o=0;return e&&e0){var l=void 0;l=i?this.options.diverging?1:this.dataProcessor.getStackCount(this.seriesType):o.getFirstSeriesGroup().getSeriesItemCount();var p=n/(l+1),c=this.options.barWidth||this.options.pointWidth,d=p*b,f=a+s;d=this._getBarWidthOptionSize(p,c)||d,h["default"].isColumnChart(this.chartType)&&(f=e-f),h["default"].isBoxplotChart(this.chartType)&&a&&(f-=2*a),u={baseBarSize:e,groupSize:n,barSize:d,pointInterval:p,basePosition:f,itemCount:l,firstAdditionalPosition:p}}return u},t.prototype._renderNormalSeriesLabel=function(t){var e=this,i=this.graphRenderer,o=this._getSeriesDataModel(),n=this.seriesData.groupBounds,r=this.theme.label,a=this.selectedLegendIndex,s=o.map(function(t){return t.map(function(t){var i=t.start,o=t.startLabel,n=t.endLabel,r={end:e.decorateLabel(n)};return _["default"].isExisty(i)&&(r.start=e.decorateLabel(o)),r})}),l=void 0;return l=h["default"].isBarChart(this.chartType)?u["default"].boundsToLabelPositionsForBarChart(o,n,r):u["default"].boundsToLabelPositionsForColumnChart(o,n,r),i.renderSeriesLabel(t,l,s,r,a)},t.prototype._makeSumValues=function(t){return f["default"].formatValue({value:c["default"].sum(t),formatFunctions:this.dataProcessor.getFormatFunctions(),chartType:this.chartType,areaType:"series"})},t.prototype._makeStackedLabelPosition=function(t){var e=t.top,i=t.left,o=t.width,n=t.height;return{left:i+o/2,top:e+n/2}},t.prototype._makeStackedLabelPositions=function(t){var e=this,i=t.seriesGroup,o=i.map(function(i,o){var n=t.bounds[o],r=void 0;return n&&i&&(r=e._makeStackedLabelPosition(n.end)),{end:r}});return o},t.prototype.getGroupLabels=function(t,e,i){var o=this,n=h["default"].isNormalStack(this.options.stackType);return t.map(function(t){var r=t.map(function(t){return{end:o.decorateLabel(t.endLabel)}});if(n){e.push(c["default"].sumPlusValues(t.pluck("value")));var a=c["default"].sumMinusValues(t.pluck("value"));a<0&&i.push(a)}return r})},t.prototype.getGroupPositions=function(t,e){var i=this;return t.map(function(t,o){return i._makeStackedLabelPositions({seriesGroup:t,bounds:e[o]})})},t.prototype._renderStackedSeriesLabel=function(t){var e=this,i=[],o=[],n=this.theme.label,r=this.seriesData.groupBounds,a=this._getSeriesDataModel(),s=this.getGroupPositions(a,r),u=this.getGroupLabels(a,i,o),l=!0,p=h["default"].isNormalStack(this.options.stackType),c=h["default"].isBarChart(this.chartType),d=c?"width":"height",m=c?"left":"top",y=c?1:-1;return p&&(u.forEach(function(t,n){var r=i[n],a=o[n];a<0&&e.options.diverging&&(a*=-1),t.push({end:e.decorateLabel(f["default"].formatToComma(r))}),o.length&&t.push({end:e.decorateLabel(f["default"].formatToComma(a))})}),s.forEach(function(t,a){var s=r[a],u=s[s.length-1].end,l=s[Math.max(parseInt(s.length/2,10),1)-1].end,h=e._makeStackedLabelPosition(u),p=e._makeStackedLabelPosition(l),c=i[a],f=o[a],_=g["default"].getRenderedTextSize(c,n.fontSize,n.fontFamily),v=g["default"].getRenderedTextSize(f,n.fontSize,n.fontFamily),b=(u[d]+_[d])/2,A=(l[d]+v[d])/2;h[m]+=(b+T)*y,p[m]-=(A+T)*y,t.push({end:h}),o.length&&t.push({end:p})})),this.graphRenderer.renderSeriesLabel(t,s,u,n,l)},t.prototype._renderSeriesLabel=function(t){return this.options.stackType?this._renderStackedSeriesLabel(t):this._renderNormalSeriesLabel(t)},t}();A.mixin=function(t){Object.assign(t.prototype,A.prototype)},e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a),u=r["default"].MAX_HEIGHT_WORD,l=r["default"].SERIES_LABEL_PADDING;e["default"]={_calculateLeftPositionForCenterAlign:function(t){return t.left+t.width/2},_calculateTopPositionForMiddleAlign:function(t){return t.top+t.height/2},_makePositionForBoundType:function(t){return{left:this._calculateLeftPositionForCenterAlign(t),top:this._calculateTopPositionForMiddleAlign(t)}},_makePositionMap:function(t,e,i,o,n){var r=t.value,a=r>=0,s={end:n(e,i,t.endLabel||t.label,o,a)};return t.isRange&&(a=r<0,s.start=n(e,i,t.startLabel,o,a)),s},boundsToLabelPositions:function(t,e,i,o,n){var r=this,a=s["default"].getRenderedLabelHeight(u,i);return o=o||this._makePositionForBoundType.bind(this),n=!!n,t.map(function(t,n){var s=e[n];return t.map(function(t,e){var n=s[e].end;return r._makePositionMap(t,n,a,i,o)})},n)},_makePositionForBarChart:function(t,e,i,o,n){var r=s["default"].getRenderedLabelWidth(i,o),a=t.left;return n?a+=t.width+l:a-=r+l,{left:a,top:this._calculateTopPositionForMiddleAlign(t)}},boundsToLabelPositionsForBarChart:function(t,e,i){var o=this._makePositionForBarChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},_makePositionForColumnChart:function(t,e,i,o,n){var r=t.top;return n?r-=e+l:r+=t.height+l,{left:this._calculateLeftPositionForCenterAlign(t),top:r}},boundsToLabelPositionsForColumnChart:function(t,e,i){var o=this._makePositionForColumnChart.bind(this);return this.boundsToLabelPositions(t,e,i,o)},boundsToLabelPostionsForTreemap:function(t,e){var i=this,o=t.map(function(t){var o=e[t.id],n=void 0;return o&&(n=i._makePositionForBoundType(o)),n});return o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="column",t.chartBackground=t.chartTheme.chart.background,new _(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(83),p=o(h),c=i(9),d=o(c),f=i(16),m=o(f),g=i(8),y=o(g),_=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._makeBound=function(t,e,i,o,n){return{start:{top:o,left:i,width:t,height:0},end:{top:n,left:i,width:t,height:e}}},e.prototype._makeColumnChartBound=function(t,e,i,o,n){var r=t.baseBarSize,a=t.basePosition,s=t.barSize,u=t.itemCount,l=t.groupSize,h=t.pointInterval,p=Math.abs(r*o.ratioDistance),c=r*o.startRatio,f=a+c+d["default"].SERIES_EXPAND_SIZE,m=o.stack!==e.prevStack,g=s*u>l,y=g?h:s,_=void 0,v=void 0;if(!i||!this.options.diverging&&m){var T=i?this.dataProcessor.findStackIndex(o.stack):n;e.left=e.baseLeft+y*T,e.plusTop=0,e.minusTop=0}return o.value>=0?(e.plusTop-=p,_=f+e.plusTop):(_=f+e.minusTop,e.minusTop+=p),e.prevStack=o.stack,v=g?e.left+h-s/2:e.left+h-s/2+(h-s)/2*(u-1),this._makeBound(s,p,v,f,_)},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeColumnChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+d["default"].TEXT_PADDING)/2},e}(l["default"]);p["default"].mixin(_),s.componentType="series",s.ColumnChartSeries=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="line",t.chartBackground=t.chartTheme.chart.background,new c(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(87),p=o(h),c=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);p["default"].mixin(c),s.componentType="series"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(11),a=o(r),s=i(9),u=o(s),l=i(16),h=o(l),p=i(25),c=o(p),d=i(8),f=o(d),m=i(7),g=o(m),y=u["default"].SERIES_EXPAND_SIZE,_=u["default"].SERIES_LABEL_PADDING,v=u["default"].MAX_HEIGHT_WORD,T=u["default"].ADDING_DATA_ANIMATION_DURATION,b=function(){function t(){n(this,t)}return t.prototype._makePositionsForDefaultType=function(t){var e=this.layout.dimension,i=e.height,o=e.width,n=this._getSeriesDataModel(),r=t||o||0,a=n.getGroupCount(),s=this.layout.position.top,u=this.layout.position.left,l=void 0;return this.aligned?l=r/(a>1?a-1:a):(l=r/a,u+=l/2),n.map(function(t){return t.map(function(t,e){var o=void 0;return g["default"].isNull(t.end)||(o={left:u+l*e,top:s+i-t.ratio*i},g["default"].isExisty(t.startRatio)&&(o.startTop=s+i-t.startRatio*i)),o})},!0)},t.prototype._makePositionForCoordinateType=function(t){var e=this.layout.dimension,i=this._getSeriesDataModel(),o=e.height,n=this.axisDataMap.xAxis,r=this.layout.position.top,a=this.layout.position.left,s=t||e.width||0,l=0;return n.sizeRatio&&(l=c["default"].multiply(s,n.positionRatio),s=c["default"].multiply(s,n.sizeRatio)),i.map(function(t){return t.map(function(t){var e=void 0;return g["default"].isNull(t.end)||(e={left:a+t.ratioMap.x*s+l,top:r+o-t.ratioMap.y*o},g["default"].isExisty(t.ratioMap.start)&&(e.startTop=o-t.ratioMap.start*o+u["default"].SERIES_EXPAND_SIZE)),e})},!0)},t.prototype._makeBasicPositions=function(t){return this.dataProcessor.isCoordinateType()?this._makePositionForCoordinateType(t):this._makePositionsForDefaultType(t)},t.prototype._calculateLabelPositionTop=function(t,e,i,o){var n=t.top,r=void 0;return r=h["default"].isValidStackOption(this.options.stackType)?(t.startTop+n-i)/2+1:e>=0&&!o||e<0&&o?n-i-_:n+_},t.prototype._makeLabelPosition=function(t,e,i,o,n){return{left:t.left,top:this._calculateLabelPositionTop(t,o,e/2,n)}},t.prototype._getLabelPositions=function(t,e){var i=this,o=a["default"].pivot(this.seriesData.groupPositions),n=f["default"].getRenderedLabelHeight(v,e);return t.map(function(t,e){return t.map(function(t,r){var a=o[e][r],s=i._makeLabelPosition(a,n,t.endLabel,t.end),u={end:s};return t.isRange&&(a.top=a.startTop,u.start=i._makeLabelPosition(a,n,t.startLabel,t.start)),u})})},t.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){return t.map(function(t){var i=t.endLabel,o=t.isRange,n=t.startLabel,r={end:e.decorateLabel(i)};return o&&(r.start=e.decorateLabel(n)),r})})},t.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._getLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},t.prototype.onShowGroupTooltipLine=function(t){this.graphRenderer.showGroupTooltipLine&&this.graphRenderer.showGroupTooltipLine(t,this.layout)},t.prototype.onHideGroupTooltipLine=function(){this.seriesData&&this.seriesData.isAvailable()&&this.graphRenderer.hideGroupTooltipLine&&this.graphRenderer.hideGroupTooltipLine()},t.prototype.zoom=function(t){this._cancelMovingAnimation(),this._clearSeriesContainer(t.paper),this._setDataForRendering(t),this._renderSeriesArea(t.paper,g["default"].bind(this._renderGraph,this)),this.animateComponent(!0),g["default"].isNull(this.selectedLegendIndex)||this.graphRenderer.selectLegend(this.selectedLegendIndex)},t.prototype._isChangedLimit=function(t,e){return t.min!==e.min||t.max!==e.max},t.prototype._isChangedAxisLimit=function(){var t=this.beforeAxisDataMap,e=this.axisDataMap,i=!0;return t&&(i=this._isChangedLimit(t.yAxis.limit,e.yAxis.limit),e.xAxis.limit&&(i=i||this._isChangedLimit(t.xAxis.limit,e.xAxis.limit))),this.beforeAxisDataMap=e,i},t.prototype._animate=function(t){var e=this,i=T,o=this._isChangedAxisLimit();o&&this.seriesLabelContainer&&(this.seriesLabelContainer.innerHTML=""),t&&(this.movingAnimation=f["default"].startAnimation(i,t,function(){e.movingAnimation=null}))},t.prototype._makeZeroTopForAddingData=function(){var t=this.layout.dimension.height,e=this.axisDataMap.yAxis.limit;return this._getLimitDistanceFromZeroPoint(t,e).toMax+y},t.prototype.animateForAddingData=function(t){var e=t.tickSize,i=t.limitMap,o=t.axisDataMap,n=this.dimensionMap.extendedSeries,r=this.options.shifting,a=this.layout.dimension.width;this.limit=i[this.chartType],this.axisDataMap=o;var s=this._makeSeriesData(),u=this._makeParamsForGraphRendering(n,s);r&&(a+=e);var l=this._makePositions(a),h=this._makeZeroTopForAddingData();this.graphRenderer.animateForAddingData(u,e,l,r,h)},t.prototype._cancelMovingAnimation=function(){this.movingAnimation&&(cancelAnimationFrame(this.movingAnimation.id),this.movingAnimation=null)},t}();b.mixin=function(t){g["default"].extend(t.prototype,b.prototype)},e["default"]=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType=t.chartOptions.chartType,t.chartBackground=t.chartTheme.background,new b(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(9),p=o(h),c=i(25),d=o(c),f=i(50),m=o(f),g=i(7),y=o(g),_=p["default"].COMPONENT_TYPE_RAPHAEL,v=p["default"].RADIAL_PLOT_PADDING,T=p["default"].RADIAL_MARGIN_FOR_CATEGORY,b=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},e.prototype.rerender=function(t){return l["default"].prototype.rerender.call(this,t)},e}(l["default"]);s.componentType="series",s.RadialChartSeries=b},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartTheme,i=t.chartOptions.libType;return t.libType=i,t.chartType="area",t.chartBackground=e.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(87),p=o(h),c=i(16),d=o(c),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a=0&&!n&&(n=e),n},e.prototype._makeStackedPositions=function(t){var e=this.layout,i=e.dimension.height,o=e.position.top,n=this._makePositionTopOfZeroPoint(),r=[];return t.map(function(t){return t.map(function(t,e){var a=r[e]||n,s=t?t.top:0,u=i-s+o,l=t?a-u:a;return t&&(t.startTop=a,t.top=l),r[e]=l,t})})},e.prototype._makePositions=function(t){var e=this._makeBasicPositions(t);return d["default"].isValidStackOption(this.options.stackType)&&(e=this._makeStackedPositions(e)),e},e.prototype._makeSeriesData=function(){var t=this.layout,e=t.dimension.height,i=t.position.top,o=this._getLimitDistanceFromZeroPoint(e,this.limit).toMax+i,n=this._makePositions();return{chartBackground:this.chartBackground,groupPositions:n,hasRangeData:this._getSeriesDataModel().hasRangeData(),zeroTop:o,isAvailable:function(){return n&&n.length>0}}},e.prototype.rerender=function(t){return this._cancelMovingAnimation(),l["default"].prototype.rerender.call(this,t)},e}(l["default"]);p["default"].mixin(f),s.componentType="series",s.AreaChartSeries=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.chartOptions.libType,i=t.chartTheme;return t.libType=e,t.chartType="bubble",t.chartBackground=i.chart.background,new g(t)}e.__esModule=!0,e["default"]=s;var u=i(9),l=o(u),h=i(82),p=o(h),c=i(91),d=o(c),f=i(7),m=o(f),g=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0}}},t.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",a["default"].extend({indexes:{groupIndex:i,index:o},mousePosition:n},t))},t.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},t.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e);return this.graphRenderer.render(i,r,n)},t.prototype.onClickSeries=function(t){var e=this._executeGraphRenderer(t,"findIndexes"),i=this.prevClickedIndexes,o=this.options.allowSelect,n=this.chartType;if(e&&i&&(this.onUnselectSeries({chartType:n,indexes:i}),this.prevClickedIndexes=null),e){var r=!i||e.index!==i.index||e.groupIndex!==i.groupIndex;o&&r&&(this.onSelectSeries({chartType:n,indexes:e},r),this.prevClickedIndexes=e)}},t.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},t}();s.mixin=function(t){Object.assign(t.prototype,s.prototype)},e["default"]=s},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="scatter",t.chartBackground=t.chartTheme.chart.background,new f(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(91),p=o(h),c=i(9),d=o(c),f=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a0&&(t%=T),t},e.prototype._transformRadiusRange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["0%","100%"];return t.map(function(t){var e=.01*parseInt(t,10);return Math.max(Math.min(e,1),0)})},e.prototype._setDefaultOptions=function(){var t=this.options;t.startAngle=this._makeValidAngle(t.startAngle,0),t.endAngle=this._makeValidAngle(t.endAngle,t.startAngle),t.radiusRange=this._transformRadiusRange(t.radiusRange),1===t.radiusRange.length&&t.radiusRange.unshift(0)},e.prototype._calculateAngleForRendering=function(){var t=this.options,e=t.startAngle,i=t.endAngle,o=void 0;return o=ei?T-(e-i):T},e.prototype._makeSectorData=function(t){var e=this,i=t.cx,o=t.r,n=t.cy,r=u(this.options.radiusRange,1),a=r[0],s=this._calculateAngleForRendering(),l=this._getSeriesDataModel().getFirstSeriesGroup(),h=this.options.startAngle,p=.5*o;if(a&&(p+=p*a),!l)return null;var c=l.map(function(t){var r=t?t.ratio:0,a=s*r,u=h+a,l=h+a/2,c={start:{startAngle:h,endAngle:h},end:{startAngle:h,endAngle:u}},d={cx:i,cy:n,angle:l};return h=u,{ratio:r,angles:c,centerPosition:e._getArcPosition(g["default"].extend({r:p},d)),outerPosition:e._getArcPosition(g["default"].extend({r:o+e.legendLongestWidth/2+b},d))}});return c},e.prototype._makeValueLabel=function(){var t=this._getSeriesDataModel().getFirstSeriesGroup();return t.map(function(t){return t.label})},e.prototype._makeSeriesData=function(){this.valueLabels=this._makeValueLabel(),this.legendLabels=this._getLegendLabels(),this.legendLongestWidth=this._getMaxLengthLegendWidth();var t=this._makeCircleBound(),e=this._makeSectorData(t);return{chartBackground:this.chartBackground,circleBound:t,sectorData:e,isAvailable:function(){return e&&e.length>0}}},e.prototype._getQuadrantFromAngle=function(t,e){var i=parseInt(t/A,10)+1;return e&&t%A===0&&(i+=1===i?3:-1),i},e.prototype._getRangeForQuadrant=function(){return this.quadrantRange||(this.quadrantRange={start:this._getQuadrantFromAngle(this.options.startAngle),end:this._getQuadrantFromAngle(this.options.endAngle,!0)}),this.quadrantRange},e.prototype._isInQuadrantRange=function(t,e){var i=this._getRangeForQuadrant();return i.start===t&&i.end===e},e.prototype._calculateBaseSize=function(){var t=this.layout.dimension,e=t.width,i=t.height;if(!this.isCombo){var o=this._getRangeForQuadrant();this._isInQuadrantRange(2,3)||this._isInQuadrantRange(4,1)?i*=2:this._isInQuadrantRange(1,2)||this._isInQuadrantRange(3,4)?e*=2:o.start===o.end&&(e*=2,i*=2)}return Math.min(e,i)},e.prototype._calculateRadius=function(){var t=this.isCombo&&this.seriesType===M,e=this._calculateBaseSize(),i=0,o=this.isShowOuterLabel;return t&&(o=this.dataProcessor.isComboDonutShowOuterLabel()),i=o?E:x,e*i*this.options.radiusRange[1]/2},e.prototype._calculateCenterXY=function(t){var e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.top,s=r.left,u=t/2,l=o/2+s,h=n/2+a;return this.isCombo||(this._isInQuadrantRange(1,1)?(l-=u,h+=u):this._isInQuadrantRange(1,2)?l-=u:this._isInQuadrantRange(2,2)?(l-=u,h-=u):this._isInQuadrantRange(2,3)?h-=u:this._isInQuadrantRange(3,3)?(l+=u,h-=u):this._isInQuadrantRange(3,4)?l+=u:this._isInQuadrantRange(4,1)?h+=u:this._isInQuadrantRange(4,4)&&(l+=u,h+=u)),{cx:l,cy:h}},e.prototype._makeCircleBound=function(){var t=this._calculateRadius(),e=this._calculateCenterXY(t);return Object.assign({r:t},e)},e.prototype._getArcPosition=function(t){return{left:t.cx+t.r*Math.sin(t.angle*D),top:t.cy-t.r*Math.cos(t.angle*D)}},e.prototype._renderGraph=function(t,e,i){var o=this.showTooltip.bind(this,{allowNegativeTooltip:!!this.allowNegativeTooltip,seriesType:this.seriesType,chartType:this.chartType}),n={showTooltip:o,hideTooltip:this.hideTooltip.bind(this)},r=this._makeParamsForGraphRendering(t,e),a=this.seriesType,s=this.dataProcessor.seriesDataModelMap,u=[],l=0;return(this.dataProcessor.seriesTypes||[]).forEach(function(t){var e=!0;return t!==a?u.push(t):e=!1,e}),u.forEach(function(t){l+=s[t].baseGroups.length}),r.additionalIndex=l,this.graphRenderer.render(i,r,n)},e.prototype.showTooltip=function(t,e,i,o,n){this.eventBus.fire("showTooltip",g["default"].extend({indexes:{groupIndex:i,index:o},mousePosition:n},t))},e.prototype.hideTooltip=function(){this.eventBus.fire("hideTooltip")},e.prototype._getMaxLengthLegendWidth=function(){var t=this,e=this.legendLabels.map(function(e){return _["default"].getRenderedTextSize(e,t.labelTheme.fontSize,t.labelTheme.fontFamily).width});return e.sort(function(t,e){return t-e}),e[e.length-1]},e.prototype._makeSeriesDataBySelection=function(t){return{indexes:{index:t,groupIndex:t}}},e.prototype._pickPositionsFromSectorData=function(t,e){var i=this,o=this.options,n=o.showLegend,r=o.showLabel,a=_["default"].getRenderedTextSize(this.legendLabels[0],this.labelTheme.fontSize,this.labelTheme.fontFamily).height,s=_["default"].getRenderedTextSize(this.valueLabels[0],L,this.labelTheme.fontFamily).height;return(this.seriesData.sectorData||[]).map(function(o){var u=o.ratio?Object.assign({},o[t]):null,l=u&&n&&r&&!i.isLabelAlignOuter;return l&&("value"===e?u.top-=s/2:"legend"===e&&(u.top+=a/2)),u})},e.prototype._addEndPosition=function(t,e){e.forEach(function(e){if(e){var i=g["default"].extend({},e.middle);i.left-1&&n!==i;o&&!r||(this.onSelectSeries({chartType:this.chartType,indexes:{index:n,legendIndex:e.legendIndex}},r),o&&n>-1&&(this.prevClickedIndex=n))}},e.prototype.onMoveSeries=function(t){this._executeGraphRenderer(t,"moveMouseOnSeries")},e}(h["default"]);s.componentType="series",s.PieChartSeries=P},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.libType=t.chartOptions.libType,t.chartType="heatmap",new c(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(84),p=o(h),c=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.colorSpectrum=i.colorSpectrum,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds(),e=this._getSeriesDataModel();return{colorSpectrum:this.colorSpectrum,groupBounds:t,seriesDataModel:e,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBound=function(t,e,i,o){var n=this.layout,r=n.dimension.height,a=n.position,s=a.top,u=a.left;return{end:{left:u+t*i,top:s+r-e*(o+1),width:t,height:e}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this.layout.dimension,o=i.width,n=i.height,r=o/this.dataProcessor.getCategoryCount(!1),a=n/this.dataProcessor.getCategoryCount(!0);return e.map(function(e,i){return e.map(function(e,o){return t._makeBound(r,a,i,o)})})},e.prototype.onShowTooltip=function(t){var e=t.indexes,i=this._getSeriesDataModel(),o=i.getSeriesItem(e.groupIndex,e.index),n=o.ratio,r=o.label;this.eventBus.fire("showWedge",n,r)},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this.seriesData.groupBounds,n=this.theme.label,r=this.selectedLegendIndex,a=p["default"].boundsToLabelPositions(i,o,n),s=i.map(function(t){return e.decorateLabel(t.valuesMap.value)});return this.graphRenderer.renderSeriesLabel(t,a,s,n,r)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i0}}},e.prototype._makeBoundMap=function(t,e,i){var o=this,n=this._getSeriesDataModel(),r=v["default"].extend({},this.layout.dimension,this.layout.position),a=n.findSeriesItemsByParent(t);return i=i||r,e=v["default"].extend(e||{},p["default"].squarify(i,a)),a.forEach(function(t){e=o._makeBoundMap(t.id,e,e[t.id])}),e},e.prototype._makeBounds=function(t){var e=this.startDepth,i=this._getSeriesDataModel(),o=void 0;return o=this.options.zoomable?function(t){return t.depth===e}:function(t){return!t.hasChild},i.map(function(e){return e.map(function(e){var i=t[e.id],n=null;return i&&o(e)&&(n={end:i}),n},!0)},!0)},e.prototype._getBoundMap=function(){return this.boundMap||(this.boundMap=this._makeBoundMap(this.rootId)),this.boundMap},e.prototype._shouldDimmed=function(t,e,i){var o=!1;if(e&&i.id!==e.id&&i.group===e.group){var n=t.findParentByDepth(i.id,e.depth+1);n&&n.parent===e.id&&(o=!0)}return o},e.prototype._renderSeriesLabel=function(t){var e=this,i=this._getSeriesDataModel(),o=this._getBoundMap(),n=this.theme.label,r=this.options.labelTemplate,a=void 0;a=this.options.useLeafLabel?i.findLeafSeriesItems(this.selectedGroup):i.findSeriesItemsByDepth(this.startDepth,this.selectedGroup);var s=a.map(function(t){var i=r?r(t.pickLabelTemplateData()):t.label;return e.decorateLabel(i)}),u=d["default"].boundsToLabelPostionsForTreemap(a,o,n);return this.graphRenderer.renderSeriesLabelForTreemap(t,u,s,n)},e.prototype.resize=function(){this.boundMap=null;for(var t=arguments.length,e=Array(t),i=0;i-1&&this.eventBus.fire("showWedge",i,e.colorValue)}},e.prototype.onHoverOffSeries=function(t){y["default"].isShowLabel(this.options)&&t&&this.graphRenderer.hideAnimation(t,this.options.useColorValue)},e}(l["default"]);s.componentType="series",s.TreemapChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(25),r=o(n),a=i(11),s=o(a),u=i(7),l=o(u);e["default"]={boundMap:{},_makeBaseBound:function(t){return l["default"].extend({},t)},_calculateScale:function(t,e,i){return e*i/r["default"].sum(t)},_makeBaseData:function(t,e,i){var o=this._calculateScale(l["default"].pluck(t,"value"),e,i),n=t.map(function(t){return{id:t.id,weight:t.value*o}}).sort(function(t,e){return e.weight-t.weight});return n},_worst:function(t,e,i,o){var n=t*t,r=o*o;return Math.max(r*i/n,n/(r*e))},_changedStackDirection:function(t,e,i,o){var n=s["default"].min(e),r=s["default"].max(e),a=this._worst(t,n,r,i),u=this._worst(t+o,Math.min(n,o),Math.max(r,o),i);return u>=a},_isVerticalStack:function(t){return t.height=0?(e.plusTop-=l,f=p+e.plusTop):(f=p+e.minusTop,e.minusTop+=l);var m=e.left+r-a/2,g=(o.outliers||[]).map(function(t){return{top:s*(1-t.ratio)+c,left:m+a/2}});return{start:{top:p,left:m,width:a,height:0},end:{top:f,left:m,width:a,height:l},min:{top:s*(1-o.minRatio)+c,left:m,width:a,height:0},max:{top:s*(1-o.maxRatio)+c,left:m,width:a,height:0},median:{top:s*(1-o.medianRatio)+c,left:m,width:a,height:0},outliers:g}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=m["default"].isValidStackOption(this.options.stackType),o=this.layout.dimension,n=o.width,r=o.height,a=this._makeBaseDataForMakingBound(n,r);return e.map(function(e,o){var n=o*a.groupSize+t.layout.position.left,r={baseLeft:n,left:n,plusTop:0,minusTop:0,prevStack:null},s=t._makeBoxplotChartBound.bind(t,a,r,i);return e.map(s)})},e.prototype._calculateLeftPositionOfSumLabel=function(t,e){var i=t.left,o=t.width,n=y["default"].getRenderedLabelWidth(e,this.theme.label);return i+(o-n+v)/2},e}(l["default"]);p["default"].mixin(T),s.componentType="series",s.BoxplotChartSeries=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.chartType="bullet",t.libType=t.chartOptions.libType,t.chartBackground=t.chartTheme.chart.background,new A(t)}e.__esModule=!0,e["default"]=s;var u=i(82),l=o(u),h=i(8),p=o(h),c=i(9),d=o(c),f=d["default"].BULLET_TYPE_ACTUAL,m=d["default"].BULLET_ACTUAL_HEIGHT_RATIO,g=d["default"].BULLET_TYPE_RANGE,y=d["default"].BULLET_RANGES_HEIGHT_RATIO,_=d["default"].BULLET_TYPE_MARKER,v=d["default"].BULLET_MARKERS_HEIGHT_RATIO,T=d["default"].BULLET_MARKER_DETECT_PADDING,b=d["default"].MAX_HEIGHT_WORD,A=function(t){function e(i){n(this,e);var o=r(this,t.call(this,i));return o.isVertical=i.isVertical,o}return a(e,t),e.prototype._makeSeriesData=function(){var t=this._makeBounds();return{groupBounds:t,seriesDataModel:this._getSeriesDataModel(),isVertical:this.isVertical,isAvailable:function(){return t&&t.length>0}}},e.prototype._makeBounds=function(){var t=this,e=this._getSeriesDataModel(),i=this._makeBaseDataForMakingBound(),o={renderedItemCount:0,top:i.categoryAxisTop,left:i.categoryAxisLeft};return e.map(function(e){var n=t._makeBulletChartBound.bind(t,i,o),r=e.map(n);return t._updateIterationData(o,i.itemWidth),r})},e.prototype._makeBaseDataForMakingBound=function(){var t=this._getSeriesDataModel().getGroupCount(),e=this.layout,i=e.dimension,o=i.width,n=i.height,r=e.position,a=r.left,s=r.top,u=void 0,l=void 0;this.isVertical?(s+=n,u=o,l=n):(u=n,l=o);var h=u/t;return{categoryAxisTop:s,categoryAxisLeft:a,categoryAxisWidth:u,valueAxisWidth:l,itemWidth:h}},e.prototype._makeBulletChartBound=function(t,e,i){var o=i.type,n=void 0;return o===f?n=this._makeBarBound(i,m,t,e):o===g?n=this._makeBarBound(i,y,t,e):o===_&&(n=this._makeLineBound(i,v,t,e)),n.type=o,n},e.prototype._makeBarBound=function(t,e,i,o){var n=t.ratioDistance,r=t.endRatio,a=i.itemWidth*e,s=i.valueAxisWidth*n,u=i.valueAxisWidth*r,l=void 0;return l=this.isVertical?this._makeVerticalBarBound(o,i,a,s,u):this._makeHorizontalBarBound(o,i,a,s,u)},e.prototype._makeVerticalBarBound=function(t,e,i,o,n){return{top:t.top-n,left:t.left+(e.itemWidth-i)/2,width:i,height:o}},e.prototype._makeHorizontalBarBound=function(t,e,i,o,n){return{top:t.top+(e.itemWidth-i)/2,left:t.left+n-o,width:o,height:i}},e.prototype._makeLineBound=function(t,e,i,o){var n=i.itemWidth,r=i.valueAxisWidth,a=n*e,s=r*t.endRatio,u=T,l=T,h=void 0,p=void 0;return this.isVertical?(h=o.top-s,p=o.left+(n-a)/2,l=a):(h=o.top+(n-a)/2,p=o.left+s,u=a),{top:h,left:p,width:l,height:u,length:a}},e.prototype._updateIterationData=function(t,e){t.renderedItemCount+=1,this.isVertical?t.left+=e:t.top+=e},e.prototype._renderSeriesArea=function(t,e){l["default"].prototype._renderSeriesArea.call(this,t,e),this.dataProcessor.setGraphColors(this.graphRenderer.getGraphColors())},e.prototype._renderSeriesLabel=function(t){var e=this.theme.label,i=this._getSeriesDataModel(),o=this._getLabelTexts(i),n=this._calculateLabelPositions(i,e);return this.graphRenderer.renderSeriesLabel(t,n,o,e)},e.prototype._getLabelTexts=function(t){var e=this;return t.map(function(t){var i=[];return t.each(function(t){t.type!==g&&i.push(e.decorateLabel(t.endLabel))}),i})},e.prototype._calculateLabelPositions=function(t,e){var i=this,o=this.seriesData.groupBounds,n=p["default"].getRenderedLabelHeight(b,e);return o.map(function(t){var e=[];return t.forEach(function(t){t.type!==g&&e.push(i._makePositionByBound(t,n))}),e})},e.prototype._makePositionByBound=function(t,e){var i=t.top,o=t.left,n={};if(this.isVertical){var r=t.width||t.length;n.top=i-e,n.left=o+r/2}else{var a=t.width||0,s=t.height||t.length;n.top=i+s/2,n.left=o+5+(a||0)}return n},e}(l["default"]);s.componentType="series",s.BulletChartSeries=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return new S(t)}e.__esModule=!0,e["default"]=r;var a=i(7),s=o(a),u=i(101),l=o(u),h=i(9),p=o(h),c=i(10),d=o(c),f=i(25),m=o(f),g=i(8),y=o(g),_=i(56),v=o(_),T=i(16),b=o(T),A=p["default"].COMPONENT_TYPE_DOM,E=p["default"].MAP_CHART_ZOOM_AREA_HEIGHT,x=p["default"].MAP_CHART_ZOOM_AREA_WIDTH,D=p["default"].CHART_PADDING,L=s["default"].browser.msie&&s["default"].browser.version<=8,S=function(){function t(e){n(this,t),this.className="tui-chart-zoom-area";var i=e.seriesTypes,o=!(!i||!i.length)&&b["default"].isMapChart(i[0]),r=e.dataProcessor.options.legend,a=b["default"].isLegendAlignTop(r.align),s=r.visible!==!1;this.isMapLegendTop=o&&a&&s,this.eventBus=e.eventBus,this.magn=1,this.stackedWheelDelta=0,this.drawingType=A,this._attachToEventBus()}return t.prototype._attachToEventBus=function(){this.eventBus.on("wheel",this.onWheel,this)},t.prototype.render=function(t){var e=void 0;if(!L){var i=m["default"].sum([t.positionMap.series.top,-E,x]);this.isMapLegendTop&&(i=t.positionMap.legend.top-x);var o={top:i,right:D};e=d["default"].create("DIV",this.className),e.innerHTML+=l["default"].ZOOM_BUTTONS,y["default"].renderPosition(e,o),this._attachEvent(e)}return e},t.prototype._findBtnElement=function(t){var e="tui-chart-zoom-btn",i=t;return d["default"].hasClass(t,e)||(i=d["default"].findParentByClass(t,e)),i},t.prototype._zoom=function(t,e){this.eventBus.fire("zoomMap",t,e)},t.prototype._onClick=function(t){var e=t.target||t.srcElement,i=this._findBtnElement(e),o=i.getAttribute("data-magn"),n=this._calculateMagn(o);return n>5?this.magn=5:n<1?this.magn=1:n>=1&&this._zoom(n),t.preventDefault&&t.preventDefault(),!1},t.prototype._attachEvent=function(t){v["default"].on(t,"click",this._onClick,this)},t.prototype._calculateMagn=function(t){return t>0?this.magn+=.1:t<0&&(this.magn-=.1),this.magn},t.prototype.onWheel=function(t,e){var i=this._calculateMagn(t);i>5?this.magn=5:i<1?this.magn=1:i>=1&&this._zoom(i,e)},t}();r.componentType="zoom"},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(66),r=o(n),a={HTML_SERIES_LABEL:'
{{ label }}
',TEXT_CSS_TEXT:"left:{{ left }}px;top:{{ top }}px;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",TEXT_CSS_TEXT_FOR_LINE_TYPE:"left:{{ left }}%;top:{{ top }}%;font-family:{{ fontFamily }};font-size:{{ fontSize }}px;font-weight:{{ fontWeight }}{{opacity}}",HTML_ZOOM_BUTTONS:'',HTML_SERIES_BLOCK:'
{{ label }}
'};e["default"]={tplSeriesLabel:r["default"].template(a.HTML_SERIES_LABEL),tplCssText:r["default"].template(a.TEXT_CSS_TEXT),tplCssTextForLineType:r["default"].template(a.TEXT_CSS_TEXT_FOR_LINE_TYPE),ZOOM_BUTTONS:a.HTML_ZOOM_BUTTONS,tplSeriesBlock:r["default"].template(a.HTML_SERIES_BLOCK)}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&void 0!==arguments[1]&&arguments[1];this.rawData=t,e&&(this.originalRawData=R["default"].deepCopy(t),this.originalLegendData=null),this.categoriesMap=null,this.categoriesIsDateTime={},this.stacks=null,this.seriesDataModelMap={},this.legendVisibilities=null,this.zoomedRawData=null,this.seriesGroups=null,this.valuesMap={},this.legendLabels=null,this.legendData=null,this.multilineCategories=null,this.coordinateType=null},e.prototype.getRawData=function(){return this.rawData},e.prototype.findChartType=function(t){return x["default"].findChartType(this.rawData.seriesAlias,t)},e.prototype._escapeCategories=function(t){return t.map(function(t){return I["default"].encodeHTMLEntity(String(t))})},e.prototype._mapCategories=function(t,e){var i=this,o=e+"Axis",n=this.options[o]||{},r=!1;return r=I["default"].isArray(n)?n.filter(function(t){return t.type&&L["default"].isDatetimeType(t.type)}):n.type&&L["default"].isDatetimeType(n.type),t=r?t.map(function(t){return i.chageDatetypeToTimestamp(t)}):this._escapeCategories(t),this.categoriesIsDateTime[e]=r,t},e.prototype._processCategories=function(t){var e=this.rawData.categories,i={};return I["default"].isArray(e)?i[t]=this._mapCategories(e,t):e&&(e.x&&(i.x=this._mapCategories(e.x,"x")),e.y&&(i.y=this._mapCategories(e.y,"y").reverse())),i},e.prototype.getCategories=function(t){var e=t?"y":"x",i=[];return this.categoriesMap||(this.categoriesMap=this._processCategories(e)),I["default"].isExisty(t)?i=this.categoriesMap[e]||[]:Object.values(this.categoriesMap).every(function(t){return i=t,!1}),i},e.prototype.getCategorieDateType=function(t){var e=t?"y":"x";return this.categoriesIsDateTime[e]},e.prototype.chageDatetypeToTimestamp=function(t){var e=new Date(t);return e.getTime()>0||(e=new Date(parseInt(t,10))),e.getTime()||t},e.prototype.getCategoryCount=function(t){var e=this.getCategories(t);return e?e.length:0},e.prototype.hasCategories=function(t){return!!this.getCategoryCount(t)},e.prototype.isXCountGreaterThanYCount=function(t){var e=this.getSeriesDataModel(t);return e.isXCountGreaterThanYCount()},e.prototype.hasXValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||e},e.prototype.hasYValue=function(t){var e=this.isXCountGreaterThanYCount(t);return!this.hasCategories(e)||!e},e.prototype.getCategory=function(t,e){return this.getCategories(e)[t]},e.prototype.findCategoryIndex=function(t){var e=this,i=this.getCategories(),o=this.getCategorieDateType(),n=null; +return i.forEach(function(i,r){return o&&(t=e.chageDatetypeToTimestamp(t)),i===t&&(n=r),I["default"].isNull(n)}),n},e.prototype.findAbsoluteCategoryIndex=function(t){var e=this.originalRawData?this.originalRawData.categories:null,i=-1;return e?(e.forEach(function(e,o){var n=e===t;return n&&(i=o),!n}),i):i},e.prototype._getTooltipCategory=function(t,e){var i=this.getCategory(t,e),o=e?"yAxis":"xAxis",n=this.options[o]||{},r=this.options.tooltip||{};return L["default"].isDatetimeType(r.type)?i=C["default"].formatDate(i,r.dateFormat):L["default"].isDatetimeType(n.type)&&(i=C["default"].formatDate(i,n.dateFormat)),i},e.prototype.makeTooltipCategory=function(t,e,i){var o=!i,n=this._getTooltipCategory(t,o),r=this.getCategoryCount(!o);return r&&(n+=", "+this._getTooltipCategory(r-e-1,!o)),n},e.prototype.getStacks=function(t){return this.stacks||(this.stacks=x["default"].pickStacks(this.rawData.series[t])),this.stacks},e.prototype.getStackCount=function(t){return this.getStacks(t).length},e.prototype.findStackIndex=function(t){return I["default"].inArray(t,this.getStacks())},e.prototype.isCoordinateType=function(){var t=this.coordinateType;if(!I["default"].isExisty(t)){var e=this.chartType;t=L["default"].isCoordinateTypeChart(e),t=t||L["default"].isLineScatterComboChart(e,this.seriesTypes),t=t||L["default"].isLineTypeChart(e)&&!this.hasCategories(),this.coordinateType=t}return t},e.prototype.getSeriesDataModel=function(t){if(!this.seriesDataModelMap[t]){var e=this.findChartType(t),i=this.rawData.series[t],o=void 0;o=L["default"].isBoxplotChart(this.chartType)?g["default"]:L["default"].isTreemapChart(this.chartType)?T["default"]:L["default"].isBulletChart(this.chartType)?_["default"]:f["default"],this.seriesDataModelMap[t]=new o(i,e,this.options,this.getFormatFunctions(),this.isCoordinateType())}return this.seriesDataModelMap[t]},e.prototype.getOption=function(t){return this.options[t]},e.prototype.getGroupCount=function(t){return this.getSeriesDataModel(t).getGroupCount()},e.prototype._pushCategory=function(t){this.rawData.categories&&(this.rawData.categories.push(t),this.originalRawData.categories.push(t))},e.prototype._shiftCategory=function(){this.rawData.categories&&(this.rawData.categories.shift(),this.originalRawData.categories.shift())},e.prototype._findRawSeriesDatumByName=function(t,e){var i=this.rawData.series[e],o=null;return i.forEach(function(e){var i=e.name===t;return i&&(o=e),!i}),o},e.prototype._pushValue=function(t,e,i){var o=this._findRawSeriesDatumByName(t.name,i);t.data.push(e),o&&o.data.push(e)},e.prototype._pushValues=function(t,e,i){var o=this;t.forEach(function(t,n){o._pushValue(t,e[n],i)})},e.prototype._pushSeriesData=function(t){var e=this;if("combo"!==this.chartType&&I["default"].isArray(t)){var i=t;t={},t[this.chartType]=i}Object.entries(this.originalRawData.series).forEach(function(i){var o=u(i,2),n=o[0],r=o[1];e._pushValues(r,t[n],n)})},e.prototype._shiftValues=function(t,e){var i=this;t.forEach(function(t){var o=i._findRawSeriesDatumByName(t.name,e);t.data.shift(),o&&o.data.shift()})},e.prototype._shiftSeriesData=function(){var t=this;Object.entries(this.originalRawData.series).forEach(function(e){var i=u(e,2),o=i[0],n=i[1];t._shiftValues(n,o)})},e.prototype.addDynamicData=function(t,e){this.dynamicData.push({category:t,values:e})},e.prototype._pushDynamicData=function(t){this._pushCategory(t.category),this._pushSeriesData(t.values)},e.prototype._pushDynamicDataForCoordinateType=function(t){var e=this;Object.values(this.originalRawData.series).forEach(function(i){e._pushValue(i,t[i.name])})},e.prototype.addDataFromDynamicData=function(){var t=this.dynamicData.shift();return t&&(this.isCoordinateType()?this._pushDynamicDataForCoordinateType(t.values):this._pushDynamicData(t),this.initData(this.rawData)),!!t},e.prototype.shiftData=function(){this._shiftCategory(),this._shiftSeriesData(),this.initData(this.rawData)},e.prototype.addDataFromRemainDynamicData=function(t){var e=this,i=this.dynamicData;this.dynamicData=[],i.forEach(function(i){e._pushCategory(i.category),e._pushSeriesData(i.values),t&&(e._shiftCategory(),e._shiftSeriesData())}),this.initData(this.rawData)},e.prototype._eachByAllSeriesDataModel=function(t){var e=this,i=this.seriesTypes||[this.chartType];i.forEach(function(i){return t(e.getSeriesDataModel(i),i)})},e.prototype.isValidAllSeriesDataModel=function(){var t=!0;return this._eachByAllSeriesDataModel(function(e){t=!!e.getGroupCount()}),t},e.prototype._makeSeriesGroups=function(){var t=[];this._eachByAllSeriesDataModel(function(e){e.each(function(e,i){t[i]||(t[i]=[]),t[i]=t[i].concat(e.items)})});var e=t.map(function(t){return new A["default"](t)});return e},e.prototype.getSeriesGroups=function(){return this.seriesGroups||(this.seriesGroups=this._makeSeriesGroups()),this.seriesGroups},e.prototype.getValue=function(t,e,i){return this.getSeriesDataModel(i).getValue(t,e)},e.prototype.getDefaultDatetimeValues=function(){var t=36e5,e=Date.now();return[e-t,e]},e.prototype.isSeriesDataEmpty=function(t){var e=this.rawData,i=e&&!e.series;return!e||i||!e.series[t]||e.series[t]&&!e.series[t].length},e.prototype.isLimitOptionsEmpty=function(t){var e=this.options[t]||{};return k(e.min)&&k(e.max)},e.prototype.isLimitOptionsInsufficient=function(t){var e=this.options[t]||{};return k(e.min)||k(e.max)},e.prototype._createValues=function(t,e,i){var o=void 0,n=this.options,r=n.plot,a=n[i]||{},s=a.type,u=this.isSeriesDataEmpty(t),l=this.isLimitOptionsEmpty(i),h=this.isLimitOptionsInsufficient(i),p=L["default"].isLineChart(t)||L["default"].isAreaChart(t)||L["default"].isLineAreaComboChart(t,this.seriesTypes),c=this.defaultValues;if(L["default"].isComboChart(t))o=[],this._eachByAllSeriesDataModel(function(t){o=o.concat(t.getValues(e))});else if(u&&h)if(!l&&h&&(c=c.concat([a.min||a.max])),"x"===e&&"datetime"===s){if(o=this.getDefaultDatetimeValues(),p&&r){var d=this.getValuesFromPlotOptions(r,s);o=o.concat(d)}}else o=c;else o=this.getSeriesDataModel(t).getValues(e);return o},e.prototype.getValuesFromPlotOptions=function(t,e){var i=[];return t.lines&&t.lines.forEach(function(t){i.push("datetime"!==e?t.value:new Date(t.value))}),t.bands&&t.bands.forEach(function(t){var o=t.range.map(function(t){return"datetime"!==e?t:new Date(t)});i=i.concat(o)}),i},e.prototype.getValues=function(t,e,i){var o=t+e;return this.valuesMap[o]||(this.valuesMap[o]=this._createValues(t,e,i)),this.valuesMap[o]},e.prototype.eachBySeriesGroup=function(t,e){this._eachByAllSeriesDataModel(function(i,o){i.each(function(e,i){t(e,i,o)},e)})},e.prototype._pickLegendLabel=function(t){return t.name?I["default"].encodeHTMLEntity(t.name):null},e.prototype._isVisibleLegend=function(t){var e=!0;return I["default"].isExisty(t.visible)&&t.visible===!1&&(e=!1),e},e.prototype._pickLegendData=function(t){var e=this.rawData.series,i={},o=void 0;return"visibility"===t?o=this._isVisibleLegend:"label"===t&&(o=this._pickLegendLabel),o&&(Object.entries(e).forEach(function(t){var e=u(t,2),n=e[0],r=e[1];i[n]=r.map(o)}),i=I["default"].filter(i,I["default"].isExisty)),i},e.prototype.getLegendLabels=function(t){return this.legendLabels||(this.legendLabels=this._pickLegendData("label")),this.legendLabels[t]||this.legendLabels},e.prototype.getLegendVisibility=function(t){return this.legendVisibilities||(this.legendVisibilities=this._pickLegendData("visibility")),this.legendVisibilities[t]||this.legendVisibilities},e.prototype._makeLegendData=function(){var t,e=this.getLegendLabels(this.chartType),i=this.getLegendVisibility(),o=this.seriesTypes||[this.chartType],r=void 0;I["default"].isArray(e)?(r=[this.chartType],r[this.chartType]=e):(o=this.seriesTypes,r=e);var a=o.map(function(t){return r[t].map(function(e,o){var n=I["default"].isArray(i[t]);return{chartType:t,label:e,visible:n?i[t][o]:i[o]}})});return(t=[]).concat.apply(t,n(a))},e.prototype.getLegendData=function(){return this.legendData||(this.legendData=this._makeLegendData()),this.originalLegendData||(this.originalLegendData=this.legendData),this.legendData},e.prototype.getOriginalLegendData=function(){return this.originalLegendData},e.prototype.getLegendItem=function(t){return this.getLegendData()[t]},e.prototype.getFirstItemLabel=function(t){return this.getSeriesDataModel(t).getFirstItemLabel()},e.prototype.addDataRatiosOfPieChart=function(t){this.getSeriesDataModel(t).addDataRatiosOfPieChart()},e.prototype.addDataRatiosForCoordinateType=function(t,e,i){L["default"].isLineTypeChart(t)&&this._addStartValueToAllSeriesItem(e.yAxis,t),this.getSeriesDataModel(t).addDataRatiosForCoordinateType(e,i)},e.prototype._addStartValueToAllSeriesItem=function(t,e){var i=0;t.min>=0?i=t.min:t.max<=0&&(i=t.max),this.getSeriesDataModel(e).addStartValueToAllSeriesItem(i)},e.prototype.addDataRatios=function(t,e,i){var o=this.getSeriesDataModel(i);this._addStartValueToAllSeriesItem(t,i),o.addDataRatios(t,e)},e.prototype.addDataRatiosForTreemapChart=function(t,e){this.getSeriesDataModel(e).addDataRatios(t)},e.prototype._createBaseValuesForNormalStackedChart=function(t){var e=this.getSeriesDataModel(t),i=[];return e.each(function(t){var e=t._makeValuesMapPerStack();Object.values(e).forEach(function(t){var e=P["default"].sumPlusValues(t),o=P["default"].sumMinusValues(t);i=i.concat([e,o])})}),i},e.prototype.createBaseValuesForLimit=function(t,e,i,o,n){var r=void 0;return L["default"].isComboChart(this.chartType)&&e?(r=this.getValues(this.chartType,o),L["default"].isNormalStackChart(t,i)&&(r=r.concat(this._createBaseValuesForNormalStackedChart(t)))):r=L["default"].isTreemapChart(t)?this.getValues(t,"colorValue"):L["default"].isNormalStackChart(t,i)?this._createBaseValuesForNormalStackedChart(t):this.getValues(t,o,n),r},e.prototype.findOverflowItem=function(t,e){var i=this.getSeriesDataModel(t),o=i.getMaxValue("r"),n=function(t){return t.r/o>h["default"].HALF_RATIO};return{minItem:i.findMinSeriesItem(e,n),maxItem:i.findMaxSeriesItem(e,n)}},e.prototype.setGraphColors=function(t){this.graphColors=t},e.prototype.getGraphColors=function(){return this.graphColors},e.prototype.isComboDonutShowOuterLabel=function(){var t=this.options.series;return t&&t.pie2&&"outer"===t.pie2.labelAlign},e}(c["default"]);e["default"]=B},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(11),a=o(r),s=i(8),u=o(s),l=i(25),h=o(l),p=i(7),c=o(p),d=function(){function t(){n(this,t)}return t.prototype.baseInit=function(){this.formatFunctions=null},t.prototype.getValues=function(){},t.prototype.getMaxValue=function(t,e){return a["default"].max(this.getValues(t,e))},t.prototype.getMinValue=function(t,e){return a["default"].min(this.getValues(t,e))},t.prototype.getFormattedMaxValue=function(t,e,i){var o=this.getMaxValue(t,i),n=this.getFormatFunctions();return u["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype.getFormattedMinValue=function(t,e,i){var o=this.getMinValue(t,i),n=this.getFormatFunctions();return u["default"].formatValue({value:o,formatFunctions:n,chartType:t,areaType:e,valueType:i})},t.prototype._pickMaxLenUnderPoint=function(t){var e=0;return t.forEach(function(t){var i=h["default"].getDecimalLength(t);i>e&&(e=i)}),e},t.prototype._isZeroFill=function(t){return t.length>2&&"0"===t.charAt(0)},t.prototype._isDecimal=function(t){var e=t.indexOf(".");return e>-1&&e-1},t.prototype._formatToZeroFill=function(t,e){var i=e<0;return e=u["default"].formatToZeroFill(Math.abs(e),t),(i?"-":"")+e},t.prototype._formatToDecimal=function(t,e){return u["default"].formatToDecimal(e,t)},t.prototype._findSimpleTypeFormatFunctions=function(t){var e=[],i=void 0;if(this._isDecimal(t))i=this._pickMaxLenUnderPoint([t]),e=[c["default"].bind(this._formatToDecimal,this,i)];else if(this._isZeroFill(t))return i=t.length,e=[c["default"].bind(this._formatToZeroFill,this,i)];return this._isComma(t)&&e.push(u["default"].formatToComma),e},t.prototype._findFormatFunctions=function(){var t=c["default"].pick(this.options,"chart","format"),e=[];return c["default"].isFunction(t)?e=[t]:c["default"].isString(t)&&(e=this._findSimpleTypeFormatFunctions(t)),e},t.prototype.getFormatFunctions=function(){return this.formatFunctions||(this.formatFunctions=this._findFormatFunctions()),this.formatFunctions},t}();e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"value";return this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype.isXCountGreaterThanYCount=function(){return this.getValues("x").length>this.getValues("y").length},t.prototype._addRatiosWhenNormalStacked=function(t){var e=Math.abs(t.max-t.min);this.each(function(t){t.addRatios(e)})},t.prototype._calculateBaseRatio=function(){var t=this.getValues(),e=g["default"].sumPlusValues(t),i=Math.abs(g["default"].sumMinusValues(t)),o=e>0&&i>0?.5:1;return o},t.prototype._addRatiosWhenPercentStacked=function(){var t=this._calculateBaseRatio();this.each(function(e){e.addRatiosWhenPercentStacked(t)})},t.prototype._addRatiosWhenDivergingStacked=function(){this.each(function(t){var e=t.pluck("value"),i=g["default"].sumPlusValues(e),o=Math.abs(g["default"].sumMinusValues(e));t.addRatiosWhenDivergingStacked(i,o)})},t.prototype._makeSubtractionValue=function(t){var e=f["default"].allowMinusPointRender(this.chartType),i=0;return!e&&f["default"].isMinusLimit(t)?i=t.max:(e||t.min>=0)&&(i=t.min),i},t.prototype._addRatios=function(t){var e=Math.abs(t.max-t.min),i=this._makeSubtractionValue(t);this.each(function(t){t.addRatios(e,i)})},t.prototype.addDataRatios=function(t,e){var i=f["default"].isAllowedStackOption(this.chartType);i&&f["default"].isNormalStack(e)?this._addRatiosWhenNormalStacked(t):i&&f["default"].isPercentStack(e)?this.isDivergingChart?this._addRatiosWhenDivergingStacked():this._addRatiosWhenPercentStacked():this._addRatios(t)},t.prototype.addDataRatiosOfPieChart=function(){this.each(function(t){var e=g["default"].sum(t.pluck("value"));t.addRatios(e)})},t.prototype.addDataRatiosForCoordinateType=function(t,e){var i=t.xAxis,o=t.yAxis,n=e?_["default"].max(this.getValues("r")):0,r=void 0,a=void 0,s=void 0,u=void 0;i&&(r=Math.abs(i.max-i.min),a=this._makeSubtractionValue(i)),o&&(s=Math.abs(o.max-o.min),u=this._makeSubtractionValue(o)),this.each(function(t){t.each(function(t){t&&(t.addRatio("x",r,a),t.addRatio("y",s,u),t.addRatio("r",n,0),T["default"].isExisty(t.start)&&t.addRatio("start",s,u))})})},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e.addStartValueToAllSeriesItem(t)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t.hasRangeData(),!e}),e},t.prototype.each=function(t,e){var i=e?this._getPivotGroups():this._getSeriesGroups();i.forEach(function(e,i){return t(e,i)})},t.prototype.map=function(t,e){var i=[];return this.each(function(e,o){i.push(t(e,o))},e),i},t}();e["default"]=A},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(25),s=o(a),u=i(7),l=o(u),h=function(){function t(e){n(this,t),this.items=e,this.valuesMap={},this.valuesMapPerStack=null}return t.prototype.getSeriesItemCount=function(){return this.items.length},t.prototype.getSeriesItem=function(t){return this.items[t]},t.prototype.getFirstSeriesItem=function(){return this.getSeriesItem(0)},t.prototype._createValues=function(t){var e=[];return this.each(function(i){i&&(l["default"].isExisty(i[t])&&e.push(i[t]),l["default"].isExisty(i.start)&&e.push(i.start))}),e},t.prototype.getValues=function(t){return t=t||"value",this.valuesMap[t]||(this.valuesMap[t]=this._createValues(t)),this.valuesMap[t]},t.prototype._makeValuesMapPerStack=function(){var t={};return this.each(function(e){t[e.stack]||(t[e.stack]=[]),t[e.stack].push(e.value)}),t},t.prototype.getValuesMapPerStack=function(){return this.valuesMapPerStack||(this.valuesMapPerStack=this._makeValuesMapPerStack()),this.valuesMapPerStack},t.prototype._makeSumMapPerStack=function(){var t=this.getValuesMapPerStack(),e={};return Object.entries(t).forEach(function(t){var i=r(t,2),o=i[0],n=i[1];e[o]=s["default"].sum(n.map(function(t){return Math.abs(t)}))}),e},t.prototype.addStartValueToAllSeriesItem=function(t){this.each(function(e){e&&e.addStart(t)})},t.prototype.addRatiosWhenPercentStacked=function(t){var e=this._makeSumMapPerStack();this.each(function(i){var o=e[i.stack];i.addRatio(o,0,t)})},t.prototype.addRatiosWhenDivergingStacked=function(t,e){this.each(function(i){var o=i.value>=0?t:e;i.addRatio(o,0,.5)})},t.prototype.addRatios=function(t,e){this.each(function(i){i&&i.addRatio(t,e)})},t.prototype.hasRangeData=function e(){var e=!1;return this.each(function(t){return e=t&&t.isRange,!e}),e},t.prototype.each=function(t){this.items.forEach(t)},t.prototype.map=function(t){return this.items.map(t)},t.prototype.pluck=function(t){var e=this.items.filter(l["default"].isExisty);return l["default"].pluck(e,t)},t.prototype.find=function(t){var e=void 0;return this.each(function(i){return t(i)&&(e=i),!e}),e||null},t.prototype.filter=function(t){return this.items.filter(t)},t}();e["default"]=h},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(9),s=o(a),u=i(8),l=o(u),h=i(25),p=o(h),c=i(16),d=o(c),f=i(7),m=o(f),g=function(){function t(e){n(this,t),this.chartType=e.chartType,this.stack=e.stack||s["default"].DEFAULT_STACK,this.isDivergingChart=e.isDivergingChart,this.formatFunctions=e.formatFunctions,this.isRange=!1,this.value=null,this.label=null,this.ratio=null,this.end=null,this.endLabel=null,this.endRatio=null,this.start=null,this.startLabel=null,this.startRatio=null,this.ratioDistance=null,d["default"].isBulletChart(this.chartType)&&(this.type=e.type),this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this._createValues(t),o="makingSeriesLabel",n=i.length>1,a=r(i,1),s=a[0];this.value=this.end=s,this.index=e,this.isDivergingChart&&(s=Math.abs(s)),m["default"].isNull(s)?this.label="":this.label=l["default"].formatValue({value:s,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:o,legendName:this.legendName}),this.endLabel=this.label,n&&(this.addStart(i[1],!0),this._updateFormattedValueforRange(),this.isRange=!0)},t.prototype._createValues=function(t){var e=[].concat(t).map(function(t){return m["default"].isNull(t)?null:parseFloat(t)});return e=e.sort(function(t,e){return t<0&&e<0?t-e:e-t})},t.prototype.addStart=function(t){m["default"].isNull(this.start)&&(this.start=t,this.startLabel=l["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.startLabel+" ~ "+this.endLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.ratio=this.endRatio=p["default"].calculateRatio(this.value,t,e,i),m["default"].isExisty(this.start)&&(this.startRatio=p["default"].calculateRatio(this.start,t,e,i),this.ratioDistance=Math.abs(this.endRatio-this.startRatio))},t.prototype._getFormattedValueForTooltip=function(t){return l["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return m["default"].isExisty(this.start)&&(t.start=this._getFormattedValueForTooltip("start"),t.end=this._getFormattedValueForTooltip("end"),t.startRatio=this.startRatio,t.endRatio=this.endRatio),t},t}();e["default"]=g},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(16),s=o(a),u=i(8),l=o(u),h=i(7),p=o(h),c=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.xAxisType=e.xAxisType,this.dateFormat=e.dateFormat,this.ratioMap={},this._initData(e.datum,e.index)}return t.prototype._initData=function(t,e){var i=void 0;if(p["default"].isArray(t))if(this.x=t[0]||0,this.y=t[1]||0,s["default"].isBubbleChart(this.chartType)){var o=r(t,4);this.r=o[2];var n=o[3];this.label=void 0===n?"":n}else{var a=r(t,3),u=a[2];this.label=void 0===u?"":u}else this.x=t.x,this.y=t.y,this.r=t.r,this.label=t.label||"";if(s["default"].isDatetimeType(this.xAxisType)&&(i=p["default"].isDate(this.x)?this.x:new Date(this.x),this.x=i.getTime()||0),this.index=e,!this.label){s["default"].isLineTypeChart(this.chartType)&&s["default"].isDatetimeType(this.xAxisType)?this.label=l["default"].formatDate(this.x,this.dateFormat):this.label=l["default"].formatValue({value:this.x,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});var h=l["default"].formatValue({value:this.y,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series"});this.label+=", "+h}},t.prototype.addStart=function(t){this.start=t},t.prototype.addRatio=function(t,e,i){!p["default"].isExisty(this.ratioMap[t])&&e&&(this.ratioMap[t]=(this[t]-i)/e)},t.prototype._getFormattedValueForTooltip=function(t){var e=this.ratioMap[t],i=this[t],o=l["default"].formatValue({value:i,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t});return p["default"].isNumber(e)?o:i},t.prototype.pickValueMapForTooltip=function(){var t={x:this._getFormattedValueForTooltip("x"),y:this._getFormattedValueForTooltip("y"),xRatio:this.ratioMap.x,yRatio:this.ratioMap.y};return p["default"].isExisty(this.r)&&(t.r=this._getFormattedValueForTooltip("r"),t.rRatio=this.ratioMap.r),t},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(109),u=o(s),l=i(104),h=o(l),p=i(7),c=o(p),d=Array.prototype.concat,f=function(t){function e(i,o,a,s){n(this,e);var u=r(this,t.call(this));return u.chartType=o,u.options=a||{},u.formatFunctions=s,u.rawSeriesData=i||[],u.baseGroups=null,u.groups=null,u.options.series=u.options.series||{},u.valuesMap={},u}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions;return this.rawSeriesData.map(function(i){var o=c["default"].isArray(i)?i:[].concat(i.data),n=o.map(function(o,n){return new u["default"]({datum:o,chartType:t,formatFunctions:e,index:n,legendName:i.name})});return n})},e.prototype._createValues=function(){var t=[];return this.map(function(e){return e.items.forEach(function(e){t.push(e.min),t.push(e.max),t.push(e.uq),t.push(e.lq),t.push(e.median)})}),t=d.apply([],t),t.filter(function(t){return!isNaN(t)})},e}(h["default"]);e["default"]=f},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=i(8),s=o(a),u=i(25),l=o(u),h=i(7),p=o(h),c=function(){function t(e){n(this,t),this.chartType=e.chartType,this.formatFunctions=e.formatFunctions,this.value=null,this.label=null,this.ratio=null,this.min=null,this.minLabel=null,this.minRatio=null,this.max=null,this.maxLabel=null,this.maxRatio=null,this.median=null,this.medianLabel=null,this.medianRatio=null,this.lq=null,this.lqLabel=null,this.lqRatio=null,this.uq=null,this.uqLabel=null,this.uqRatio=null,this.ratioDistance=null,this.legendName=e.legendName,this._initValues(e.datum,e.index)}return t.prototype._initValues=function(t,e){var i=this,o=this._createValues(t),n=r(o,5),a=n[0],u=n[1],l=n[2],h=n[3],p=n[4],c=o.length>5,d=void 0,f=function(t){return s["default"].formatValue({value:t,formatFunctions:i.formatFunctions,chartType:i.chartType,areaType:"makingSeriesLabel",legendName:i.legendName})};this.value=this.max=p,this.uq=h,this.median=l,this.lq=u,this.min=a,this.index=e,c&&(this.outliers=[],d=this.outliers,o.slice(5).forEach(function(t){d.push({value:t,label:f(t)})})),this.label=f(p),this.uqLabel=f(h),this.medianLabel=f(l),this.lqLabel=f(u),this.minLabel=f(a),this.maxLabel=this.label},t.prototype._createValues=function(t){return[].concat(t).map(function(t){return p["default"].isNull(t)?null:parseFloat(t)})},t.prototype.addStart=function(t){p["default"].isNull(this.min)&&(this.min=t,this.minLabel=s["default"].formatValue({value:t,formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"series",legendName:this.legendName}))},t.prototype._updateFormattedValueforRange=function(){this.label=this.minLabel+"~"+this.maxLabel},t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=l["default"].calculateRatio; +this.ratio=this.maxRatio=o(this.max,t,e,i),this.uqRatio=o(this.uq,t,e,i),this.medianRatio=o(this.median,t,e,i),this.lqRatio=o(this.lq,t,e,i),this.minRatio=o(this.min,t,e,i),(this.outliers||[]).forEach(function(n){n.ratio=o(n.value,t,e,i)}),this.ratioDistance=Math.abs(this.uqRatio-this.lqRatio)},t.prototype._getFormattedValueForTooltip=function(t){return s["default"].formatValue({value:this[t],formatFunctions:this.formatFunctions,chartType:this.chartType,areaType:"tooltip",valueType:t,legendName:this.legendName})},t.prototype.pickValueMapForTooltip=function(){var t={value:this._getFormattedValueForTooltip("value"),ratio:this.ratio};return p["default"].isExisty(this.min)&&(t.min=this._getFormattedValueForTooltip("min"),t.max=this._getFormattedValueForTooltip("max"),t.minRatio=this.minRatio,t.maxRatio=this.maxRatio,t.maxLabel=this.maxLabel,t.minLabel=this.minLabel,t.uqLabel=this.uqLabel,t.lqLabel=this.lqLabel,t.medianLabel=this.medianLabel,t.outliers=this.outliers),t},t}();e["default"]=c},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(106),u=o(s),l=i(104),h=o(l),p=i(9),c=o(p),d=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return a(e,t),e.prototype._createBaseGroups=function(){var t=this.chartType,e=this.formatFunctions,i=0,o=0,n=this.rawSeriesData.map(function(n){var r=[],a=n.data,s=n.markers,l=n.ranges,h=s.length,p=l.length;return l&&p&&(l.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formatFunctions:e,type:c["default"].BULLET_TYPE_RANGE}))}),i=Math.max(i,p)),a&&r.push(new u["default"]({datum:a,chartType:t,formatFunctions:e,type:c["default"].BULLET_TYPE_ACTUAL})),s&&h&&(s.forEach(function(i){r.push(new u["default"]({datum:i,chartType:t,formabutFunctions:e,type:c["default"].BULLET_TYPE_MARKER}))}),o=Math.max(o,h)),r});return this.maxMarkerCount=o,this.maxRangeCount=i,n},e.prototype._createSeriesGroupsFromRawData=function(){return h["default"].prototype._createSeriesGroupsFromRawData.call(this)},e}(h["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=i(104),l=o(u),h=i(112),p=o(h),c=i(9),d=o(c),f=i(25),m=o(f),g=i(7),y=o(g),_=function(t){function e(){n(this,e);for(var i=arguments.length,o=Array(i),a=0;a1&&(o+=e.slice(1).join("_")),o},e.prototype._isValidGroup=function(t,e){return!y["default"].isExisty(e)||t===e},e.prototype.findSeriesItemsByDepth=function(t,e){var i=this,o=this._makeCacheKey(d["default"].TREEMAP_DEPTH_KEY_PREFIX,t,e);return this._findSeriesItems(o,function(o){return o.depth===t&&i._isValidGroup(o.group,e)})},e.prototype.findSeriesItemsByParent=function(t){var e=this._makeCacheKey(d["default"].TREEMAP_PARENT_KEY_PREFIX,t);return this._findSeriesItems(e,function(e){return e.parent===t})},e.prototype.findLeafSeriesItems=function(t){var e=this,i=this._makeCacheKey(d["default"].TREEMAP_LEAF_KEY_PREFIX,t);return this._findSeriesItems(i,function(i){return!i.hasChild&&e._isValidGroup(i.group,t)})},e.prototype.findParentByDepth=function(t,e){var i=this.seriesItemMap[t]||null;return i&&i.depth!==e&&(i=this.findParentByDepth(i.parent,e)),i},e.prototype.initSeriesItemsMap=function(){this.foundSeriesItemsMap=null},e}(l["default"]);e["default"]=_},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(25),a=o(r),s=i(8),u=o(s),l=i(7),h=o(l),p=function(){function t(e,i,o){n(this,t),this.chartType=o,this.formatFunctions=i,this.id=e.id,this.parent=e.parent,this.value=e.value,this.ratio=e.ratio,this.colorValue=e.colorValue,this.depth=e.depth,this.label=e.label||"",this.group=e.group,this.hasChild=!!e.hasChild,this.indexes=e.indexes,this.fillOpacity=e.fillOpacity}return t.prototype.addRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.colorRatio=a["default"].calculateRatio(this.colorValue,t,e,1)||-1},t.prototype.pickValueMapForTooltip=function(){var t=this.formatFunctions,e=this.chartType,i=this.colorValue,o=u["default"].formatValue({value:this.value,formatFunctions:t,chartType:e,areaType:"tooltipValue"}),n=o,r={legend:this.label||"",value:o,label:n,ratio:this.ratio,tooltipColorIndex:this.indexes[0]};return h["default"].isExisty(i)&&(r.colorValue=u["default"].formatValue({value:i,formatFunctions:t,chartType:e,areaType:"tooltipColorValue"}),r.colorRatio=this.colorRatio),r},t.prototype.pickLabelTemplateData=function(){var t={value:this.value,ratio:this.ratio,label:this.label};return h["default"].isExisty(this.colorValue)&&(t.colorValue=this.colorValue,t.colorValueRatio=this.ratio),t},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(114),r=o(n),a=i(120),s=o(a),u=i(9),l=o(u),h=i(16),p=o(h);e["default"]={_createBoundsModel:function(t,e){return new r["default"]({chartType:e.chartType,seriesTypes:e.seriesTypes,options:e.options,theme:e.theme,dataProcessor:t,hasAxes:e.hasAxes,isVertical:e.isVertical})},_createScaleDataModel:function(t,e,i){return new s["default"]({chartType:i.chartType,seriesTypes:i.seriesTypes,options:i.options,theme:i.theme,dataProcessor:t,boundsModel:e,hasRightYAxis:i.hasRightYAxis,addedDataCount:i.addedDataCount})},addYAxisScale:function(t,e,i,o){t.addScale(e,i&&i.options||o||{},{valueType:i.valueType||"value",areaType:i.areaType,chartType:i.chartType},i.additionalOptions)},_registerYAxisDimension:function(t,e,i,o,n){var r=t.get(o),a=null,s=[];if(r){var u=i[o];u&&(a=u.limit,s=u.labels),e.registerYAxisDimension({limit:a,axisName:o,options:r.options,theme:r.theme,yAxisLabels:s,isVertical:n})}},_setLayoutBoundsAndScale:function(t,e,i,o,n){var r=n.options,a=n.scaleOption,s=void 0===a?{}:a,u=n.addingDataMode,h=n.isVertical;e.has("xAxis")&&i.registerXAxisHeight(),e.has("legend")&&(e.get("legend").colorSpectrum?i.registerSpectrumLegendDimension():i.registerLegendDimension()),s.yAxis&&this.addYAxisScale(o,"yAxis",s.yAxis,n.options.yAxis),s.rightYAxis&&this.addYAxisScale(o,"rightYAxis",s.rightYAxis),s.legend&&o.addScale("legend",{},{chartType:n.chartType},{tickCounts:[l["default"].SPECTRUM_LEGEND_TICK_COUNT]});var c=o.scaleDataMap;c.legend&&e.get("legend")&&e.get("legend").colorSpectrum&&i.registerSpectrumLegendDimension(c.legend.limit),this._registerYAxisDimension(e,i,c,"yAxis",h),this._registerYAxisDimension(e,i,c,"rightYAxis",h),s.xAxis&&o.addScale("xAxis",r.xAxis,{valueType:s.xAxis.valueType||"value"},s.xAxis.additionalOptions),n.hasAxes&&o.setAxisDataMap(),i.registerSeriesDimension(),e.has("circleLegend")&&r.circleLegend.visible&&i.registerCircleLegendDimension(o.axisDataMap),e.has("xAxis")&&(p["default"].isAutoTickInterval(r.xAxis.tickInterval)&&o.updateXAxisDataForAutoTickInterval(n.prevXAxisData,u),o.updateXAxisDataForLabel(u)),i.registerBoundsData(o.axisDataMap.xAxis)},build:function(t,e,i){var o=this._createBoundsModel(t,i),n=this._createScaleDataModel(t,o,i);this._setLayoutBoundsAndScale(t,e,o,n,i);var r={dimensionMap:o.dimensionMap,positionMap:o.positionMap,limitMap:n.makeLimitMap(i.seriesTypes||[i.chartType],i.isVertical)};return n.axisDataMap&&(r.axisDataMap=n.axisDataMap),p["default"].isBubbleChart(i.chartType)&&(r.maxRadius=o.calculateMaxRadius(n.axisDataMap)),n.scaleDataMap.legend&&(r.legendScaleData=n.scaleDataMap.legend),r}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(9),a=o(r),s=i(16),u=o(s),l=i(8),h=o(l),p=i(6),c=o(p),d=i(115),f=o(d),m=i(116),g=o(m),y=i(117),_=o(y),v=i(118),T=o(v),b=i(119),A=o(b),E=i(7),x=o(E),D=x["default"].browser,L=a["default"].LEGEND_AREA_H_PADDING,S=D.msie&&D.version<=8,C=function(){function t(e){n(this,t),this.options=e.options||{},this.options.legend=this.options.legend||{},this.options.yAxis=this.options.yAxis||{},this.theme=e.theme||{},this.hasAxes=e.hasAxes,this.chartType=e.chartType,this.seriesTypes=e.seriesTypes||[],this.dataProcessor=e.dataProcessor,this.initBoundsData()}return t.prototype.initBoundsData=function(){this.dimensionMap={legend:{width:0},yAxis:{width:0},rightYAxis:{width:0},xAxis:{height:0},circleLegend:{width:0},chartExportMenu:{width:0}},this.positionMap={},this.chartLeftPadding=a["default"].CHART_PADDING,this.maxRadiusForBubbleChart=null,this._registerChartDimension(),this._registerTitleDimension(),this._registerChartExportMenuDimension()},t.prototype._registerDimension=function(t,e){this.dimensionMap[t]=x["default"].extend(this.dimensionMap[t]||{},e)},t.prototype.getBound=function(t){return{dimension:this.dimensionMap[t]||{},position:this.positionMap[t]||{}}},t.prototype._setBound=function(t,e){this.dimensionMap[t]=e.dimension,this.positionMap[t]=e.position},t.prototype.getDimension=function(t){return this.dimensionMap[t]},t.prototype.getDimensionMap=function(t){var e=this,i={};return t&&t.length?t.forEach(function(t){i[t]=e.dimensionMap[t]}):i=this.dimensionMap,JSON.parse(JSON.stringify(i))},t.prototype.getPosition=function(t){return this.positionMap[t]},t.prototype._registerChartDimension=function(){var t=this.options.chart||{},e={width:t.width||a["default"].CHART_DEFAULT_WIDTH,height:t.height||a["default"].CHART_DEFAULT_HEIGHT};this._registerDimension("chart",e)},t.prototype._registerTitleDimension=function(){var t=this.options.chart||{},e=x["default"].isExisty(t.title),i=this.theme.title,o=e?c["default"].getRenderedTextSize(t.title.text,i.fontSize,i.fontFamily).height:0,n=o||0;n&&(n+=a["default"].TITLE_PADDING),this._registerDimension("title",{height:n})},t.prototype._registerChartExportMenuDimension=function(){var t=void 0;t=this.options.chartExportMenu.visible===!1?{width:0,height:0}:{height:a["default"].CHART_EXPORT_MENU_SIZE+a["default"].SERIES_AREA_V_PADDING,width:a["default"].CHART_EXPORT_MENU_SIZE},this._registerDimension("chartExportMenu",t)},t.prototype.registerXAxisHeight=function(){this._registerDimension("xAxis",{height:g["default"].calculateXAxisHeight(this.options.xAxis,this.theme.xAxis)})},t.prototype.registerLegendDimension=function(){var t=x["default"].pluck(this.dataProcessor.getOriginalLegendData(),"label"),e=this.options.legend,i=this.theme.legend.label,o=this.getDimension("chart").width,n=_["default"].calculate(e,i,t,o);this._registerDimension("legend",n)},t.prototype.registerSpectrumLegendDimension=function(t){var e=t?t.max:this.dataProcessor.getFormattedMaxValue(this.chartType,"legend"),i=t?t.min:"",o=this.theme.label,n=this.options.legend.align,r=void 0;if(u["default"].isHorizontalLegend(n)){var a=u["default"].isBoxTypeChart(this.chartType),s=u["default"].isLegendAlignTop(n);r=A["default"]._makeHorizontalDimension(e,o,a,s)}else r=A["default"]._makeVerticalDimension(e,i,o);this._registerDimension("legend",r),this.useSpectrumLegend=!0},t.prototype.registerYAxisDimension=function(t){var e=t.limit,i=t.options,o=t.theme,n=t.yAxisLabels,r=t.isVertical,a=t.axisName,s=this.options.series&&this.options.series.diverging,l=void 0,h=void 0;if(e)l=[e.min,e.max];else{if(!u["default"].isHeatmapChart(this.chartType)&&r)return;l=this.dataProcessor.getCategories(!0)}h=x["default"].isArray(i)?"yAxis"===a?i[0]:i[1]:i,this._registerDimension(a,{width:g["default"].calculateYAxisWidth(l,h,o,n,s)})},t.prototype.calculateSeriesWidth=function(){var t=this.dataProcessor.getFormattedMaxValue(this.chartType,"series","value"),e=this.getDimensionMap(["chart","yAxis","legend","rightYAxis"]),i=0;u["default"].isColumnTypeChart(this.chartType)||(i=h["default"].getRenderedLabelHeight(t,this.theme.title));var o=T["default"].calculateWidth(e,this.options.legend,i);return u["default"].isMapChart(this.chartType)&&!S&&(o-=a["default"].MAP_CHART_ZOOM_AREA_WIDTH+L),o},t.prototype.calculateSeriesHeight=function(){var t=this.getDimensionMap(["chart","title","legend","xAxis","chartExportMenu"]),e=0;return this.options.yAxis&&this.options.yAxis.title&&(e=h["default"].getRenderedLabelHeight(this.options.yAxis.title,this.theme.title)),T["default"].calculateHeight(t,this.options.legend,e)},t.prototype.getBaseSizeForLimit=function(t){var e=void 0;return e=t?this.calculateSeriesHeight():this.calculateSeriesWidth()},t.prototype._makeSeriesDimension=function(){return{width:this.calculateSeriesWidth(),height:this.calculateSeriesHeight()}},t.prototype.registerSeriesDimension=function(){var t=this._makeSeriesDimension();this._registerDimension("series",t)},t.prototype._updateLegendAndSeriesWidth=function(t,e){var i=this.options.legend;u["default"].isVerticalLegend(i.align)&&i.visible&&this._registerDimension("legend",{width:t}),this._registerDimension("series",{width:this.getDimension("series").width-e})},t.prototype.registerCircleLegendDimension=function(t){var e=this.getDimension("series"),i=this.options.legend,o=this.dataProcessor.getFormattedMaxValue(this.chartType,"circleLegend","r"),n=this.theme.chart.fontFamily,r=f["default"].calculateCircleLegendWidth(e,t,o,n),s=void 0;s=u["default"].isVerticalLegend(i.align)&&i.visible?this.getDimension("legend").width:0,r=Math.min(r,Math.max(s,a["default"].MIN_LEGEND_WIDTH));var l=r-s;this._registerDimension("circleLegend",{width:r,height:r}),l>0&&this._updateLegendAndSeriesWidth(r,l)},t.prototype._makePlotDimension=function(){var t=this.getDimension("series");return{width:t.width,height:t.height+a["default"].OVERLAPPING_WIDTH}},t.prototype._registerCenterComponentsDimension=function(){var t=this.getDimension("series");this._registerDimension("tooltip",t),this._registerDimension("mouseEventDetector",t)},t.prototype._registerAxisComponentsDimension=function(){var t=this._makePlotDimension();this._registerDimension("plot",t),this._registerDimension("xAxis",{width:t.width}),this._registerDimension("yAxis",{height:t.height}),this._registerDimension("rightYAxis",{height:t.height})},t.prototype._updateDimensionsWidth=function(t){var e=Math.max(t.overflowLeft,0),i=t.overflowRight?Math.max(t.overflowRight,0):0,o=e+i;this.chartLeftPadding+=e,this.dimensionMap.plot.width-=o,this.dimensionMap.series.width-=o,this.dimensionMap.mouseEventDetector.width-=o,this.dimensionMap.xAxis.width-=o},t.prototype._updateDimensionsHeight=function(t){this.dimensionMap.plot.height-=t,this.dimensionMap.series.height-=t,this.dimensionMap.mouseEventDetector.height-=t,this.dimensionMap.tooltip.height-=t,this.dimensionMap.yAxis.height-=t,this.dimensionMap.rightYAxis.height-=t,this.dimensionMap.xAxis.height+=t},t.prototype._updateDimensionsForXAxisLabel=function(t){(t.overflowRight>0||t.overflowLeft>0)&&this._updateDimensionsWidth(t),t.overflowHeight&&this._updateDimensionsHeight(t.overflowHeight)},t.prototype._registerAxisComponentsPosition=function(t){var e=this.getPosition("series"),i=this.getDimension("series"),o=this.getDimension("yAxis").width,n=t+o+i.width;this.positionMap.plot={top:e.top,left:e.left},this.positionMap.yAxis={top:e.top,left:this.chartLeftPadding+t},this.positionMap.xAxis={top:e.top+i.height,left:e.left},this.positionMap.rightYAxis={top:e.top,left:this.chartLeftPadding+n-a["default"].OVERLAPPING_WIDTH}},t.prototype._makeLegendPosition=function(){var t=this.dimensionMap,e=t.series,i=this.getPosition("series").top,o=this.options.legend,n=0,r=void 0,s=void 0;return u["default"].isHorizontalLegend(o.align)?(s=(this.getDimension("chart").width-this.getDimension("legend").width)/2,n=u["default"].isLegendAlignBottom(o.align)?i+e.height+this.getDimension("xAxis").height+a["default"].SERIES_AREA_V_PADDING:i-t.legend.height+a["default"].LEGEND_AREA_V_PADDING):(u["default"].isLegendAlignLeft(o.align)?s=this.chartLeftPadding:(r=this.getDimension("yAxis").width+this.getDimension("rightYAxis").width,s=this.chartLeftPadding+r+e.width),n=i+a["default"].SERIES_AREA_V_PADDING),{top:n,left:s}},t.prototype._makeSpectrumLegendPosition=function(){var t=this.options.legend,e=this.options.legend.align,i=this.getPosition("series"),o=this.getDimension("series"),n=this.getDimension("legend"),r=void 0,s=void 0,l=void 0;u["default"].isHorizontalLegend(e)?(s=(this.getDimension("chart").width-n.width)/2,r=u["default"].isLegendAlignTop(e)?i.top-n.height:i.top+o.height+this.getDimension("xAxis").height):(u["default"].isLegendAlignLeft(t.align)?s=this.chartLeftPadding:(l=this.getDimension("chart").width-this.chartLeftPadding,s=l-this.getDimension("legend").width),r=u["default"].isBoxTypeChart(this.chartType)?i.top:i.top+.75*a["default"].MAP_CHART_ZOOM_AREA_HEIGHT);var h={top:r,left:s};return l&&(h.right=l),h},t.prototype._makeChartExportMenuPosition=function(){var t=this.getPosition("series").top-a["default"].SERIES_AREA_V_PADDING-a["default"].CHART_EXPORT_MENU_SIZE;return{top:t,right:a["default"].CHART_PADDING}},t.prototype._makeCircleLegendPosition=function(){var t=this.getPosition("series"),e=this.getDimension("series"),i=this.getDimension("circleLegend"),o=this.options.legend,n=void 0,r=void 0;return n=u["default"].isLegendAlignLeft(o.align)?0:t.left+e.width,u["default"].isVerticalLegend(o.align)&&o.visible&&(r=this.getDimension("legend").width+a["default"].CHART_PADDING,n+=(r-i.width)/2),{top:t.top+e.height-i.height,left:n}},t.prototype._isNeedExpansionSeries=function(){var t=this.chartType;return!(u["default"].isPieChart(t)||u["default"].isMapChart(t)||u["default"].isTreemapChart(t)||u["default"].isRadialChart(t)||u["default"].isPieDonutComboChart(t,this.seriesTypes))},t.prototype._registerEssentialComponentsPositions=function(){var t=this.getPosition("series"),e=void 0;this.positionMap.mouseEventDetector=Object.assign({},t),this.positionMap.legend=this.useSpectrumLegend?this._makeSpectrumLegendPosition():this._makeLegendPosition(),this.positionMap.chartExportMenu=this._makeChartExportMenuPosition(),this.getDimension("circleLegend").width&&(this.positionMap.circleLegend=this._makeCircleLegendPosition()),e=this._isNeedExpansionSeries()?{top:t.top-a["default"].SERIES_EXPAND_SIZE,left:t.left-a["default"].SERIES_EXPAND_SIZE}:t,this.positionMap.tooltip=e},t.prototype._registerPositions=function(){var t=this,e=this.options.legend.align,i=this.options.legend.visible,o=this.getDimension("legend"),n=u["default"].isLegendAlignTop(e)&&i,r=u["default"].isLegendAlignLeft(e)&&i,s=n?o.height:0,l=r?o.width:0,p=Math.max(this.getDimension("title").height,this.getDimension("chartExportMenu").height),c=function(){if(t.options.yAxis.title&&!t.useSpectrumLegend){var e=h["default"].getRenderedLabelHeight(t.options.yAxis.title,t.theme.yAxis.title);return e+a["default"].Y_AXIS_TITLE_PADDING}return 0}(),d=Math.max(0,Math.max(s,c)-a["default"].TITLE_PADDING),f=p+d;p||(f=Math.max(s,c));var m={top:f+a["default"].CHART_PADDING,left:this.chartLeftPadding+l+this.getDimension("yAxis").width};this.positionMap.series=m,this.hasAxes&&this._registerAxisComponentsPosition(l),this._registerEssentialComponentsPositions()},t.prototype._registerExtendedSeriesBound=function(){var t=this.getBound("series");this._isNeedExpansionSeries()&&(t=h["default"].expandBound(t)),this._setBound("extendedSeries",t)},t.prototype._updateBoundsForYAxisCenterOption=function(){var t=this.getDimension("yAxis").width,e=Math.floor(this.getDimension("series").width/2)+a["default"].OVERLAPPING_WIDTH,i=t-a["default"].OVERLAPPING_WIDTH,o=h["default"].isOldBrowser()?1:0;this.dimensionMap.extendedSeries.width+=t,this.dimensionMap.xAxis.width+=a["default"].OVERLAPPING_WIDTH,this.dimensionMap.plot.width+=t+a["default"].OVERLAPPING_WIDTH,this.dimensionMap.mouseEventDetector.width+=t,this.dimensionMap.tooltip.width+=t,this.positionMap.series.left-=t-o,this.positionMap.extendedSeries.left-=i-o,this.positionMap.plot.left-=i,this.positionMap.yAxis.left+=e,this.positionMap.xAxis.left-=i,this.positionMap.mouseEventDetector.left-=i,this.positionMap.tooltip.left-=i},t.prototype.registerBoundsData=function(t){this._registerCenterComponentsDimension(),this.useSpectrumLegend&&this._updateDimensionsForSpectrumLegend(),this.hasAxes&&(this._registerAxisComponentsDimension(),this._updateDimensionsForXAxisLabel(t)),this._registerPositions(),this._registerExtendedSeriesBound(),this.options.yAxis.isCenter&&this._updateBoundsForYAxisCenterOption()},t.prototype._updateDimensionsForSpectrumLegend=function(){var t=this.options.legend.align,e=this.getDimension("legend"),i=this.getDimension("series");u["default"].isHorizontalLegend(t)&&e.width>i.width?e.width=i.width:u["default"].isVerticalLegend(t)&&(u["default"].isBoxTypeChart(this.chartType)?e.height=i.height:e.height>i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT&&(e.height=i.height-a["default"].MAP_CHART_ZOOM_AREA_HEIGHT))},t.prototype.calculateMaxRadius=function(t){var e=this.getDimensionMap(["series","circleLegend"]),i=!!this.options.circleLegend&&this.options.circleLegend.visible;return f["default"].calculateMaxRadius(e,t,i)},t}();e["default"]=C},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a);e["default"]={_calculatePixelStep:function(t,e){var i=t.tickCount,o=void 0;return o=t.isLabelAxis?e/i/2:e/(i-1),parseInt(o,10)},_calculateRadiusByAxisData:function(t,e){var i=this._calculatePixelStep(e.yAxis,t.height),o=this._calculatePixelStep(e.xAxis,t.width);return Math.min(i,o)},_getCircleLegendLabelMaxWidth:function(t,e){return s["default"].getRenderedLabelWidth(t,{fontSize:r["default"].CIRCLE_LEGEND_LABEL_FONT_SIZE,fontFamily:e})},calculateCircleLegendWidth:function(t,e,i,o){var n=this._calculateRadiusByAxisData(t,e),a=this._getCircleLegendLabelMaxWidth(i,o);return Math.max(2*n,a)+r["default"].CIRCLE_LEGEND_PADDING},calculateMaxRadius:function(t,e,i){var o=this._calculateRadiusByAxisData(t.series,e),n=t.circleLegend.width;return i?Math.min((n-r["default"].CIRCLE_LEGEND_PADDING)/2,o):o}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a),u=i(8),l=o(u);e["default"]={calculateXAxisHeight:function(t,e){var i=t.title,o=i?l["default"].getRenderedLabelHeight(i.text,e.title):0,n=o?o+r["default"].X_AXIS_TITLE_PADDING:0,a=t.labelMargin||0,s=l["default"].getRenderedLabelHeight(r["default"].MAX_HEIGHT_WORD,e.label),u=n+r["default"].X_AXIS_LABEL_PADDING;return a>0&&(u+=a),t.showLabel!==!1&&(u+=s),u},calculateYAxisWidth:function(t,e,i,o,n){var a=e.labelMargin,u=e.prefix,h=e.suffix,p=e.isCenter,c=e.type,d=e.dateFormat,f=e.showLabel,m=e.title,g=0,y=0,_=0;return t=e.categories||t,t=l["default"].addPrefixSuffix(t,u,h),o=l["default"].addPrefixSuffix(o,u,h),p&&(_+=r["default"].Y_AXIS_LABEL_PADDING),s["default"].isDatetimeType(c)&&(t=l["default"].formatDates(t,d),o=l["default"].formatDates(o,d)),a&&a>0&&(_+=a),t=o.length?o:t,f!==!1&&(y=l["default"].getRenderedLabelsMaxWidth(t,i.label)),m&&(g=l["default"].getRenderedLabelWidth(m.text,i.title)),_+=(n?Math.max(y,g):y)+r["default"].Y_AXIS_LABEL_PADDING}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a),u=i(25),l=o(u),h=i(8),p=o(h),c=i(11),d=o(c),f=r["default"].LEGEND_CHECKBOX_SIZE,m=r["default"].LEGEND_ICON_WIDTH,g=r["default"].LEGEND_LABEL_LEFT_PADDING,y=r["default"].LEGEND_V_LABEL_RIGHT_PADDING,_=r["default"].LEGEND_H_LABEL_RIGHT_PADDING,v=r["default"].LEGEND_AREA_H_PADDING;e["default"]={_calculateLegendsWidthSum:function(t,e,i,o){var n=l["default"].sum([v,i,m,g]),r=l["default"].sum(t.map(function(t){var i=p["default"].getRenderedLabelWidth(t,e);return o&&i>o&&(i=o),i+=n,i+_}));return r=r-_+v},_divideLegendLabels:function(t,e){var i=Math.round(t.length/e),o=[],n=[];return t.forEach(function(t){n.length=e);return{labels:u,maxLineWidth:a}},_calculateHorizontalLegendHeight:function(t,e){var i=Math.max.apply(null,t.map(function(t){return p["default"].getRenderedLabelsMaxHeight(t,e)})),o=l["default"].sum([Math.max(r["default"].LEGEND_CHECKBOX_SIZE,i),r["default"].LINE_MARGIN_TOP]),n=o*t.length-r["default"].LINE_MARGIN_TOP+r["default"].SERIES_AREA_V_PADDING;return n},_makeHorizontalDimension:function(t,e,i,o,n){var a=this._makeDividedLabelsAndMaxLineWidth(e,i,t,o,n),s=this._calculateHorizontalLegendHeight(a.labels,t),u=s+r["default"].SERIES_AREA_V_PADDING;return{width:Math.max(a.maxLineWidth,r["default"].MIN_LEGEND_WIDTH),height:u}},_makeVerticalDimension:function(t,e,i,o){var n=p["default"].getRenderedLabelsMaxWidth(e,t),r=0;return o&&n>o&&(n=o),r=l["default"].sum([2*v,i,m,g,n,y]),{width:r,height:0}},calculate:function(t,e,i,o){var n=t.showCheckbox===!1?0:f+g,r=t.maxWidth,a={};return t.visible?a=s["default"].isHorizontalLegend(t.align)?this._makeHorizontalDimension(e,i,o,n,r):this._makeVerticalDimension(e,i,n,r):a.width=0,a}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(16),s=o(a);e["default"]={calculateWidth:function(t,e,i){var o=t.chart.width,n=t.yAxis,a=t.rightYAxis,u=t.legend,l=n.width+a.width,h=u,p=0,c=0;return s["default"].isVerticalLegend(e.align)&&e.visible&&(p=h?h.width:0),p||a.width||!i||(c=i/2),o-2*r["default"].CHART_PADDING-l-p-c},calculateHeight:function(t,e,i){var o=t.chart.height,n=Math.max(t.title.height,t.chartExportMenu.height),a=e.visible?t.legend.height:0,u=s["default"].isLegendAlignTop(e.align)?a:0,l=Math.max(0,Math.max(i,u)-r["default"].TITLE_PADDING),h=n+l,p=s["default"].isLegendAlignBottom(e.align)?a:0,c=t.xAxis.height+p;return o-2*r["default"].CHART_PADDING-h-c}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=i(9),r=o(n),a=i(8),s=o(a),u=i(25),l=o(u),h=r["default"].MAP_LEGEND_TOOLTIP_HORIZONTAL_PADDING,p=r["default"].MAP_LEGEND_WEDGE_SIZE,c=r["default"].MAP_LEGEND_AREA_PADDING_WIDE,d=r["default"].MAP_LEGEND_PADDING_BTW_GRAPH_AND_WEDGE,f=r["default"].MAP_LEGEND_GRAPH_SIZE,m=r["default"].MAP_LEGEND_LABEL_PADDING,g=r["default"].VERTICAL_MAP_LEGEND_HEIGHT,y=r["default"].MAP_LEGEND_TOOLTIP_VERTICAL_PADDING,_=r["default"].MAP_LEGEND_AREA_PADDING_NARROW,v=r["default"].HORIZONTAL_MAP_LEGEND_WIDTH;e["default"]={_makeVerticalDimension:function(t,e,i){var o=s["default"].getRenderedLabelWidth(t,i),n=s["default"].getRenderedLabelWidth(e,i),r=s["default"].getRenderedLabelWidth(t,i),a=l["default"].sum([2*h,r,p]);return{width:l["default"].sum([c,a,d,f,m,Math.max(o,n)]),height:g}},_makeHorizontalDimension:function(t,e,i,o){var n=s["default"].getRenderedLabelHeight(t,e),r=l["default"].sum([2*y,n,p]),a=i?_:c,u=o?c:0;return{width:v,height:l["default"].sum([a,r,d,f,m,n,m,u])}}}},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var r=i(121),a=o(r),s=i(123),u=o(s),l=i(124),h=o(l),p=i(16),c=o(p),d=i(8),f=o(d),m=i(7),g=o(m),y=function(){function t(e){n(this,t),this.chartType=e.chartType,this.seriesTypes=e.seriesTypes,this.dataProcessor=e.dataProcessor,this.boundsModel=e.boundsModel,this.options=e.options,this.theme=e.theme,this.hasRightYAxis=!!e.hasRightYAxis,this.prevValidLabelCount=null,this.initScaleData(e.addedDataCount),this.initForAutoTickInterval()}return t.prototype.initScaleData=function(t){this.scaleDataMap={},this.axisDataMap={},this.addedDataCount=t},t.prototype.initForAutoTickInterval=function(){this.firstTickCount=null},t.prototype._pickLimitOption=function(t){return t=t||{},{min:t.min,max:t.max}},t.prototype._createBaseScaleData=function(t,e,i,o){var n=t.chartType,r="xAxis"!==t.areaType,s=this.dataProcessor.createBaseValuesForLimit(n,o.isSingleYAxis,e.stackType,t.valueType,t.areaType),u=this.boundsModel.getBaseSizeForLimit(r),l=Object.assign(e,{isVertical:r,limitOption:this._pickLimitOption(i),tickCounts:o.tickCounts,showLabel:this.options.series.showLabel});return c["default"].isBubbleChart(n)&&(l.overflowItem=this.dataProcessor.findOverflowItem(n,t.valueType)),(c["default"].isMapChart(n)||c["default"].isHeatmapChart(n)||c["default"].isTreemapChart(n))&&(l.useSpectrumLegend=!0), +a["default"].makeScaleData(s,u,n,l)},t.prototype._createScaleLabels=function(t,e,i,o){var n=this.dataProcessor.getFormatFunctions(),r=Object.assign(i,{dateFormat:o});return u["default"].createFormattedLabels(t,e,r,n)},t.prototype._createScaleData=function(t,e,i){var o=this.options.series,n=e.chartType||this.chartType;e.chartType=n,o=o[n]||o;var r={stackType:i.stackType||o.stackType,diverging:o.diverging,type:t.type},a=this._createBaseScaleData(e,r,t,i);return g["default"].extend(a,{labels:this._createScaleLabels(a,e,r,t.dateFormat),axisOptions:t})},t.prototype._createValueAxisData=function(t,e,i,o,n){var r=this.dataProcessor.hasCategories(),a=!o&&!r&&i,s=t.labels,u=t.limit,l=t.step,p=s.length,c=h["default"].makeValueAxisData({labels:s,tickCount:s.length,limit:u,step:l,labelTheme:e,aligned:i,options:t.axisOptions,isVertical:!!o,isPositionRight:!!n});if(a){var d=this.dataProcessor.getValues(this.chartType,"x"),f=h["default"].makeAdditionalDataForCoordinateLineType(s,d,u,l,p);g["default"].extend(c,f)}return c},t.prototype._createLabelAxisData=function(t,e,i,o,n){var r=t.categories||this.dataProcessor.getCategories(o);return h["default"].makeLabelAxisData({labels:r,options:t,labelTheme:e,aligned:i,isVertical:!!o,isPositionRight:!!n,addedDataCount:this.options.series.shifting?this.addedDataCount:0})},t.prototype._createAxisData=function(t,e,i,o,n){var r=c["default"].isLineTypeChart(this.chartType,this.seriesTypes)&&!e.pointOnColumn,a=void 0;return a=t?this._createValueAxisData(t,i,r,o,n):this._createLabelAxisData(e,i,r,o,n)},t.prototype._createAxesData=function(){var t=this.scaleDataMap,e=this.options,i=this.theme,o=g["default"].isArray(e.yAxis)?e.yAxis:[e.yAxis],n={};return n.xAxis=this._createAxisData(t.xAxis,e.xAxis,i.xAxis.label),n.yAxis=this._createAxisData(t.yAxis,o[0],i.yAxis.label,!0),this.hasRightYAxis&&(n.rightYAxis=this._createAxisData(t.rightYAxis,o[1],i.yAxis.label,!0,!0),n.rightYAxis.aligned||(n.rightYAxis.aligned=n.yAxis.aligned)),n},t.prototype.addScale=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i.areaType=i.areaType||t,i.chartType=o.chartType||i.chartType,this.scaleDataMap[t]=this._createScaleData(e,i,o)},t.prototype.setAxisDataMap=function(){this.axisDataMap=this._createAxesData()},t.prototype.updateXAxisDataForAutoTickInterval=function(t,e){var i=this.options.series.shifting,o=this.options.series.zoomable,n=this.axisDataMap.xAxis,r=this.boundsModel.getDimension("series").width,a=this.addedDataCount;i||!t||o?h["default"].updateLabelAxisDataForAutoTickInterval(n,r,a,e):h["default"].updateLabelAxisDataForStackingDynamicData(n,t,this.firstTickCount),this.firstTickCount||(this.firstTickCount=n.tickCount)},t.prototype.updateXAxisDataForLabel=function(t){var e=this.axisDataMap.xAxis,i=this.boundsModel.getDimensionMap(["series","yAxis","chart"]),o=e.isLabelAxis,n=this.theme.xAxis.label,r=void 0,a=void 0,s=e.labels;t&&(s=s.slice(0,s.length-1)),s=f["default"].addPrefixSuffix(s,this.options.xAxis.prefix,this.options.xAxis.suffix);var u=g["default"].filter(s,function(t){return!!t});r=g["default"].isNull(this.prevValidLabelCount)?u.length:this.prevValidLabelCount,this.options.yAxis.isCenter&&(r+=1,i.yAxis.width=0),a=e.options.rotateLabel===!1?h["default"].makeAdditionalDataForMultilineLabels(s,r,n,o,i):h["default"].makeAdditionalDataForRotatedLabels(u,r,n,o,i),this.prevValidLabelCount=r,g["default"].extend(e,a)},t.prototype._findLimit=function(t,e,i){var o=void 0;return o=0===e?i?t.yAxis:t.xAxis:t.rightYAxis?t.rightYAxis:t.yAxis},t.prototype.makeLimitMap=function(t,e){var i=this,o=this.scaleDataMap,n={};return o.xAxis&&(n.xAxis=o.xAxis.limit),o.yAxis&&(n.yAxis=o.yAxis.limit),o.rightYAxis&&(n.rightYAxis=o.rightYAxis.limit),o.legend&&(n.legend=o.legend.limit),t.forEach(function(t,o){n[t]=i._findLimit(n,o,e)}),n},t}();e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var n=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(u){n=!0,r=u}finally{try{!o&&s["return"]&&s["return"]()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=i(9),a=o(r),s=i(16),u=o(s),l=i(25),h=o(l),p=i(11),c=o(p),d=i(122),f=o(d),m=i(7),g=o(m),y={_makeLimitForDivergingOption:function(t){var e=Math.max(Math.abs(t.min),Math.abs(t.max));return{min:-e,max:e}},_adjustLimitForOverflow:function(t,e,i){var o=t.min,n=t.max;return i.min&&(o=h["default"].subtract(o,e)),i.max&&(n=h["default"].add(n,e)),{min:o,max:n}},millisecondMap:{year:31536e6,month:26784e5,week:6048e5,date:864e5,hour:36e5,minute:6e4,second:1e3},millisecondTypes:["year","month","week","date","hour","minute","second"],_findDateType:function(t,e){var i=t.max-t.min,o=this.millisecondTypes,n=this.millisecondMap,r=o.length-1,s=void 0;return i?o.every(function(t,a){var u=n[t],l=Math.floor(i/u),h=void 0;return l&&(h=a0?e.min=0:0===o?e.max=10:e.max=0}else 0===e.min&&0===e.max?e.max=10:e.min===e.max&&(e.min-=e.min/10,e.max+=e.max/10);return e},_calculateDatetimeScale:function(t,e,i){var o=this._makeDatetimeInfo(this._getLimitSafely(t),t.length),n=o.dataLimit;i&&(n=this._makeLimitForDivergingOption(n));var r=(0,f["default"])({min:n.min,max:n.max,offsetSize:e,minimumStepSize:1});return r=this._restoreScaleToDatetimeType(r,o.minDate,o.divisionNumber)},_calculatePercentStackedScale:function(t,e){var i=void 0;return i=0===h["default"].sumMinusValues(t)?a["default"].PERCENT_STACKED_AXIS_SCALE:0===h["default"].sumPlusValues(t)?a["default"].MINUS_PERCENT_STACKED_AXIS_SCALE:e?a["default"].DIVERGING_PERCENT_STACKED_AXIS_SCALE:a["default"].DUAL_PERCENT_STACKED_AXIS_SCALE},_calculateCoordinateScale:function(t){var e=t.options,i=e.limitOption,o=void 0===i?{}:i,n=e.useSpectrumLegend,r=t.baseSize,a=t.overflowItem,s=t.chartType,l=this._getLimitSafely(t.baseValues),h=g["default"].isExisty(o.min),p=g["default"].isExisty(o.max),c=l.min,d=l.max,m=void 0,y=t.options.stepCount;h&&(c=o.min,y=null),p&&(d=o.max,y=null);var _=(0,f["default"])({min:c,max:d,stepCount:y,offsetSize:r});return n||(m=this._isOverflowed(a,_,l,h,p)),m&&!u["default"].isMapTypeChart(s)&&(_.limit=this._adjustLimitForOverflow(_.limit,_.step,m)),t.isDiverging&&(_.limit=this._makeLimitForDivergingOption(_.limit)),_},_isOverflowed:function(t,e,i,o,n){var r=!(!t||!t.minItem),a=!(!t||!t.maxItem),s=e.limit,u=r||!o&&s.min===i.min&&0!==s.min,l=a||!n&&s.max===i.max&&0!==s.max;return u||l?{min:u,max:l}:null},makeScaleData:function(t,e,i,o){var n=void 0,r=u["default"].isDivergingChart(i,o.diverging),a=o.overflowItem;return u["default"].isPercentStackChart(i,o.stackType)?n=this._calculatePercentStackedScale(t,r):u["default"].isDatetimeType(o.type)?n=this._calculateDatetimeScale(t,e,r):(u["default"].isRadialChart(i)&&(o.stepCount=Math.floor(e/100)),n=this._calculateCoordinateScale({baseValues:t,baseSize:e,overflowItem:a,isDiverging:r,chartType:i,options:o})),n}};e["default"]=y},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){var e=0===t?1:Math.log(Math.abs(t))/Math.LN10;return Math.pow(10,Math.floor(e))}function r(t){for(var e=void 0,i=0,o=f.length;i1?1:1/r,s=i*a,u=e,l=!1;return e=Math.ceil(e*a/s)*s/a,l=s/2>e-u,o&&l&&(e+=s),t=t>i?Math.floor(t*a/s)*s/a:t<0?-(Math.ceil(Math.abs(t)*a/s)*s)/a:0,{min:t,max:e}}function u(t,e){var i=1/Math.min(n(t),n(e));return Math.ceil(t*i/(e*i))}function l(t,e){var i=a(t.step),o=s(t.limit.min,t.limit.max,i,e),n=Math.abs(o.max-o.min),r=u(n,i);return{limit:{min:o.min,max:o.max},step:i,stepCount:r}}function h(t,e,i,o,n){var r=Math.abs(e-t),a=r/i;o||(o=Math.ceil(i/m));var s=i/o,u=a*s;return d["default"].isNumber(n)&&ui.labelInterval&&(n=this._makeLabelsByIntervalOption(t.labels,i.labelInterval,t.addedDataCount)),u["default"].isDatetimeType(i.type)&&(n=f["default"].formatDates(n,i.dateFormat)),t.aligned||(o+=1),{labels:n,tickCount:o,validTickCount:o,isLabelAxis:!0,options:i,isVertical:!!t.isVertical,isPositionRight:!!t.isPositionRight,aligned:!!t.aligned}},makeValueAxisData:function(t){var e=t.labels,i=t.tickCount,o=t.limit,n=t.step,r=t.options,a=t.isVertical,s=t.isPositionRight,u=t.aligned,l={labels:e,tickCount:i,limit:o,step:n,options:r,validTickCount:i,dataMin:o.min,distance:o.max-o.min,isVertical:!!a,isPositionRight:!!s,aligned:!!u};return l},makeAdditionalDataForCoordinateLineType:function(t,e,i,o,n){var r=g["default"].min(e),a=g["default"].max(e),s=a-r,u=0,l=1;return s&&(i.mina&&(i.max-=o,l-=(a-i.max)/s,n-=1,t.pop())),{labels:t,tickCount:n,limit:i,distance:s,positionRatio:u,sizeRatio:l,validTickCount:n,dataMin:r}},_makeAdjustingIntervalInfo:function(t,e,i){var o=void 0,n=parseInt(e/i,10),r=null,a=parseInt(t/n,10);return a>1&&(o=t-a*n,o>=a&&(n+=parseInt(o/a,0),o%=a),r={blockCount:n,beforeRemainBlockCount:o,interval:a}),r},_makeCandidatesForAdjustingInterval:function(t,e){var i=this,o=[],n=c["default"].divisors(t);if(n.forEach(function(i){var n=i/t*e;n>=v&&n<=T&&o.push({interval:i,blockCount:t/i,beforeRemainBlockCount:0})}),0===o.length){var r=_["default"].range(v,T,b);o=r.map(function(o){return i._makeAdjustingIntervalInfo(t,e,o)})}return o.filter(function(t){return!!t})},_calculateAdjustingIntervalInfo:function(t,e){var i=this._makeCandidatesForAdjustingInterval(t,e),o=null;return i.length&&(o=g["default"].max(i,function(t){return t.blockCount})),o},_makeFilteredLabelsByInterval:function(t,e,i){return t.slice(e).filter(function(t,e){return e%i===0})},updateLabelAxisDataForAutoTickInterval:function(t,e,i,o){o&&(t.tickCount-=1,t.labels.pop());var n=t.tickCount-1,r=this._calculateAdjustingIntervalInfo(n,e);if(r){t.eventTickCount=t.tickCount;var a=r.blockCount,s=r.beforeRemainBlockCount,u=r.interval,l=a+1,h=0,p=t.labels[t.labels.length-1];t.labels=this._makeFilteredLabelsByInterval(t.labels,h,u),s>0&&t.labels.push(p),_["default"].extend(t,{startIndex:h,tickCount:l,interval:u,positionRatio:h/n,sizeRatio:1-s/n,remainLastBlockInterval:s})}},updateLabelAxisDataForStackingDynamicData:function(t,e,i){var o=e.interval,n=e.startIndex,r=t.tickCount-1,a=i?i-1:0,s=r/o;a&&2*a<=s&&(o*=2),t.labels=this._makeFilteredLabelsByInterval(t.labels,n,o),s=t.labels.length-1;var u=r-o*s;_["default"].extend(t,{startIndex:n,interval:o,eventTickCount:t.tickCount,tickCount:t.labels.length,positionRatio:n/r,sizeRatio:1-u/r})},_calculateXAxisLabelAreaWidth:function(t,e,i){return t||(i-=1),e/i},_createMultilineLabel:function(t,e,i){var o=String(t).split(/\s+/),r=[],a=n(o,1),s=a[0];return o.slice(1).forEach(function(t){var o=f["default"].getRenderedLabelWidth(s+" "+t,i);o>e?(r.push(s),s=t):s+=" "+t}),s&&r.push(s),r.join("
")},_createMultilineLabels:function(t,e,i){var o=this._createMultilineLabel;return t.map(function(t){return o(t,i,e)})},_calculateMultilineHeight:function(t,e,i){return f["default"].getRenderedLabelsMaxHeight(t,Object.assign({cssText:"line-height:1.2;width:"+i+"px"},e))},makeAdditionalDataForMultilineLabels:function(t,e,i,o,n){var r=n.series.width,a=this._calculateXAxisLabelAreaWidth(o,r,e),s=this._createMultilineLabels(t,i,r),u=this._calculateMultilineHeight(s,i,a),l=f["default"].getRenderedLabelsMaxHeight(t,i);return{multilineLabels:s,overflowHeight:u-l,overflowLeft:a/2-n.yAxis.width}},_findRotationDegree:function(t,e,i){var o=null;return a["default"].DEGREE_CANDIDATES.every(function(n){var r=h["default"].calculateRotatedWidth(n,e,i);return o=n,!(r<=t)}),o},_calculateRotatedWidth:function(t,e,i,o){var n=f["default"].getRenderedLabelWidth(e,o),r=h["default"].calculateRotatedWidth(t,n,i);return r-=h["default"].calculateAdjacent(a["default"].ANGLE_90-t,i/2)},_calculateLimitWidth:function(t,e,i){var o=t;return e&&(o+=i/2),o},makeAdditionalDataForRotatedLabels:function(t,e,i,o,n){var r=f["default"].getRenderedLabelsMaxWidth(t,i),s=n.series.width,u=n.yAxis.width+n.rightYAxis?n.rightYAxis.width:0,l=this._calculateXAxisLabelAreaWidth(o,s,e),p=null,c=2*a["default"].CHART_PADDING+u+s;if(l1&&void 0!==arguments[1]?arguments[1]:{},i={};return t.forEach(function(t,o){i[t]=e[o]||e}),i},e.prototype.addData=function(t,e){this._dynamicDataHelper.addData(t,e)},e.prototype._setAdditionalOptions=function(t){var e=this.dataProcessor;Object.entries(this.options.series).forEach(function(i){var o=s(i,2),n=o[0],r=o[1];if(r.stackType){var a=e.findChartType(n);d["default"].isAllowedStackOption(a)&&(t.chartType=a,t.stackType=r.stackType)}})},e.prototype.addDataRatios=function(t){var e=this,i=this.chartTypes||[this.chartType],o=this.options.series||{},n=void 0;n=this.dataProcessor.isCoordinateType()?function(i){e.dataProcessor.addDataRatiosForCoordinateType(i,t,!1)}:function(i){var n=o[i]||o,r=n.stackType;e.dataProcessor.addDataRatios(t[i],r,i)},v["default"].forEachArray(i,n)},e.prototype.addPlotLine=function(t){this.componentManager.get("plot").addPlotLine(t)},e.prototype.addPlotBand=function(t){this.componentManager.get("plot").addPlotBand(t)},e.prototype.removePlotLine=function(t){this.componentManager.get("plot").removePlotLine(t)},e.prototype.removePlotBand=function(t){this.componentManager.get("plot").removePlotBand(t)},e.prototype._renderForZoom=function(t){var e=this.readyForRender();this.componentManager.render("zoom",e,{isResetZoom:t})},e.prototype.onZoom=function(t){this._dynamicDataHelper.pauseAnimation(),this.dataProcessor.updateRawDataForZoom(t),this._renderForZoom(!1)},e.prototype.onResetZoom=function(){var t=this.dataProcessor.getOriginalRawData();this._dynamicDataHelper.checkedLegends&&(t=p["default"].filterCheckedRawData(t,this._dynamicDataHelper.checkedLegends)),this.dataProcessor.initData(t),this.dataProcessor.initZoomedRawData(),this.dataProcessor.addDataFromRemainDynamicData(v["default"].pick(this.options.series,"shifting")),this._renderForZoom(!0),this._dynamicDataHelper.restartAnimation()},e}(l["default"]);e["default"]=T},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,seriesTypes:c["default"].keys(i.series).sort(),chartTypes:["pie","pie"],isVertical:!0}));return s.className="tui-combo-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pie1Series","pieSeries"),this.componentManager.register("pie2Series","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){var t=this,e=this.seriesTypes||[this.chartType];e.forEach(function(e){t.dataProcessor.addDataRatiosOfPieChart(e)})},e.prototype.onChangeCheckedLegends=function(t){var e=this.dataProcessor.getOriginalRawData(),i=h["default"].filterCheckedRawData(e,t);u["default"].prototype.onChangeCheckedLegends.call(this,t,i,{seriesTypes:this.seriesTypes})},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION);var s=r(this,t.call(this,{rawData:i,theme:o,options:a}));return s.className="tui-pie-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("pieSeries","pieSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(){this.dataProcessor.addDataRatiosOfPieChart(this.chartType)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e),a=Object.assign({tooltip:{},circleLegend:{}},a),a.circleLegend=Object.assign({visible:!0},a.circleLegend),a.tooltip=Object.assign({align:h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION,grouped:!1},a.tooltip);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-bubble-chart",s}return a(e,t),e.prototype.getScaleOption=function(){var t={};return this.dataProcessor.hasXValue(this.chartType)&&(t.xAxis={valueType:"x"}),this.dataProcessor.hasYValue(this.chartType)&&(t.yAxis={valueType:"y"}),t},e.prototype._setDefaultOptions=function(t){u["default"].prototype._setDefaultOptions.call(this,t),this.options.circleLegend=this.options.circleLegend||{},c["default"].isUndefined(this.options.circleLegend.visible)&&(this.options.circleLegend.visible=!0)},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("circleLegend","circleLegend"),this.componentManager.register("bubbleSeries","bubbleSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!0)},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(9),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=h["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0}));return s.className="tui-scatter-chart",s}return a(e,t),e.prototype.getScaleOption=function(){return{xAxis:{valueType:"x"},yAxis:{valueType:"y"}}},e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("scatterSeries","scatterSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatiosForCoordinateType(this.chartType,t,!1)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(138),h=o(l),p=i(9),c=o(p),d=function(t){function e(i,o,a){n(this,e),a.tooltip=a.tooltip||{},a.tooltip.align||(a.tooltip.align=c["default"].TOOLTIP_DEFAULT_ALIGN_OPTION),a.tooltip.grouped=!1;var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-heatmap-chart",s}return a(e,t),e.prototype._addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this._addComponentsForAxisType({axis:[{name:"yAxis",isVertical:!0},{name:"xAxis"}],legend:{classType:"spectrumLegend",additionalParams:{colorSpectrum:e}},series:[{name:"heatmapSeries",data:{colorSpectrum:e}}],tooltip:!0,mouseEventDetector:!0})},e.prototype.getScaleOption=function(){return{legend:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t.legend,null,this.chartType)},e.prototype.addComponents=function(){var t=this.theme.series[this.chartType],e=new h["default"](t.startColor,t.endColor);this.componentManager.register("title","title"),this.componentManager.register("legend","spectrumLegend",{colorSpectrum:e}),this.componentManager.register("heatmapSeries","heatmapSeries",{colorSpectrum:e}),this.componentManager.register("xAxis","axis"),this.componentManager.register("yAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip",{colorSpectrum:e}),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);ee)return String(t);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=e.commandType,o=e.coordinate;i&&o&&t.push({type:i,coordinate:o})},t.prototype._makeCoordinatesFromPath=function(t){var e=this,i=this._splitPath(t),o={x:0,y:0};return i.map(function(t){var i=e.commandFuncMap[t.type],n=i(t.coordinate,o);return h["default"].extend(o,n),n})},t.prototype._findBoundFromCoordinates=function(t){var e=h["default"].pluck(t,"x").filter(function(t){return!h["default"].isUndefined(t)}),i=h["default"].pluck(t,"y").filter(function(t){return!h["default"].isUndefined(t)}),o=u["default"].max(e),n=u["default"].min(e),r=u["default"].max(i),a=u["default"].min(i);return{dimension:{width:o-n,height:r-a},position:{left:n,top:a}}},t.prototype._makeLabelPosition=function(t,e){return e=e||a["default"].MAP_CHART_LABEL_DEFAULT_POSITION_RATIO,{left:t.position.left+t.dimension.width*e.x,top:t.position.top+t.dimension.height*e.y}},t.prototype._createMapData=function(t){var e=this;return t.map(function(t){var i=e._makeCoordinatesFromPath(t.path),o=e._findBoundFromCoordinates(i),n=e.dataProcessor.getValueMapDatum(t.code),r=void 0,a=void 0,s=void 0,u=void 0;n&&(s=n.label,u=n.ratio,r=n.name||t.name,a=n.labelCoordinate||t.labelCoordinate);var l={code:t.code,name:r,path:t.path,bound:o,labelPosition:e._makeLabelPosition(o,a)};return s&&(l.label=s),u>=0&&(l.ratio=u),l})},t.prototype.getMapData=function(){return this.mapData||(this.mapData=this._createMapData(this.rawMapData)),this.mapData},t.prototype.getDatum=function(t){return this.getMapData()[t]},t.prototype.getLabelData=function(t){var e=this,i=this.getMapData(),o=i.filter(function(t){return e.dataProcessor.getValueMapDatum(t.code)});return o.map(function(e){return{name:e.name,labelPosition:{left:e.labelPosition.left*t,top:e.labelPosition.top*t}}})},t.prototype._makeMapDimension=function(){var t=this.getMapData(),e=t.map(function(t){return t.bound.position.left}),i=t.map(function(t){return t.bound.position.left+t.bound.dimension.width}),o=t.map(function(t){return t.bound.position.top}),n=t.map(function(t){return t.bound.position.top+t.bound.dimension.height});return{width:u["default"].max(i)-u["default"].min(e),height:u["default"].max(n)-u["default"].min(o)}},t.prototype.getMapDimension=function(){return this.mapDimension||(this.mapDimension=this._makeMapDimension()),this.mapDimension},t}();e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(103),u=o(s),l=i(8),h=o(l),p=i(7),c=o(p),d=function(t){function e(i,o,a){n(this,e);var s=r(this,t.call(this));return s.rawData=i,s.options=a,s}return a(e,t),e.prototype.initData=function(t){this.rawData=t,this.valueMap=null},e.prototype._makeValueMap=function(){var t=this.rawData.series.map,e={},i=this._findFormatFunctions();return t.forEach(function(t){var o={value:t.data,label:h["default"].formatValue({value:t.data,formatFunctions:i,chartType:"map",areaType:"series"})};t.name&&(o.name=t.name),t.labelCoordinate&&(o.labelCoordinate=t.labelCoordinate),e[t.code]=o}),e},e.prototype.getValueMap=function(){return this.valueMap||(this.valueMap=this._makeValueMap()),this.valueMap},e.prototype.getValues=function(){return c["default"].pluck(this.getValueMap(),"value")},e.prototype.getValueMapDatum=function(t){return this.getValueMap()[t]},e.prototype.addDataRatios=function(t){var e=t.min,i=t.max-e,o=Object.values(this.getValueMap());o.forEach(function(t){t.ratio=(t.value-e)/i})},e.prototype.createBaseValuesForLimit=function(){return this.getValues()},e.prototype.getLegendVisibility=function(){return null},e}(u["default"]);e["default"]=d},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(86),h=o(l),p=function(t){function e(i,o,a){n(this,e),a.tooltip&&(a.tooltip.grouped=!1);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-radial-chart",s.Series=h["default"],s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("legend","legend"),this.componentManager.register("plot","radialPlot"),this.componentManager.register("radialSeries","radialSeries"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e.prototype.getScaleOption=function(){return{yAxis:{}}},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); +return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=function(t){function e(i,o,a){n(this,e),h["default"].appendOutliersToSeriesData(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!0}));return s.className="tui-boxplot-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("boxplotSeries","boxplotSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu"),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return{yAxis:!0}},e.prototype.onChangeCheckedLegends=function(t){var e=void 0;this.hasRightYAxis&&(e={optionChartTypes:["boxplot","boxplot"]}),u["default"].prototype.onChangeCheckedLegends.call(this,t,null,e)},e.prototype.addDataRatios=function(t){var e=this.options.series,i=void 0===e?{}:e,o=this.chartType,n=i[o]||i,r=n.stackType;this.dataProcessor.addDataRatios(t[o],r,o)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=i(44),u=o(s),l=i(33),h=o(l),p=function(t){function e(i,o,a){n(this,e),h["default"]._makeRawSeriesDataForBulletChart(i);var s=r(this,t.call(this,{rawData:i,theme:o,options:a,hasAxes:!0,isVertical:!!a.series.vertical}));return s.className="tui-bullet-chart",s}return a(e,t),e.prototype.addComponents=function(){this.componentManager.register("title","title"),this.componentManager.register("plot","plot"),this.componentManager.register("legend","legend"),this.componentManager.register("bulletSeries","bulletSeries"),this.componentManager.register("yAxis","axis"),this.componentManager.register("xAxis","axis"),this.componentManager.register("chartExportMenu","chartExportMenu",{chartType:"bullet"}),this.componentManager.register("tooltip","tooltip"),this.componentManager.register("mouseEventDetector","mouseEventDetector")},e.prototype.getScaleOption=function(){return this.isVertical?{yAxis:!0}:{xAxis:!0}},e.prototype.addDataRatios=function(t){this.dataProcessor.addDataRatios(t[this.chartType],null,this.chartType)},e}(u["default"]);e["default"]=p},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var n=i(9),r=o(n),a=i(35),s=o(a),u=i(36),l=o(u);s["default"].register(r["default"].DEFAULT_THEME_NAME,l["default"])},function(t,e){}])}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 8124ceb5d..ed00bf9b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tui-chart", - "version": "3.3.1", + "version": "3.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -38,14 +38,14 @@ } }, "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", "dev": true }, "acorn-jsx": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", "dev": true, "requires": { @@ -54,7 +54,7 @@ "dependencies": { "acorn": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "resolved": "http://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", "dev": true } @@ -159,7 +159,7 @@ "dependencies": { "async": { "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.9.2.tgz", "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", "dev": true }, @@ -183,7 +183,7 @@ }, "lodash": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.2.0.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.2.0.tgz", "integrity": "sha1-S/UKMkP5rrC6xBpV09WZBnWkYvs=", "dev": true }, @@ -198,7 +198,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -240,6 +240,12 @@ "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -336,6 +342,12 @@ "integrity": "sha1-7nQAlBMALYTOxyGcasgRgS5yMWA=", "dev": true }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, "ast-types": { "version": "0.9.6", "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz", @@ -344,7 +356,7 @@ }, "async": { "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, @@ -361,6 +373,12 @@ "dev": true, "optional": true }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, "autoprefixer": { "version": "6.7.7", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", @@ -368,7 +386,7 @@ "dev": true, "requires": { "browserslist": "1.7.7", - "caniuse-db": "1.0.30000874", + "caniuse-db": "1.0.30000890", "normalize-range": "0.1.2", "num2fraction": "1.2.2", "postcss": "5.2.18", @@ -415,10 +433,10 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -437,7 +455,7 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "source-map": "0.5.7", "trim-right": "1.0.1" } @@ -463,7 +481,7 @@ "babel-helper-function-name": "6.24.1", "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-helper-function-name": { @@ -517,7 +535,7 @@ "requires": { "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-helper-replace-supers": { @@ -602,7 +620,7 @@ "babel-template": "6.26.0", "babel-traverse": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-plugin-transform-es2015-classes": { @@ -897,7 +915,7 @@ "babel-runtime": "6.26.0", "core-js": "2.5.7", "home-or-tmp": "2.0.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "mkdirp": "0.5.1", "source-map-support": "0.4.18" } @@ -928,7 +946,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-traverse": { @@ -945,7 +963,7 @@ "debug": "2.6.9", "globals": "9.18.0", "invariant": "2.2.4", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-types": { @@ -956,7 +974,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.10", + "lodash": "4.17.11", "to-fast-properties": "1.0.3" } }, @@ -978,6 +996,73 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, "base62": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/base62/-/base62-1.2.8.tgz", @@ -1020,7 +1105,7 @@ }, "benchmark": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz", "integrity": "sha1-Lx4vpMNZ8REiqhgwgiGOlX45DHM=", "dev": true }, @@ -1040,14 +1125,14 @@ "dev": true }, "binary-extensions": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", - "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.12.0.tgz", + "integrity": "sha512-DYWGk01lDcxeS/K9IHPGWfT8PsJmbXRtRd2Sx72Tnb8pcYZQFF1oSDb8hJtS1vhp212q1Rzi5dUf9+nq0o9UIg==", "dev": true }, "bl": { "version": "0.9.5", - "resolved": "https://registry.npmjs.org/bl/-/bl-0.9.5.tgz", + "resolved": "http://registry.npmjs.org/bl/-/bl-0.9.5.tgz", "integrity": "sha1-wGt5evCF6gC8Unr8jvzxHeIjIFQ=", "dev": true, "requires": { @@ -1062,7 +1147,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -1087,9 +1172,9 @@ "dev": true }, "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz", + "integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==", "dev": true }, "body-parser": { @@ -1108,6 +1193,17 @@ "qs": "6.5.2", "raw-body": "2.3.3", "type-is": "1.6.16" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": "2.1.2" + } + } } }, "boolbase": { @@ -1143,12 +1239,12 @@ "requires": { "expand-range": "1.8.2", "preserve": "0.2.0", - "repeat-element": "1.1.2" + "repeat-element": "1.1.3" } }, "browserify-aes": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-0.4.0.tgz", + "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-0.4.0.tgz", "integrity": "sha1-BnFJtmjfMcS1hTPgLQHoBthgjiw=", "dev": true, "requires": { @@ -1170,13 +1266,13 @@ "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", "dev": true, "requires": { - "caniuse-db": "1.0.30000874", - "electron-to-chromium": "1.3.55" + "caniuse-db": "1.0.30000890", + "electron-to-chromium": "1.3.77" } }, "buffer": { "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "resolved": "http://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { @@ -1243,9 +1339,9 @@ "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", "dev": true, "requires": { - "bluebird": "3.5.1", - "chownr": "1.0.1", - "glob": "7.1.2", + "bluebird": "3.5.2", + "chownr": "1.1.1", + "glob": "7.1.3", "graceful-fs": "4.1.11", "lru-cache": "4.1.3", "mississippi": "2.0.0", @@ -1254,10 +1350,35 @@ "promise-inflight": "1.0.1", "rimraf": "2.6.2", "ssri": "5.3.0", - "unique-filename": "1.1.0", + "unique-filename": "1.1.1", "y18n": "4.0.0" } }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "caller-path": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", @@ -1302,15 +1423,15 @@ "dev": true, "requires": { "browserslist": "1.7.7", - "caniuse-db": "1.0.30000874", + "caniuse-db": "1.0.30000890", "lodash.memoize": "4.1.2", "lodash.uniq": "4.5.0" } }, "caniuse-db": { - "version": "1.0.30000874", - "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000874.tgz", - "integrity": "sha1-Se3AJi79xsSdTZYrsW0fDHkPpE4=", + "version": "1.0.30000890", + "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000890.tgz", + "integrity": "sha512-aO5uw1Taw8GkNMMXIWOz/WJz3y6tR1ETUAdH/pvO5EoJ3I1Po9vNJd9aMjY1GKucS/OXWMiQbXRbk3O1sgCbRA==", "dev": true }, "caseless": { @@ -1340,7 +1461,7 @@ }, "chalk": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { @@ -1395,7 +1516,7 @@ "is-binary-path": "1.0.1", "is-glob": "2.0.1", "path-is-absolute": "1.0.1", - "readdirp": "2.1.0" + "readdirp": "2.2.1" }, "dependencies": { "is-extglob": { @@ -1416,9 +1537,9 @@ } }, "chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", + "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", "dev": true }, "circular-json": { @@ -1436,6 +1557,35 @@ "chalk": "1.1.3" } }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "cli-cursor": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", @@ -1497,30 +1647,40 @@ "integrity": "sha1-beEI2k25qzaPjvepuCJSinRRODA=", "dev": true }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, "color": { "version": "0.11.4", - "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz", + "resolved": "http://registry.npmjs.org/color/-/color-0.11.4.tgz", "integrity": "sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q=", "dev": true, "requires": { "clone": "1.0.4", - "color-convert": "1.9.2", + "color-convert": "1.9.3", "color-string": "0.3.0" } }, "color-convert": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", - "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { - "color-name": "1.1.1" + "color-name": "1.1.3" } }, "color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, "color-string": { @@ -1529,7 +1689,7 @@ "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", "dev": true, "requires": { - "color-name": "1.1.1" + "color-name": "1.1.3" } }, "colormin": { @@ -1555,12 +1715,12 @@ "integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=", "dev": true, "requires": { - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "combined-stream": { "version": "0.0.7", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", + "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz", "integrity": "sha1-ATfmV7qlp1QcV6w3rF/AfXO03B8=", "dev": true, "requires": { @@ -1568,9 +1728,9 @@ } }, "commander": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.0.tgz", - "integrity": "sha512-477o1hdVORiFlZxw8wgsXYCef3lh0zl/OV0FTftqiDxJSWw6dPQ2ipS4k20J2qBcsmsmLKSyr2iFrf9e3JGi4w==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", "dev": true }, "commondir": { @@ -1585,11 +1745,11 @@ "integrity": "sha1-NPw2cs0kOT6LtH5wyqApOBH08sU=", "dev": true, "requires": { - "commander": "2.17.0", + "commander": "2.19.0", "detective": "4.7.1", "glob": "5.0.15", "graceful-fs": "4.1.11", - "iconv-lite": "0.4.23", + "iconv-lite": "0.4.24", "mkdirp": "0.5.1", "private": "0.1.8", "q": "1.5.1", @@ -1618,9 +1778,9 @@ "dev": true }, "component-emitter": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", - "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", "dev": true }, "component-inherit": { @@ -1649,7 +1809,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -1668,12 +1828,12 @@ } }, "compressible": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.14.tgz", - "integrity": "sha1-MmxfUH+7BV9UEWeCuWmoG2einac=", + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.15.tgz", + "integrity": "sha512-4aE67DL33dSW9gw4CI2H/yTxqHLNcxp0yS6jB+4h+wr3e43+1z7vm0HU9qXOH8j+qjKuL8+UtkOxYQSMq60Ylw==", "dev": true, "requires": { - "mime-db": "1.35.0" + "mime-db": "1.36.0" } }, "compression": { @@ -1684,7 +1844,7 @@ "requires": { "accepts": "1.3.5", "bytes": "3.0.0", - "compressible": "2.0.14", + "compressible": "2.0.15", "debug": "2.6.9", "on-headers": "1.0.1", "safe-buffer": "5.1.2", @@ -1697,7 +1857,7 @@ "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.19", + "mime-types": "2.1.20", "negotiator": "0.6.1" } }, @@ -1773,10 +1933,13 @@ "dev": true }, "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", - "dev": true + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } }, "cookie": { "version": "0.3.1", @@ -1804,10 +1967,16 @@ "run-queue": "1.0.3" } }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, "copy-webpack-plugin": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.5.2.tgz", - "integrity": "sha512-zmC33E8FFSq3AbflTvqvPvBo621H36Afsxlui91d+QyZxPIuXghfnTsa1CuqiAaCPgJoSUWfTFbKJnadZpKEbQ==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.5.3.tgz", + "integrity": "sha512-VKCiNXQcc8zyznaepXfKpCH2cZD+/j3T3B+gsFY97P7qMlEsj34wr/sI9OCG7QPUUh7gAHVx3q8Q1rdQIDM4bA==", "dev": true, "requires": { "cacache": "10.0.4", @@ -1973,7 +2142,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -2013,7 +2182,7 @@ }, "crypto-browserify": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.3.0.tgz", + "resolved": "http://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.3.0.tgz", "integrity": "sha1-ufx1u0oO1h3PHNXa6W6zDJw+UGw=", "dev": true, "requires": { @@ -2025,13 +2194,13 @@ }, "css-color-names": { "version": "0.0.4", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "resolved": "http://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", "dev": true }, "css-loader": { "version": "0.25.0", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.25.0.tgz", + "resolved": "http://registry.npmjs.org/css-loader/-/css-loader-0.25.0.tgz", "integrity": "sha1-w/68jOKPTINXa2sTcH9H+Qw5AiM=", "dev": true, "requires": { @@ -2099,7 +2268,7 @@ }, "cssnano": { "version": "3.10.0", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz", + "resolved": "http://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz", "integrity": "sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg=", "dev": true, "requires": { @@ -2224,12 +2393,71 @@ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, "deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, "defined": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", @@ -2259,7 +2487,7 @@ "requires": { "array-union": "1.0.2", "arrify": "1.0.1", - "glob": "7.1.2", + "glob": "7.1.3", "object-assign": "4.1.1", "pify": "2.3.0", "pinkie-promise": "2.0.1" @@ -2306,7 +2534,7 @@ "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", "dev": true, "requires": { - "acorn": "5.7.1", + "acorn": "5.7.3", "defined": "1.0.0" } }, @@ -2426,9 +2654,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.3.55", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.55.tgz", - "integrity": "sha1-8VDhCyC3fZ1Br8yjEu/gw7Gn/c4=", + "version": "1.3.77", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.77.tgz", + "integrity": "sha512-XIfQcdU9L4qUte31fFATwptHodMH0Otf53N8y1AKxd1+79vR+2UYpLq+Z1Zbtbuy+w0xd7KwIUrvlnje/htiOg==", "dev": true }, "emojis-list": { @@ -2467,7 +2695,7 @@ "dependencies": { "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -2476,7 +2704,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } @@ -2502,9 +2730,15 @@ "yeast": "0.1.2" }, "dependencies": { + "component-emitter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", + "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "dev": true + }, "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -2513,7 +2747,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } @@ -2622,9 +2856,9 @@ } }, "es5-shim": { - "version": "4.5.10", - "resolved": "https://registry.npmjs.org/es5-shim/-/es5-shim-4.5.10.tgz", - "integrity": "sha512-vmryBdqKRO8Ei9LJ4yyEk/EOmAOGIagcHDYPpTAi6pot4IMHS1AC2q5cTKPmydpijg2iX8DVmCuqgrNxIWj8Yg==", + "version": "4.5.12", + "resolved": "https://registry.npmjs.org/es5-shim/-/es5-shim-4.5.12.tgz", + "integrity": "sha512-MjoCAHE6P2Dirme70Cxd9i2Ng8rhXiaVSsxDWdSwimfLERJL/ypR2ed2rTYkeeYrMk8gq281dzKLiGcdrmc8qg==", "dev": true }, "escape-html": { @@ -2681,7 +2915,7 @@ "chalk": "2.4.1", "concat-stream": "1.6.2", "cross-spawn": "5.1.0", - "debug": "3.1.0", + "debug": "3.2.6", "doctrine": "2.1.0", "eslint-scope": "3.7.3", "eslint-visitor-keys": "1.0.0", @@ -2690,8 +2924,8 @@ "esutils": "2.0.2", "file-entry-cache": "2.0.0", "functional-red-black-tree": "1.0.1", - "glob": "7.1.2", - "globals": "11.7.0", + "glob": "7.1.3", + "globals": "11.8.0", "ignore": "3.3.10", "imurmurhash": "0.1.4", "inquirer": "3.3.0", @@ -2699,7 +2933,7 @@ "js-yaml": "3.12.0", "json-stable-stringify-without-jsonify": "1.0.1", "levn": "0.3.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "minimatch": "3.0.4", "mkdirp": "0.5.1", "natural-compare": "1.4.0", @@ -2708,7 +2942,7 @@ "pluralize": "7.0.0", "progress": "2.0.0", "require-uncached": "1.0.3", - "semver": "5.5.0", + "semver": "5.6.0", "strip-ansi": "4.0.0", "strip-json-comments": "2.0.1", "table": "4.0.3", @@ -2727,7 +2961,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -2738,16 +2972,16 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "2.1.1" } }, "esprima": { @@ -2757,9 +2991,9 @@ "dev": true }, "globals": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", - "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", + "version": "11.8.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.8.0.tgz", + "integrity": "sha512-io6LkyPVuzCHBSQV9fmOwxZkUk6nIaGmxheLDgmuFv89j0fm2aqDbIXKAGfzCMHqz3HLF2Zf8WSG6VqMh2qFmA==", "dev": true }, "has-flag": { @@ -2778,6 +3012,12 @@ "esprima": "4.0.1" } }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", @@ -2788,9 +3028,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -2852,7 +3092,7 @@ "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", "dev": true, "requires": { - "acorn": "5.7.1", + "acorn": "5.7.3", "acorn-jsx": "3.0.1" } }, @@ -2909,14 +3149,14 @@ }, "events": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/events/-/events-1.1.1.tgz", "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", "dev": true }, "eventsource": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz", - "integrity": "sha1-Cs7ehJ7X3RzMMsgRuxG5RNTykjI=", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz", + "integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==", "dev": true, "requires": { "original": "1.0.2" @@ -2985,14 +3225,14 @@ } }, "express": { - "version": "4.16.3", - "resolved": "https://registry.npmjs.org/express/-/express-4.16.3.tgz", - "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", + "version": "4.16.4", + "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", + "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", "dev": true, "requires": { "accepts": "1.3.5", "array-flatten": "1.1.1", - "body-parser": "1.18.2", + "body-parser": "1.18.3", "content-disposition": "0.5.2", "content-type": "1.0.4", "cookie": "0.3.1", @@ -3010,9 +3250,9 @@ "parseurl": "1.3.2", "path-to-regexp": "0.1.7", "proxy-addr": "2.0.4", - "qs": "6.5.1", + "qs": "6.5.2", "range-parser": "1.2.0", - "safe-buffer": "5.1.1", + "safe-buffer": "5.1.2", "send": "0.16.2", "serve-static": "1.13.2", "setprototypeof": "1.1.0", @@ -3028,31 +3268,13 @@ "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.19", + "mime-types": "2.1.20", "negotiator": "0.6.1" } }, - "body-parser": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", - "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", - "dev": true, - "requires": { - "bytes": "3.0.0", - "content-type": "1.0.4", - "debug": "2.6.9", - "depd": "1.1.2", - "http-errors": "1.6.3", - "iconv-lite": "0.4.19", - "on-finished": "2.3.0", - "qs": "6.5.1", - "raw-body": "2.3.2", - "type-is": "1.6.16" - } - }, "finalhandler": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", "dev": true, "requires": { @@ -3065,68 +3287,12 @@ "unpipe": "1.0.0" } }, - "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", - "dev": true - }, "negotiator": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", "dev": true }, - "qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", - "dev": true - }, - "raw-body": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", - "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", - "dev": true, - "requires": { - "bytes": "3.0.0", - "http-errors": "1.6.2", - "iconv-lite": "0.4.19", - "unpipe": "1.0.0" - }, - "dependencies": { - "depd": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", - "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=", - "dev": true - }, - "http-errors": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", - "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", - "dev": true, - "requires": { - "depd": "1.1.1", - "inherits": "2.0.3", - "setprototypeof": "1.0.3", - "statuses": "1.4.0" - } - }, - "setprototypeof": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", - "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=", - "dev": true - } - } - }, - "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", - "dev": true - }, "statuses": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", @@ -3141,14 +3307,35 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "dev": true }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, "external-editor": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "dev": true, "requires": { "chardet": "0.4.2", - "iconv-lite": "0.4.23", + "iconv-lite": "0.4.24", "tmp": "0.0.33" } }, @@ -3252,8 +3439,8 @@ "requires": { "is-number": "2.1.0", "isobject": "2.1.0", - "randomatic": "3.0.0", - "repeat-element": "1.1.2", + "randomatic": "3.1.0", + "repeat-element": "1.1.3", "repeat-string": "1.6.1" } }, @@ -3330,9 +3517,9 @@ } }, "follow-redirects": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.2.tgz", - "integrity": "sha512-kssLorP/9acIdpQ2udQVTiCS5LQmdEz9mvdIfDcl1gYX2tPKFADHSyFdvJS040XdFsPzemWtgI3q8mFVCxtX8A==", + "version": "1.5.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.9.tgz", + "integrity": "sha512-Bh65EZI/RU8nx0wbYF9shkFZlqLP+6WT/5FnA3cE/djNSuKNHJEinGGZgu/cQEkeeb2GdFOgenAmn8qaqYke2w==", "dev": true, "requires": { "debug": "3.1.0" @@ -3383,7 +3570,7 @@ "dependencies": { "async": { "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.9.2.tgz", "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", "dev": true }, @@ -3410,6 +3597,15 @@ "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", "dev": true }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "0.2.2" + } + }, "fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", @@ -3460,7 +3656,7 @@ "dev": true, "optional": true, "requires": { - "nan": "2.10.0", + "nan": "2.11.1", "node-pre-gyp": "0.10.0" }, "dependencies": { @@ -3995,10 +4191,13 @@ "dev": true }, "generate-function": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", - "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", - "dev": true + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "dev": true, + "requires": { + "is-property": "1.0.2" + } }, "generate-object-property": { "version": "1.2.0", @@ -4015,6 +4214,12 @@ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -4035,9 +4240,9 @@ } }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { "fs.realpath": "1.0.0", @@ -4115,7 +4320,7 @@ "requires": { "array-union": "1.0.2", "dir-glob": "2.0.0", - "glob": "7.1.2", + "glob": "7.1.3", "ignore": "3.3.10", "pify": "3.0.0", "slash": "1.0.0" @@ -4128,25 +4333,31 @@ "dev": true }, "handlebars": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", - "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.12.tgz", + "integrity": "sha512-RhmTekP+FZL+XNhwS1Wf+bTTZpdLougwt5pcgA1tuz6Jcx0fpH/7z0qd71RKnZHBCxIRBHfBOnio4gViPemNzA==", "dev": true, "requires": { - "async": "1.5.2", + "async": "2.6.1", "optimist": "0.6.1", - "source-map": "0.4.4", - "uglify-js": "2.8.29" + "source-map": "0.6.1", + "uglify-js": "3.4.9" }, "dependencies": { - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", "dev": true, "requires": { - "amdefine": "1.0.1" + "lodash": "4.17.11" } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true } } }, @@ -4165,13 +4376,13 @@ "requires": { "bluebird": "2.11.0", "chalk": "1.1.3", - "commander": "2.17.0", - "is-my-json-valid": "2.17.2" + "commander": "2.19.0", + "is-my-json-valid": "2.19.0" }, "dependencies": { "bluebird": { "version": "2.11.0", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz", + "resolved": "http://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz", "integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=", "dev": true } @@ -4224,6 +4435,66 @@ "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "dev": true }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, "hawk": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/hawk/-/hawk-2.3.1.tgz", @@ -4259,9 +4530,9 @@ "dev": true }, "html-comment-regex": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz", - "integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", "dev": true }, "htmlparser2": { @@ -4280,7 +4551,7 @@ }, "http-errors": { "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", "dev": true, "requires": { @@ -4303,7 +4574,7 @@ "dev": true, "requires": { "eventemitter3": "3.1.0", - "follow-redirects": "1.5.2", + "follow-redirects": "1.5.9", "requires-port": "1.0.0" } }, @@ -4315,7 +4586,7 @@ "requires": { "http-proxy": "1.17.0", "is-glob": "3.1.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "micromatch": "2.3.11" }, "dependencies": { @@ -4348,9 +4619,9 @@ "dev": true }, "iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { "safer-buffer": "2.1.2" @@ -4442,7 +4713,7 @@ "cli-width": "2.2.0", "external-editor": "2.2.0", "figures": "2.0.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "mute-stream": "0.0.7", "run-async": "2.3.0", "rx-lite": "4.0.8", @@ -4464,7 +4735,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -4475,7 +4746,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "has-flag": { @@ -4494,9 +4765,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -4537,6 +4808,15 @@ "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", "dev": true }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -4549,7 +4829,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "1.12.0" } }, "is-buffer": { @@ -4560,13 +4840,41 @@ }, "is-builtin-module": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { "builtin-modules": "1.1.1" } }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, "is-dotfile": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", @@ -4625,12 +4933,12 @@ "dev": true }, "is-my-json-valid": { - "version": "2.17.2", - "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", - "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.19.0.tgz", + "integrity": "sha512-mG0f/unGX1HZ5ep4uhRaPOS8EkAY8/j6mDRMJrutq4CqhoJWYp7qAlonIPy3TV7p3ju4TK9fo/PbnoksWmsp5Q==", "dev": true, "requires": { - "generate-function": "2.0.0", + "generate-function": "2.3.1", "generate-object-property": "1.2.0", "is-my-ip-valid": "1.0.0", "jsonpointer": "4.0.1", @@ -4676,6 +4984,23 @@ "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", "dev": true }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "is-posix-bracket": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", @@ -4712,7 +5037,7 @@ "integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=", "dev": true, "requires": { - "html-comment-regex": "1.1.1" + "html-comment-regex": "1.1.2" } }, "is-typedarray": { @@ -4728,6 +5053,12 @@ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -4775,7 +5106,7 @@ "escodegen": "1.8.1", "esprima": "2.7.3", "glob": "5.0.15", - "handlebars": "4.0.11", + "handlebars": "4.0.12", "js-yaml": "3.7.0", "mkdirp": "0.5.1", "nopt": "3.0.6", @@ -4816,22 +5147,22 @@ "integrity": "sha1-vvRpBJuBsjWB0NTbN6JxIGAzzFI=", "dev": true, "requires": { - "convert-source-map": "1.5.1", - "istanbul-lib-instrument": "1.10.1", + "convert-source-map": "1.6.0", + "istanbul-lib-instrument": "1.10.2", "loader-utils": "0.2.17", "object-assign": "4.1.1" } }, "istanbul-lib-coverage": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz", - "integrity": "sha512-GvgM/uXRwm+gLlvkWHTjDAvwynZkL9ns15calTrmhGgowlwJBbWMYzWbKqE2DT6JDP1AFXKa+Zi0EkqNCUqY0A==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.1.tgz", + "integrity": "sha512-PzITeunAgyGbtY1ibVIUiV679EFChHjoMNRibEIobvmrCRaIgwLxNucOSimtNWUhEib/oO7QY2imD75JVgCJWQ==", "dev": true }, "istanbul-lib-instrument": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz", - "integrity": "sha512-1dYuzkOCbuR5GRJqySuZdsmsNKPL3PTuyPevQfoCXJePT9C8y1ga75neU+Tuy9+yS3G/dgx8wgOmp2KLpgdoeQ==", + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.2.tgz", + "integrity": "sha512-aWHxfxDqvh/ZlxR8BBaEPVSWDPUkGD63VjGQn3jcw8jCp7sHEMKcrj4xfJn/ABzdMEHiQNyvDQhqm5o8+SQg7A==", "dev": true, "requires": { "babel-generator": "6.26.1", @@ -4839,8 +5170,8 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "istanbul-lib-coverage": "1.2.0", - "semver": "5.5.0" + "istanbul-lib-coverage": "1.2.1", + "semver": "5.6.0" } }, "jasmine-core": { @@ -4850,9 +5181,9 @@ "dev": true }, "js-base64": { - "version": "2.4.8", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.8.tgz", - "integrity": "sha512-hm2nYpDrwoO/OzBhdcqs/XGT6XjSuSSCVEpia+Kl2J6x4CYt5hISlVL/AYU1khoDXv0AQVgxtdJySb9gjAn56Q==", + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.9.tgz", + "integrity": "sha512-xcinL3AuDJk7VSzsHgb9DvvIXayBbadtMZ4HFPx8rUszbW1MuNMlwYVC4zzCZ6e1sqZpnNS5ZFYOhXqA39T7LQ==", "dev": true }, "js-tokens": { @@ -4884,8 +5215,7 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true + "dev": true }, "jsdoc": { "version": "3.5.5", @@ -4894,7 +5224,7 @@ "dev": true, "requires": { "babylon": "7.0.0-beta.19", - "bluebird": "3.5.1", + "bluebird": "3.5.2", "catharsis": "0.8.9", "escape-string-regexp": "1.0.5", "js2xmlparser": "3.0.0", @@ -4964,7 +5294,7 @@ }, "json5": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", "dev": true }, @@ -5045,7 +5375,7 @@ "integrity": "sha1-srlOj0mfrdAGnVT5rvSk1I7FzB8=", "dev": true, "requires": { - "bluebird": "3.5.1", + "bluebird": "3.5.2", "body-parser": "1.18.3", "chokidar": "1.7.0", "colors": "1.1.2", @@ -5055,7 +5385,7 @@ "di": "0.0.1", "dom-serialize": "2.2.1", "expand-braces": "0.1.2", - "glob": "7.1.2", + "glob": "7.1.3", "graceful-fs": "4.1.11", "http-proxy": "1.17.0", "isbinaryfile": "3.0.3", @@ -5075,7 +5405,7 @@ "dependencies": { "lodash": { "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", "dev": true }, @@ -5108,7 +5438,7 @@ "requires": { "dateformat": "1.0.12", "istanbul": "0.4.5", - "lodash": "4.17.10", + "lodash": "4.17.11", "minimatch": "3.0.4", "source-map": "0.5.7" } @@ -5119,7 +5449,7 @@ "integrity": "sha1-zdADM8znfC5M4D46yT8vjs0fuVI=", "dev": true, "requires": { - "es5-shim": "4.5.10" + "es5-shim": "4.5.12" } }, "karma-firefox-launcher": { @@ -5167,7 +5497,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -5178,7 +5508,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "has-flag": { @@ -5197,9 +5527,9 @@ } }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -5243,7 +5573,7 @@ }, "karma-webpack": { "version": "1.8.1", - "resolved": "https://registry.npmjs.org/karma-webpack/-/karma-webpack-1.8.1.tgz", + "resolved": "http://registry.npmjs.org/karma-webpack/-/karma-webpack-1.8.1.tgz", "integrity": "sha1-OdX9Lt7qPMPvW0BZibN9Ww5qO04=", "dev": true, "requires": { @@ -5256,13 +5586,13 @@ "dependencies": { "async": { "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.9.2.tgz", "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", "dev": true }, "lodash": { "version": "3.10.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", "dev": true }, @@ -5318,7 +5648,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -5385,9 +5715,9 @@ "optional": true }, "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", "dev": true, "requires": { "delayed-stream": "1.0.0" @@ -5407,8 +5737,8 @@ "optional": true, "requires": { "asynckit": "0.4.0", - "combined-stream": "1.0.6", - "mime-types": "2.1.19" + "combined-stream": "1.0.7", + "mime-types": "2.1.20" } }, "har-validator": { @@ -5444,7 +5774,7 @@ "requires": { "assert-plus": "0.2.0", "jsprim": "1.4.1", - "sshpk": "1.14.2" + "sshpk": "1.15.1" } }, "oauth-sign": { @@ -5478,7 +5808,7 @@ "aws-sign2": "0.6.0", "aws4": "1.8.0", "caseless": "0.12.0", - "combined-stream": "1.0.6", + "combined-stream": "1.0.7", "extend": "3.0.2", "forever-agent": "0.6.1", "form-data": "2.1.4", @@ -5488,7 +5818,7 @@ "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.19", + "mime-types": "2.1.20", "oauth-sign": "0.8.2", "performance-now": "0.2.0", "qs": "6.4.0", @@ -5549,7 +5879,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { @@ -5609,9 +5939,9 @@ } }, "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "lodash._createcompounder": { @@ -5756,7 +6086,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -5767,7 +6097,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "has-flag": { @@ -5777,9 +6107,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -5789,7 +6119,7 @@ }, "log4js": { "version": "0.6.38", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", + "resolved": "http://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", "dev": true, "requires": { @@ -5805,7 +6135,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -5817,7 +6147,7 @@ }, "semver": { "version": "4.3.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz", + "resolved": "http://registry.npmjs.org/semver/-/semver-4.3.6.tgz", "integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=", "dev": true }, @@ -5873,15 +6203,30 @@ "pify": "3.0.0" } }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, "map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "1.0.1" + } + }, "marked": { "version": "0.3.19", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", + "resolved": "http://registry.npmjs.org/marked/-/marked-0.3.19.tgz", "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", "dev": true }, @@ -5933,7 +6278,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } @@ -5996,18 +6341,18 @@ "dev": true }, "mime-db": { - "version": "1.35.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", - "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==", + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==", "dev": true }, "mime-types": { - "version": "2.1.19", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", - "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", "dev": true, "requires": { - "mime-db": "1.35.0" + "mime-db": "1.36.0" } }, "mimic-fn": { @@ -6027,7 +6372,7 @@ }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, @@ -6049,9 +6394,30 @@ "through2": "2.0.3" } }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "dev": true, + "requires": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { @@ -6085,12 +6451,51 @@ "dev": true }, "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==", + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", + "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", "dev": true, "optional": true }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -6186,7 +6591,7 @@ "requires": { "hosted-git-info": "2.7.1", "is-builtin-module": "1.0.0", - "semver": "5.5.0", + "semver": "5.6.0", "validate-npm-package-license": "3.0.4" } }, @@ -6262,12 +6667,51 @@ "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", "dev": true }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, "object-hash": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.0.tgz", "integrity": "sha512-05KzQ70lSeGSrZJQXE5wNDiTkBJDlUT/myi6RX9dVIvz7a7Qh4oH93BQdiPMn27nldYvVQCKMUaM83AfizZlsQ==", "dev": true }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "object.omit": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", @@ -6278,6 +6722,23 @@ "is-extendable": "0.1.1" } }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", @@ -6494,6 +6955,12 @@ "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=", "dev": true }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, "path-browserify": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", @@ -6538,7 +7005,7 @@ }, "pbkdf2-compat": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz", + "resolved": "http://registry.npmjs.org/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz", "integrity": "sha1-tuDI+plJTZTgURV1gCpZpcFC8og=", "dev": true }, @@ -6585,6 +7052,12 @@ "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", "dev": true }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, "postcss": { "version": "5.2.18", "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", @@ -6592,7 +7065,7 @@ "dev": true, "requires": { "chalk": "1.1.3", - "js-base64": "2.4.8", + "js-base64": "2.4.9", "source-map": "0.5.7", "supports-color": "3.2.3" }, @@ -6610,7 +7083,7 @@ }, "postcss-calc": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz", + "resolved": "http://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz", "integrity": "sha1-d7rnypKK2FcW4v2kLyYb98HWW14=", "dev": true, "requires": { @@ -6642,7 +7115,7 @@ }, "postcss-discard-comments": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz", + "resolved": "http://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz", "integrity": "sha1-vv6J+v1bPazlzM5Rt2uBUUvgDj0=", "dev": true, "requires": { @@ -6660,7 +7133,7 @@ }, "postcss-discard-empty": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz", "integrity": "sha1-0rS9nVztXr2Nyt52QMfXzX9PkrU=", "dev": true, "requires": { @@ -6669,7 +7142,7 @@ }, "postcss-discard-overridden": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz", + "resolved": "http://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz", "integrity": "sha1-ix6vVU9ob7KIzYdMVWZ7CqNmjVg=", "dev": true, "requires": { @@ -6678,7 +7151,7 @@ }, "postcss-discard-unused": { "version": "2.2.3", - "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz", + "resolved": "http://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz", "integrity": "sha1-vOMLLMWR/8Y0Mitfs0ZLbZNPRDM=", "dev": true, "requires": { @@ -6697,7 +7170,7 @@ }, "postcss-merge-idents": { "version": "2.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz", + "resolved": "http://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz", "integrity": "sha1-TFUwMTwI4dWzu/PSu8dH4njuonA=", "dev": true, "requires": { @@ -6736,7 +7209,7 @@ }, "postcss-minify-font-values": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz", + "resolved": "http://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz", "integrity": "sha1-S1jttWZB66fIR0qzUmyv17vey2k=", "dev": true, "requires": { @@ -6747,7 +7220,7 @@ }, "postcss-minify-gradients": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz", + "resolved": "http://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz", "integrity": "sha1-Xb2hE3NwP4PPtKPqOIHY11/15uE=", "dev": true, "requires": { @@ -6757,7 +7230,7 @@ }, "postcss-minify-params": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz", + "resolved": "http://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz", "integrity": "sha1-rSzgcTc7lDs9kwo/pZo1jCjW8fM=", "dev": true, "requires": { @@ -6769,7 +7242,7 @@ }, "postcss-minify-selectors": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz", + "resolved": "http://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz", "integrity": "sha1-ssapjAByz5G5MtGkllCBFDEXNb8=", "dev": true, "requires": { @@ -6794,7 +7267,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -6805,7 +7278,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "has-flag": { @@ -6822,7 +7295,7 @@ "requires": { "chalk": "2.4.1", "source-map": "0.6.1", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "source-map": { @@ -6832,9 +7305,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -6858,7 +7331,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -6869,7 +7342,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "css-selector-tokenizer": { @@ -6897,7 +7370,7 @@ "requires": { "chalk": "2.4.1", "source-map": "0.6.1", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "regexpu-core": { @@ -6918,9 +7391,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -6944,7 +7417,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -6955,7 +7428,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "css-selector-tokenizer": { @@ -6983,7 +7456,7 @@ "requires": { "chalk": "2.4.1", "source-map": "0.6.1", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "regexpu-core": { @@ -7004,9 +7477,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -7030,7 +7503,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -7041,7 +7514,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "has-flag": { @@ -7058,7 +7531,7 @@ "requires": { "chalk": "2.4.1", "source-map": "0.6.1", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "source-map": { @@ -7068,9 +7541,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -7080,7 +7553,7 @@ }, "postcss-normalize-charset": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz", + "resolved": "http://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz", "integrity": "sha1-757nEhLX/nWceO0WL2HtYrXLk/E=", "dev": true, "requires": { @@ -7089,7 +7562,7 @@ }, "postcss-normalize-url": { "version": "3.0.8", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz", + "resolved": "http://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz", "integrity": "sha1-EI90s/L82viRov+j6kWSJ5/HgiI=", "dev": true, "requires": { @@ -7111,7 +7584,7 @@ }, "postcss-reduce-idents": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz", + "resolved": "http://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz", "integrity": "sha1-wsbSDMlYKE9qv75j92Cb9AkFmtM=", "dev": true, "requires": { @@ -7121,7 +7594,7 @@ }, "postcss-reduce-initial": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz", "integrity": "sha1-aPgGlfBF0IJjqHmtJA343WT2ROo=", "dev": true, "requires": { @@ -7130,7 +7603,7 @@ }, "postcss-reduce-transforms": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz", + "resolved": "http://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz", "integrity": "sha1-/3b02CEkN7McKYpC0uFEQCV3GuE=", "dev": true, "requires": { @@ -7152,7 +7625,7 @@ }, "postcss-svgo": { "version": "2.1.6", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz", + "resolved": "http://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz", "integrity": "sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0=", "dev": true, "requires": { @@ -7164,7 +7637,7 @@ }, "postcss-unique-selectors": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz", + "resolved": "http://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz", "integrity": "sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0=", "dev": true, "requires": { @@ -7181,7 +7654,7 @@ }, "postcss-zindex": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz", "integrity": "sha1-0hCd3AVbka9n/EyzsCWUZjnSryI=", "dev": true, "requires": { @@ -7344,15 +7817,15 @@ "dev": true }, "querystringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.0.0.tgz", - "integrity": "sha512-eTPo5t/4bgaMNZxyjWx6N2a6AuE0mq51KWvpc7nU/MAqixcI6v6KrGUKES0HaomdnolQBBXU/++X6/QQ9KL4tw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.0.tgz", + "integrity": "sha512-sluvZZ1YiTLD5jsqZcDmFyV2EwToyXZBfpoVOmktMmW+VEnhgakFHnasVph65fOjGPTWN0Nw3+XQaSeMayr0kg==", "dev": true }, "randomatic": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", - "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.0.tgz", + "integrity": "sha512-KnGPVE0lo2WoXxIZ7cPR8YBpiol4gsSuOwDSg410oHh80ZMp5EiypNqL2K4Z77vJn6lB5rap7IkAmcUlalcnBQ==", "dev": true, "requires": { "is-number": "4.0.0", @@ -7396,6 +7869,17 @@ "http-errors": "1.6.3", "iconv-lite": "0.4.23", "unpipe": "1.0.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": "2.1.2" + } + } } }, "read-pkg": { @@ -7440,7 +7924,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -7454,15 +7938,290 @@ } }, "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", "dev": true, "requires": { "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.6", - "set-immediate-shim": "1.0.1" + "micromatch": "3.1.10", + "readable-stream": "2.3.6" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.3", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + } } }, "recast": { @@ -7497,7 +8256,7 @@ }, "reduce-css-calc": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz", + "resolved": "http://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz", "integrity": "sha1-dHyRTgSWFKTJz7umKYca0dKSdxY=", "dev": true, "requires": { @@ -7562,6 +8321,16 @@ "is-equal-shallow": "0.1.3" } }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, "regexpu-core": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", @@ -7603,9 +8372,9 @@ "dev": true }, "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true }, "repeat-string": { @@ -7625,7 +8394,7 @@ }, "request": { "version": "2.55.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.55.0.tgz", + "resolved": "http://registry.npmjs.org/request/-/request-2.55.0.tgz", "integrity": "sha1-11wc32eddrsQD5v/4f5VG1wk6T0=", "dev": true, "requires": { @@ -7717,6 +8486,12 @@ "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", "dev": true }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, "restore-cursor": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", @@ -7727,6 +8502,12 @@ "signal-exit": "3.0.2" } }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, "right-align": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", @@ -7742,12 +8523,12 @@ "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { - "glob": "7.1.2" + "glob": "7.1.3" } }, "ripemd160": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-0.2.0.tgz", + "resolved": "http://registry.npmjs.org/ripemd160/-/ripemd160-0.2.0.tgz", "integrity": "sha1-K/GYveFnys+lHAqSjoS2i74XH84=", "dev": true }, @@ -7790,6 +8571,15 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "0.1.15" + } + }, "safe-umd-webpack-plugin": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/safe-umd-webpack-plugin/-/safe-umd-webpack-plugin-0.0.1.tgz", @@ -7821,9 +8611,9 @@ } }, "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", "dev": true }, "send": { @@ -7878,7 +8668,7 @@ "debug": "2.6.9", "escape-html": "1.0.3", "http-errors": "1.6.3", - "mime-types": "2.1.19", + "mime-types": "2.1.20", "parseurl": "1.3.2" }, "dependencies": { @@ -7888,7 +8678,7 @@ "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "dev": true, "requires": { - "mime-types": "2.1.19", + "mime-types": "2.1.20", "negotiator": "0.6.1" } }, @@ -7912,11 +8702,28 @@ "send": "0.16.2" } }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } }, "setimmediate": { "version": "1.0.5", @@ -7932,7 +8739,7 @@ }, "sha.js": { "version": "2.2.6", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", + "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", "integrity": "sha1-F93t3F9yL7ZlAWWIlUYZd4ZzFbo=", "dev": true }, @@ -7972,6 +8779,114 @@ "is-fullwidth-code-point": "2.0.0" } }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.2", + "use": "3.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, "sntp": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", @@ -7997,7 +8912,7 @@ "dependencies": { "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -8006,7 +8921,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } @@ -8022,9 +8937,15 @@ "socket.io-parser": "2.2.2" }, "dependencies": { + "component-emitter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", + "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "dev": true + }, "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -8039,7 +8960,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true }, @@ -8058,7 +8979,7 @@ "dependencies": { "debug": { "version": "0.7.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-0.7.4.tgz", "integrity": "sha1-BuHqgILCyxTjmAbiLi9vdX+Srzk=", "dev": true } @@ -8093,7 +9014,7 @@ }, "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -8102,7 +9023,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } @@ -8121,9 +9042,15 @@ "json3": "3.3.2" }, "dependencies": { + "component-emitter": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz", + "integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=", + "dev": true + }, "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "dev": true, "requires": { @@ -8144,7 +9071,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", "dev": true } @@ -8169,19 +9096,28 @@ } }, "sockjs-client": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.1.5.tgz", - "integrity": "sha1-G7fA9yIsQPQq3xT0RCy9Eml3GoM=", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.3.0.tgz", + "integrity": "sha512-R9jxEzhnnrdxLCNln0xg5uGHqMnkhPSTzUZH2eXcR03S/On9Yvoq2wyUZILRUhZCNVu2PmwWVoyuiPz8th8zbg==", "dev": true, "requires": { - "debug": "2.6.9", - "eventsource": "0.1.6", + "debug": "3.2.6", + "eventsource": "1.0.7", "faye-websocket": "0.11.1", "inherits": "2.0.3", "json3": "3.3.2", "url-parse": "1.4.3" }, "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "2.1.1" + } + }, "faye-websocket": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.1.tgz", @@ -8196,6 +9132,12 @@ "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", "dev": true + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true } } }, @@ -8220,6 +9162,19 @@ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, + "requires": { + "atob": "2.1.2", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, "source-map-support": { "version": "0.4.18", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", @@ -8229,20 +9184,26 @@ "source-map": "0.5.7" } }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, "spdx-correct": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", - "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", + "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", "dev": true, "requires": { "spdx-expression-parse": "3.0.0", - "spdx-license-ids": "3.0.0" + "spdx-license-ids": "3.0.1" } }, "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", "dev": true }, "spdx-expression-parse": { @@ -8251,16 +9212,25 @@ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" + "spdx-exceptions": "2.2.0", + "spdx-license-ids": "3.0.1" } }, "spdx-license-ids": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", - "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz", + "integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==", "dev": true }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "3.0.2" + } + }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -8268,9 +9238,9 @@ "dev": true }, "sshpk": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", - "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.1.tgz", + "integrity": "sha512-mSdgNUaidk+dRU5MhYtN9zebdzF2iG0cNPWy8HG+W8y+fT1JnSkh0fzzpjOa0L7P8i1Rscz38t0h4gPcKz43xA==", "dev": true, "optional": true, "requires": { @@ -8313,6 +9283,27 @@ "safe-buffer": "5.1.2" } }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + } + } + }, "statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", @@ -8414,7 +9405,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { @@ -8491,22 +9482,22 @@ }, "table": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/table/-/table-4.0.3.tgz", + "resolved": "http://registry.npmjs.org/table/-/table-4.0.3.tgz", "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", "dev": true, "requires": { - "ajv": "6.5.2", + "ajv": "6.5.4", "ajv-keywords": "3.2.0", "chalk": "2.4.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "slice-ansi": "1.0.0", "string-width": "2.1.1" }, "dependencies": { "ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.4.tgz", + "integrity": "sha512-4Wyjt8+t6YszqaXnLDfMmG/8AlO5Zbcsy3ATHncCzjW/NoPzAId8AK6749Ybjmdt+kUY1gP60fCu46oDxPv/mg==", "dev": true, "requires": { "fast-deep-equal": "2.0.1", @@ -8521,7 +9512,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.2" + "color-convert": "1.9.3" } }, "chalk": { @@ -8532,7 +9523,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "fast-deep-equal": { @@ -8554,9 +9545,9 @@ "dev": true }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -8572,13 +9563,13 @@ }, "tapable": { "version": "0.1.10", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", + "resolved": "http://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", "dev": true }, "tar-stream": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.1.5.tgz", + "resolved": "http://registry.npmjs.org/tar-stream/-/tar-stream-1.1.5.tgz", "integrity": "sha1-vpIYwTDCACnhB7D5Z/sj3gV50Tw=", "dev": true, "requires": { @@ -8596,7 +9587,7 @@ }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { @@ -8622,7 +9613,7 @@ }, "through": { "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, @@ -8637,9 +9628,9 @@ } }, "time-stamp": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.1.tgz", - "integrity": "sha512-KUnkvOWC3C+pEbwE/0u3CcmNpGCDqkYGYZOphe1QFxApYQkJ5g195TDBjgZch/zG6chU1NcabLwnM7BCpWAzTQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.1.0.tgz", + "integrity": "sha512-lJbq6KsFhZJtN3fPUVje1tq/hHsJOKUUcUj/MGCiQR6qWBDcyi5kxL9J7/RnaEChCn0+L/DUN2WvemDrkk4i3Q==", "dev": true }, "timers-browserify": { @@ -8678,6 +9669,48 @@ "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", "dev": true }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + } + } + }, "tough-cookie": { "version": "2.4.3", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", @@ -8738,8 +9771,7 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true + "dev": true }, "type-check": { "version": "0.3.2", @@ -8757,7 +9789,7 @@ "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.19" + "mime-types": "2.1.20" } }, "typedarray": { @@ -8767,15 +9799,30 @@ "dev": true }, "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "version": "3.4.9", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.9.tgz", + "integrity": "sha512-8CJsbKOtEbnJsTyv6LE6m6ZKniqMiFWmm9sRbopbkGs3gMPPfd3Fh8iIA4Ykv5MgaTbqHr4BaoGLJLZNhsrW1Q==", "dev": true, "optional": true, "requires": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "commander": "2.17.1", + "source-map": "0.6.1" + }, + "dependencies": { + "commander": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "dev": true, + "optional": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } } }, "uglify-to-browserify": { @@ -8815,10 +9862,45 @@ }, "underscore.string": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.0.3.tgz", + "resolved": "http://registry.npmjs.org/underscore.string/-/underscore.string-3.0.3.tgz", "integrity": "sha1-Rhe4waJQz25QZPu7Nj0PqWzxRVI=", "dev": true }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, "uniq": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", @@ -8832,18 +9914,18 @@ "dev": true }, "unique-filename": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", - "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", "dev": true, "requires": { - "unique-slug": "2.0.0" + "unique-slug": "2.0.1" } }, "unique-slug": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", - "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.1.tgz", + "integrity": "sha512-n9cU6+gITaVu7VGj1Z8feKMmfAjEAQGhwD9fE3zvpRRa0wEIx8ODYkVGfSc94M2OX00tUFV8wH3zYbm1I8mxFg==", "dev": true, "requires": { "imurmurhash": "0.1.4" @@ -8855,6 +9937,52 @@ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", "dev": true }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + } + } + }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", @@ -8864,6 +9992,12 @@ "punycode": "2.1.1" } }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, "url": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", @@ -8888,10 +10022,16 @@ "integrity": "sha512-rh+KuAW36YKo0vClhQzLLveoj8FwPJNu65xLb7Mrt+eZht0IPT0IXgSv8gcMegZ6NvjJUALf6Mf25POlMwD1Fw==", "dev": true, "requires": { - "querystringify": "2.0.0", + "querystringify": "2.1.0", "requires-port": "1.0.0" } }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, "useragent": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", @@ -8935,7 +10075,7 @@ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { - "spdx-correct": "3.0.0", + "spdx-correct": "3.0.2", "spdx-expression-parse": "3.0.0" } }, @@ -9006,7 +10146,7 @@ "dependencies": { "async": { "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.9.2.tgz", "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", "dev": true } @@ -9029,13 +10169,13 @@ "dependencies": { "async": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async/-/async-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-1.0.0.tgz", "integrity": "sha1-+PwEyjoTeErenhZBr5hXjPvWR6k=", "dev": true }, "lodash": { "version": "3.9.3", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.9.3.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.9.3.tgz", "integrity": "sha1-AVnoaDL+/8bWHYUrEqlTuZSWvTI=", "dev": true }, @@ -9072,7 +10212,7 @@ "dependencies": { "acorn": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "resolved": "http://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", "dev": true }, @@ -9097,7 +10237,7 @@ }, "uglify-js": { "version": "2.7.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.7.5.tgz", + "resolved": "http://registry.npmjs.org/uglify-js/-/uglify-js-2.7.5.tgz", "integrity": "sha1-RhLAx7qu4rp8SH3kkErhIgefLKg=", "dev": true, "requires": { @@ -9109,7 +10249,7 @@ "dependencies": { "async": { "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.2.10.tgz", "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", "dev": true } @@ -9148,7 +10288,7 @@ "mime": "1.6.0", "path-is-absolute": "1.0.1", "range-parser": "1.2.0", - "time-stamp": "2.0.1" + "time-stamp": "2.1.0" } }, "webpack-dev-server": { @@ -9159,13 +10299,13 @@ "requires": { "compression": "1.7.3", "connect-history-api-fallback": "1.5.0", - "express": "4.16.3", + "express": "4.16.4", "http-proxy-middleware": "0.17.4", "open": "0.0.5", "optimist": "0.6.1", "serve-index": "1.9.1", "sockjs": "0.3.19", - "sockjs-client": "1.1.5", + "sockjs-client": "1.3.0", "stream-cache": "0.0.2", "strip-ansi": "3.0.1", "supports-color": "3.2.3", @@ -9262,7 +10402,7 @@ }, "ws": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/ws/-/ws-1.0.1.tgz", "integrity": "sha1-fQsqLljN3YGQOcKcneZQReGzEOk=", "dev": true, "requires": { @@ -9272,7 +10412,7 @@ }, "xmlbuilder": { "version": "8.2.2", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-8.2.2.tgz", + "resolved": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-8.2.2.tgz", "integrity": "sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M=", "dev": true }, @@ -9308,7 +10448,7 @@ }, "yargs": { "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "resolved": "http://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, "requires": { @@ -9351,13 +10491,13 @@ }, "lodash": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.2.0.tgz", + "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.2.0.tgz", "integrity": "sha1-S/UKMkP5rrC6xBpV09WZBnWkYvs=", "dev": true }, "readable-stream": { "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", "dev": true, "requires": { diff --git a/package.json b/package.json index 430e36959..7b0fe0411 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tui-chart", "author": "NHN Ent. FE Development Lab ", - "version": "3.3.1", + "version": "3.4.0", "main": "dist/tui-chart", "license": "MIT", "description": "TOAST UI Application: Chart",