框架源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1859 lines
58 KiB

4 years ago
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 253);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 114:
  90. /***/ (function(module, exports) {
  91. module.exports = require("echarts/lib/chart/bar");
  92. /***/ }),
  93. /***/ 12:
  94. /***/ (function(module, exports) {
  95. /**
  96. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  97. * embed the css on the page. This breaks all relative urls because now they are relative to a
  98. * bundle instead of the current page.
  99. *
  100. * One solution is to only use full urls, but that may be impossible.
  101. *
  102. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  103. *
  104. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  105. *
  106. */
  107. module.exports = function (css) {
  108. // get current location
  109. var location = typeof window !== "undefined" && window.location;
  110. if (!location) {
  111. throw new Error("fixUrls requires window.location");
  112. }
  113. // blank or null?
  114. if (!css || typeof css !== "string") {
  115. return css;
  116. }
  117. var baseUrl = location.protocol + "//" + location.host;
  118. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  119. // convert each url(...)
  120. /*
  121. This regular expression is just a way to recursively match brackets within
  122. a string.
  123. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  124. ( = Start a capturing group
  125. (?: = Start a non-capturing group
  126. [^)(] = Match anything that isn't a parentheses
  127. | = OR
  128. \( = Match a start parentheses
  129. (?: = Start another non-capturing groups
  130. [^)(]+ = Match anything that isn't a parentheses
  131. | = OR
  132. \( = Match a start parentheses
  133. [^)(]* = Match anything that isn't a parentheses
  134. \) = Match a end parentheses
  135. ) = End Group
  136. *\) = Match anything and then a close parens
  137. ) = Close non-capturing group
  138. * = Match anything
  139. ) = Close capturing group
  140. \) = Match a close parens
  141. /gi = Get all matches, not the first. Be case insensitive.
  142. */
  143. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  144. // strip quotes (if they exist)
  145. var unquotedOrigUrl = origUrl
  146. .trim()
  147. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  148. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  149. // already a full url? no change
  150. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  151. return fullMatch;
  152. }
  153. // convert the url to a full url
  154. var newUrl;
  155. if (unquotedOrigUrl.indexOf("//") === 0) {
  156. //TODO: should we add protocol?
  157. newUrl = unquotedOrigUrl;
  158. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  159. // path should be relative to the base url
  160. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  161. } else {
  162. // path should be relative to current directory
  163. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  164. }
  165. // send back the fixed url(...)
  166. return "url(" + JSON.stringify(newUrl) + ")";
  167. });
  168. // send back the fixed css
  169. return fixedCss;
  170. };
  171. /***/ }),
  172. /***/ 135:
  173. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  174. "use strict";
  175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return waterfall; });
  176. /* harmony import */ var main_utils_charts_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32);
  177. function getWaterfallTooltip(dataType, digit) {
  178. return {
  179. trigger: 'axis',
  180. axisPointer: { type: 'shadow' },
  181. formatter: function formatter(items) {
  182. var item = items[1];
  183. return [item.name + '<br/>' + item.seriesName + ' :', '' + Object(main_utils_charts_utils__WEBPACK_IMPORTED_MODULE_0__[/* getFormated */ "c"])(item.value, dataType, digit)].join('');
  184. }
  185. };
  186. }
  187. function getWaterfallXAxis(args) {
  188. var dimension = args.dimension,
  189. rows = args.rows,
  190. remainStatus = args.remainStatus,
  191. totalName = args.totalName,
  192. remainName = args.remainName,
  193. labelMap = args.labelMap,
  194. xAxisName = args.xAxisName,
  195. axisVisible = args.axisVisible;
  196. var xAxisData = [totalName].concat(rows.map(function (row) {
  197. return row[dimension];
  198. }));
  199. if (remainStatus === 'have-remain') {
  200. xAxisData = xAxisData.concat([remainName]);
  201. }
  202. return {
  203. type: 'category',
  204. name: labelMap && labelMap[xAxisName] || xAxisName,
  205. splitLine: { show: false },
  206. data: xAxisData,
  207. show: axisVisible
  208. };
  209. }
  210. function getWaterfallYAxis(args) {
  211. var dataType = args.dataType,
  212. yAxisName = args.yAxisName,
  213. axisVisible = args.axisVisible,
  214. digit = args.digit,
  215. labelMap = args.labelMap;
  216. return {
  217. type: 'value',
  218. name: labelMap[yAxisName] != null ? labelMap[yAxisName] : yAxisName,
  219. axisTick: { show: false },
  220. axisLabel: {
  221. formatter: function formatter(val) {
  222. return Object(main_utils_charts_utils__WEBPACK_IMPORTED_MODULE_0__[/* getFormated */ "c"])(val, dataType, digit);
  223. }
  224. },
  225. show: axisVisible
  226. };
  227. }
  228. function getWaterfallSeries(args) {
  229. var dataType = args.dataType,
  230. rows = args.rows,
  231. metrics = args.metrics,
  232. totalNum = args.totalNum,
  233. remainStatus = args.remainStatus,
  234. dataSum = args.dataSum,
  235. digit = args.digit;
  236. var seriesBase = { type: 'bar', stack: '总量' };
  237. var dataSumTemp = dataSum;
  238. var totalNumTemp = totalNum;
  239. var assistData = void 0;
  240. var mainData = void 0;
  241. var rowData = rows.map(function (row) {
  242. return row[metrics];
  243. });
  244. if (remainStatus === 'have-remain') {
  245. assistData = [0].concat(rows.map(function (row) {
  246. totalNumTemp -= row[metrics];
  247. return totalNumTemp;
  248. })).concat([0]);
  249. mainData = [totalNum].concat(rowData).concat([totalNum - dataSum]);
  250. } else {
  251. assistData = [0].concat(rows.map(function (row) {
  252. dataSumTemp -= row[metrics];
  253. return dataSumTemp;
  254. }));
  255. mainData = [dataSum].concat(rowData);
  256. }
  257. var series = [];
  258. series.push(Object.assign({
  259. name: '辅助',
  260. itemStyle: {
  261. normal: { opacity: 0 },
  262. emphasis: { opacity: 0 }
  263. },
  264. data: assistData
  265. }, seriesBase));
  266. series.push(Object.assign({
  267. name: '数值',
  268. label: {
  269. normal: {
  270. show: true,
  271. position: 'top',
  272. formatter: function formatter(item) {
  273. return Object(main_utils_charts_utils__WEBPACK_IMPORTED_MODULE_0__[/* getFormated */ "c"])(item.value, dataType, digit);
  274. }
  275. }
  276. },
  277. data: mainData
  278. }, seriesBase));
  279. return series;
  280. }
  281. function getWaterfallRemainStatus(dataSum, totalNum) {
  282. if (!totalNum) return 'not-total';
  283. return totalNum > dataSum ? 'have-remain' : 'none-remain';
  284. }
  285. var waterfall = function waterfall(columns, rows, settings, extra) {
  286. var _settings$dataType = settings.dataType,
  287. dataType = _settings$dataType === undefined ? 'normal' : _settings$dataType,
  288. _settings$dimension = settings.dimension,
  289. dimension = _settings$dimension === undefined ? columns[0] : _settings$dimension,
  290. _settings$totalName = settings.totalName,
  291. totalName = _settings$totalName === undefined ? '总计' : _settings$totalName,
  292. totalNum = settings.totalNum,
  293. _settings$remainName = settings.remainName,
  294. remainName = _settings$remainName === undefined ? '其他' : _settings$remainName,
  295. _settings$xAxisName = settings.xAxisName,
  296. xAxisName = _settings$xAxisName === undefined ? dimension : _settings$xAxisName,
  297. _settings$labelMap = settings.labelMap,
  298. labelMap = _settings$labelMap === undefined ? {} : _settings$labelMap,
  299. _settings$axisVisible = settings.axisVisible,
  300. axisVisible = _settings$axisVisible === undefined ? true : _settings$axisVisible,
  301. _settings$digit = settings.digit,
  302. digit = _settings$digit === undefined ? 2 : _settings$digit;
  303. var tooltipVisible = extra.tooltipVisible;
  304. var metricsTemp = columns.slice();
  305. metricsTemp.splice(metricsTemp.indexOf(dimension), 1);
  306. var metrics = metricsTemp[0];
  307. var yAxisName = metrics;
  308. var tooltip = tooltipVisible && getWaterfallTooltip(dataType, digit);
  309. var dataSum = parseFloat(rows.reduce(function (pre, cur) {
  310. return pre + Number(cur[metrics]);
  311. }, 0).toFixed(digit));
  312. var remainStatus = getWaterfallRemainStatus(dataSum, totalNum);
  313. var xAxisParams = {
  314. dimension: dimension,
  315. rows: rows,
  316. remainStatus: remainStatus,
  317. totalName: totalName,
  318. remainName: remainName,
  319. xAxisName: xAxisName,
  320. labelMap: labelMap,
  321. axisVisible: axisVisible
  322. };
  323. var xAxis = getWaterfallXAxis(xAxisParams);
  324. var yAxis = getWaterfallYAxis({ dataType: dataType, yAxisName: yAxisName, axisVisible: axisVisible, digit: digit, labelMap: labelMap });
  325. var seriesParams = {
  326. dataType: dataType,
  327. rows: rows,
  328. dimension: dimension,
  329. metrics: metrics,
  330. totalNum: totalNum,
  331. remainStatus: remainStatus,
  332. dataSum: dataSum,
  333. digit: digit
  334. };
  335. var series = getWaterfallSeries(seriesParams);
  336. var options = { tooltip: tooltip, xAxis: xAxis, yAxis: yAxis, series: series };
  337. return options;
  338. };
  339. /***/ }),
  340. /***/ 15:
  341. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  342. "use strict";
  343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_THEME; });
  344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEFAULT_COLORS; });
  345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return HEAT_MAP_COLOR; });
  346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return HEAT_BMAP_COLOR; });
  347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return itemPoint; });
  348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return STATIC_PROPS; });
  349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ECHARTS_SETTINGS; });
  350. var DEFAULT_THEME = {
  351. categoryAxis: {
  352. axisLine: { show: false },
  353. axisTick: { show: false },
  354. splitLine: { show: false }
  355. },
  356. valueAxis: {
  357. axisLine: { show: false }
  358. },
  359. line: {
  360. smooth: true
  361. },
  362. grid: {
  363. containLabel: true,
  364. left: 10,
  365. right: 10
  366. }
  367. };
  368. var DEFAULT_COLORS = ['#19d4ae', '#5ab1ef', '#fa6e86', '#ffb980', '#0067a6', '#c4b4e4', '#d87a80', '#9cbbff', '#d9d0c7', '#87a997', '#d49ea2', '#5b4947', '#7ba3a8'];
  369. var HEAT_MAP_COLOR = ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'];
  370. var HEAT_BMAP_COLOR = ['blue', 'blue', 'green', 'yellow', 'red'];
  371. var itemPoint = function itemPoint(color) {
  372. return ['<span style="', 'background-color:' + color + ';', 'display: inline-block;', 'width: 10px;', 'height: 10px;', 'border-radius: 50%;', 'margin-right:2px;', '"></span>'].join('');
  373. };
  374. var STATIC_PROPS = ['initOptions', 'loading', 'dataEmpty', 'judgeWidth', 'widthChangeDelay'];
  375. var ECHARTS_SETTINGS = ['grid', 'dataZoom', 'visualMap', 'toolbox', 'title', 'legend', 'xAxis', 'yAxis', 'radar', 'tooltip', 'axisPointer', 'brush', 'geo', 'timeline', 'graphic', 'series', 'backgroundColor', 'textStyle'];
  376. /***/ }),
  377. /***/ 17:
  378. /***/ (function(module, exports) {
  379. module.exports = require("echarts/lib/echarts");
  380. /***/ }),
  381. /***/ 2:
  382. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  383. "use strict";
  384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  385. /* globals __VUE_SSR_CONTEXT__ */
  386. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  387. // This module is a runtime utility for cleaner component module output and will
  388. // be included in the final webpack user bundle.
  389. function normalizeComponent (
  390. scriptExports,
  391. render,
  392. staticRenderFns,
  393. functionalTemplate,
  394. injectStyles,
  395. scopeId,
  396. moduleIdentifier, /* server only */
  397. shadowMode /* vue-cli only */
  398. ) {
  399. // Vue.extend constructor export interop
  400. var options = typeof scriptExports === 'function'
  401. ? scriptExports.options
  402. : scriptExports
  403. // render functions
  404. if (render) {
  405. options.render = render
  406. options.staticRenderFns = staticRenderFns
  407. options._compiled = true
  408. }
  409. // functional template
  410. if (functionalTemplate) {
  411. options.functional = true
  412. }
  413. // scopedId
  414. if (scopeId) {
  415. options._scopeId = 'data-v-' + scopeId
  416. }
  417. var hook
  418. if (moduleIdentifier) { // server build
  419. hook = function (context) {
  420. // 2.3 injection
  421. context =
  422. context || // cached call
  423. (this.$vnode && this.$vnode.ssrContext) || // stateful
  424. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  425. // 2.2 with runInNewContext: true
  426. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  427. context = __VUE_SSR_CONTEXT__
  428. }
  429. // inject component styles
  430. if (injectStyles) {
  431. injectStyles.call(this, context)
  432. }
  433. // register component module identifier for async chunk inferrence
  434. if (context && context._registeredComponents) {
  435. context._registeredComponents.add(moduleIdentifier)
  436. }
  437. }
  438. // used by ssr in case component is cached and beforeCreate
  439. // never gets called
  440. options._ssrRegister = hook
  441. } else if (injectStyles) {
  442. hook = shadowMode
  443. ? function () {
  444. injectStyles.call(
  445. this,
  446. (options.functional ? this.parent : this).$root.$options.shadowRoot
  447. )
  448. }
  449. : injectStyles
  450. }
  451. if (hook) {
  452. if (options.functional) {
  453. // for template-only hot-reload because in that case the render fn doesn't
  454. // go through the normalizer
  455. options._injectStyles = hook
  456. // register for functional component in vue file
  457. var originalRender = options.render
  458. options.render = function renderWithStyleInjection (h, context) {
  459. hook.call(context)
  460. return originalRender(h, context)
  461. }
  462. } else {
  463. // inject component registration as beforeCreate hook
  464. var existing = options.beforeCreate
  465. options.beforeCreate = existing
  466. ? [].concat(existing, hook)
  467. : [hook]
  468. }
  469. }
  470. return {
  471. exports: scriptExports,
  472. options: options
  473. }
  474. }
  475. /***/ }),
  476. /***/ 253:
  477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  478. "use strict";
  479. __webpack_require__.r(__webpack_exports__);
  480. /* harmony import */ var echarts_lib_chart_bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(114);
  481. /* harmony import */ var echarts_lib_chart_bar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(echarts_lib_chart_bar__WEBPACK_IMPORTED_MODULE_0__);
  482. /* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(135);
  483. /* harmony import */ var main_utils_charts_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(43);
  484. /* harmony default export */ __webpack_exports__["default"] = (Object.assign({}, main_utils_charts_core__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
  485. name: 'VeWaterfall',
  486. data: function data() {
  487. this.chartHandler = _main__WEBPACK_IMPORTED_MODULE_1__[/* waterfall */ "a"];
  488. return {};
  489. }
  490. }));
  491. /***/ }),
  492. /***/ 3:
  493. /***/ (function(module, exports) {
  494. module.exports = require("utils-lite");
  495. /***/ }),
  496. /***/ 31:
  497. /***/ (function(module, exports) {
  498. module.exports = require("numerify");
  499. /***/ }),
  500. /***/ 32:
  501. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  502. "use strict";
  503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getFormated; });
  504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getStackMap; });
  505. /* unused harmony export $get */
  506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getMapJSON; });
  507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getBmap; });
  508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getAmap; });
  509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return setArrayValue; });
  510. /* harmony import */ var numerify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
  511. /* harmony import */ var numerify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(numerify__WEBPACK_IMPORTED_MODULE_0__);
  512. /* harmony import */ var utils_lite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
  513. /* harmony import */ var utils_lite__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(utils_lite__WEBPACK_IMPORTED_MODULE_1__);
  514. var getFormated = function getFormated(val, type, digit) {
  515. var defaultVal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
  516. if (isNaN(val)) return defaultVal;
  517. if (!type) return val;
  518. if (Object(utils_lite__WEBPACK_IMPORTED_MODULE_1__["isFunction"])(type)) return type(val, numerify__WEBPACK_IMPORTED_MODULE_0___default.a);
  519. digit = isNaN(digit) ? 0 : ++digit;
  520. var digitStr = '.[' + new Array(digit).join(0) + ']';
  521. var formatter = type;
  522. switch (type) {
  523. case 'KMB':
  524. formatter = digit ? '0,0' + digitStr + 'a' : '0,0a';
  525. break;
  526. case 'normal':
  527. formatter = digit ? '0,0' + digitStr : '0,0';
  528. break;
  529. case 'percent':
  530. formatter = digit ? '0,0' + digitStr + '%' : '0,0.[00]%';
  531. break;
  532. }
  533. return numerify__WEBPACK_IMPORTED_MODULE_0___default()(val, formatter);
  534. };
  535. var getStackMap = function getStackMap(stack) {
  536. var stackMap = {};
  537. Object.keys(stack).forEach(function (item) {
  538. stack[item].forEach(function (name) {
  539. stackMap[name] = item;
  540. });
  541. });
  542. return stackMap;
  543. };
  544. var $get = function $get(url) {
  545. /* eslint-disable */
  546. return new Promise(function (resolve, reject) {
  547. var xhr = new XMLHttpRequest();
  548. xhr.open('GET', url);
  549. xhr.send(null);
  550. xhr.onload = function () {
  551. resolve(JSON.parse(xhr.responseText));
  552. };
  553. xhr.onerror = function () {
  554. reject(JSON.parse(xhr.responseText));
  555. };
  556. });
  557. };
  558. var mapPromise = {};
  559. var getMapJSON = function getMapJSON(_ref) {
  560. var position = _ref.position,
  561. positionJsonLink = _ref.positionJsonLink,
  562. beforeRegisterMapOnce = _ref.beforeRegisterMapOnce,
  563. mapURLProfix = _ref.mapURLProfix;
  564. var link = positionJsonLink || '' + mapURLProfix + position + '.json';
  565. if (!mapPromise[link]) {
  566. mapPromise[link] = $get(link).then(function (res) {
  567. if (beforeRegisterMapOnce) res = beforeRegisterMapOnce(res);
  568. return res;
  569. });
  570. }
  571. return mapPromise[link];
  572. };
  573. var bmapPromise = null;
  574. var amapPromise = null;
  575. var getBmap = function getBmap(key, v) {
  576. if (!bmapPromise) {
  577. bmapPromise = new Promise(function (resolve, reject) {
  578. var callbackName = 'bmap' + Date.now();
  579. window[callbackName] = resolve;
  580. var script = document.createElement('script');
  581. script.src = ['https://api.map.baidu.com/api?v=' + (v || '2.0'), 'ak=' + key, 'callback=' + callbackName].join('&');
  582. document.body.appendChild(script);
  583. });
  584. }
  585. return bmapPromise;
  586. };
  587. var getAmap = function getAmap(key, v) {
  588. if (!amapPromise) {
  589. amapPromise = new Promise(function (resolve, reject) {
  590. var callbackName = 'amap' + Date.now();
  591. window[callbackName] = resolve;
  592. var script = document.createElement('script');
  593. script.src = ['https://webapi.amap.com/maps?v=' + (v || '1.4.3'), 'key=' + key, 'callback=' + callbackName].join('&');
  594. document.body.appendChild(script);
  595. });
  596. }
  597. return amapPromise;
  598. };
  599. function setArrayValue(arr, index, value) {
  600. if (arr[index] !== undefined) {
  601. arr[index].push(value);
  602. } else {
  603. arr[index] = [value];
  604. }
  605. }
  606. /***/ }),
  607. /***/ 39:
  608. /***/ (function(module, exports, __webpack_require__) {
  609. var content = __webpack_require__(57);
  610. if(typeof content === 'string') content = [[module.i, content, '']];
  611. var transform;
  612. var insertInto;
  613. var options = {"hmr":true}
  614. options.transform = transform
  615. options.insertInto = undefined;
  616. var update = __webpack_require__(6)(content, options);
  617. if(content.locals) module.exports = content.locals;
  618. if(false) {}
  619. /***/ }),
  620. /***/ 40:
  621. /***/ (function(module, exports, __webpack_require__) {
  622. var content = __webpack_require__(59);
  623. if(typeof content === 'string') content = [[module.i, content, '']];
  624. var transform;
  625. var insertInto;
  626. var options = {"hmr":true}
  627. options.transform = transform
  628. options.insertInto = undefined;
  629. var update = __webpack_require__(6)(content, options);
  630. if(content.locals) module.exports = content.locals;
  631. if(false) {}
  632. /***/ }),
  633. /***/ 43:
  634. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  635. "use strict";
  636. // EXTERNAL MODULE: external "echarts/lib/echarts"
  637. var echarts_ = __webpack_require__(17);
  638. var echarts_default = /*#__PURE__*/__webpack_require__.n(echarts_);
  639. // EXTERNAL MODULE: external "echarts/lib/component/tooltip"
  640. var tooltip_ = __webpack_require__(54);
  641. // EXTERNAL MODULE: external "echarts/lib/component/legend"
  642. var legend_ = __webpack_require__(55);
  643. // EXTERNAL MODULE: external "numerify"
  644. var external_numerify_ = __webpack_require__(31);
  645. var external_numerify_default = /*#__PURE__*/__webpack_require__.n(external_numerify_);
  646. // EXTERNAL MODULE: external "utils-lite"
  647. var external_utils_lite_ = __webpack_require__(3);
  648. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/utils/charts/components/loading.vue?vue&type=template&id=6d18fb16&
  649. var loadingvue_type_template_id_6d18fb16_render = function() {
  650. var _vm = this
  651. var _h = _vm.$createElement
  652. var _c = _vm._self._c || _h
  653. return _c("div", { staticClass: "v-charts-component-loading" }, [
  654. _c("div", { staticClass: "loader" }, [
  655. _c("div", { staticClass: "loading-spinner" }, [
  656. _c(
  657. "svg",
  658. { staticClass: "circular", attrs: { viewBox: "25 25 50 50" } },
  659. [
  660. _c("circle", {
  661. staticClass: "path",
  662. attrs: { cx: "50", cy: "50", r: "20", fill: "none" }
  663. })
  664. ]
  665. )
  666. ])
  667. ])
  668. ])
  669. }
  670. var staticRenderFns = []
  671. loadingvue_type_template_id_6d18fb16_render._withStripped = true
  672. // CONCATENATED MODULE: ./src/utils/charts/components/loading.vue?vue&type=template&id=6d18fb16&
  673. // EXTERNAL MODULE: ./src/utils/charts/components/loading.vue?vue&type=style&index=0&lang=css&
  674. var loadingvue_type_style_index_0_lang_css_ = __webpack_require__(56);
  675. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  676. var componentNormalizer = __webpack_require__(2);
  677. // CONCATENATED MODULE: ./src/utils/charts/components/loading.vue
  678. var script = {}
  679. /* normalize component */
  680. var component = Object(componentNormalizer["a" /* default */])(
  681. script,
  682. loadingvue_type_template_id_6d18fb16_render,
  683. staticRenderFns,
  684. false,
  685. null,
  686. null,
  687. null
  688. )
  689. /* hot reload */
  690. if (false) { var api; }
  691. component.options.__file = "src/utils/charts/components/loading.vue"
  692. /* harmony default export */ var loading = (component.exports);
  693. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/utils/charts/components/data-empty.vue?vue&type=template&id=1f2f0a80&
  694. var data_emptyvue_type_template_id_1f2f0a80_render = function() {
  695. var _vm = this
  696. var _h = _vm.$createElement
  697. var _c = _vm._self._c || _h
  698. return _c("div", { staticClass: "v-charts-data-empty" }, [
  699. _vm._v("\n 暂无数据\n")
  700. ])
  701. }
  702. var data_emptyvue_type_template_id_1f2f0a80_staticRenderFns = []
  703. data_emptyvue_type_template_id_1f2f0a80_render._withStripped = true
  704. // CONCATENATED MODULE: ./src/utils/charts/components/data-empty.vue?vue&type=template&id=1f2f0a80&
  705. // EXTERNAL MODULE: ./src/utils/charts/components/data-empty.vue?vue&type=style&index=0&lang=css&
  706. var data_emptyvue_type_style_index_0_lang_css_ = __webpack_require__(58);
  707. // CONCATENATED MODULE: ./src/utils/charts/components/data-empty.vue
  708. var data_empty_script = {}
  709. /* normalize component */
  710. var data_empty_component = Object(componentNormalizer["a" /* default */])(
  711. data_empty_script,
  712. data_emptyvue_type_template_id_1f2f0a80_render,
  713. data_emptyvue_type_template_id_1f2f0a80_staticRenderFns,
  714. false,
  715. null,
  716. null,
  717. null
  718. )
  719. /* hot reload */
  720. if (false) { var data_empty_api; }
  721. data_empty_component.options.__file = "src/utils/charts/components/data-empty.vue"
  722. /* harmony default export */ var data_empty = (data_empty_component.exports);
  723. // EXTERNAL MODULE: ./src/utils/charts/constants.js
  724. var constants = __webpack_require__(15);
  725. // CONCATENATED MODULE: ./src/utils/charts/modules/extend.js
  726. /* harmony default export */ var modules_extend = (function (options, extend) {
  727. Object.keys(extend).forEach(function (attr) {
  728. var value = extend[attr];
  729. if (~attr.indexOf('.')) {
  730. // eg: a.b.c a.1.b
  731. Object(external_utils_lite_["set"])(options, attr, value);
  732. } else if (typeof value === 'function') {
  733. // get callback value
  734. options[attr] = value(options[attr]);
  735. } else {
  736. // mixin extend value
  737. if (Object(external_utils_lite_["isArray"])(options[attr]) && Object(external_utils_lite_["isObject"])(options[attr][0])) {
  738. // eg: [{ xx: 1 }, { xx: 2 }]
  739. options[attr].forEach(function (option, index) {
  740. options[attr][index] = Object.assign({}, option, value);
  741. });
  742. } else if (Object(external_utils_lite_["isObject"])(options[attr])) {
  743. // eg: { xx: 1, yy: 2 }
  744. options[attr] = Object.assign({}, options[attr], value);
  745. } else {
  746. options[attr] = value;
  747. }
  748. }
  749. });
  750. });
  751. // CONCATENATED MODULE: ./src/utils/charts/modules/mark.js
  752. /* harmony default export */ var mark = (function (seriesItem, marks) {
  753. Object.keys(marks).forEach(function (key) {
  754. if (marks[key]) seriesItem[key] = marks[key];
  755. });
  756. });
  757. // CONCATENATED MODULE: ./src/utils/charts/modules/animation.js
  758. /* harmony default export */ var animation = (function (options, animation) {
  759. Object.keys(animation).forEach(function (key) {
  760. options[key] = animation[key];
  761. });
  762. });
  763. // CONCATENATED MODULE: ./src/utils/charts/core.js
  764. /* harmony default export */ var core = __webpack_exports__["a"] = ({
  765. render: function render(h) {
  766. return h('div', {
  767. class: [Object(external_utils_lite_["camelToKebab"])(this.$options.name || this.$options._componentTag)],
  768. style: this.canvasStyle
  769. }, [h('div', {
  770. style: this.canvasStyle,
  771. class: { 'v-charts-mask-status': this.dataEmpty || this.loading },
  772. ref: 'canvas'
  773. }), h(data_empty, {
  774. style: { display: this.dataEmpty ? '' : 'none' }
  775. }), h(loading, {
  776. style: { display: this.loading ? '' : 'none' }
  777. }), this.$slots.default]);
  778. },
  779. props: {
  780. data: { type: [Object, Array], default: function _default() {
  781. return {};
  782. }
  783. },
  784. settings: { type: Object, default: function _default() {
  785. return {};
  786. }
  787. },
  788. width: { type: String, default: 'auto' },
  789. height: { type: String, default: '400px' },
  790. beforeConfig: { type: Function },
  791. afterConfig: { type: Function },
  792. afterSetOption: { type: Function },
  793. afterSetOptionOnce: { type: Function },
  794. events: { type: Object },
  795. grid: { type: [Object, Array] },
  796. colors: { type: Array },
  797. tooltipVisible: { type: Boolean, default: true },
  798. legendVisible: { type: Boolean, default: true },
  799. legendPosition: { type: String },
  800. markLine: { type: Object },
  801. markArea: { type: Object },
  802. markPoint: { type: Object },
  803. visualMap: { type: [Object, Array] },
  804. dataZoom: { type: [Object, Array] },
  805. toolbox: { type: [Object, Array] },
  806. initOptions: { type: Object, default: function _default() {
  807. return {};
  808. }
  809. },
  810. title: [Object, Array],
  811. legend: [Object, Array],
  812. xAxis: [Object, Array],
  813. yAxis: [Object, Array],
  814. radar: Object,
  815. tooltip: Object,
  816. axisPointer: [Object, Array],
  817. brush: [Object, Array],
  818. geo: [Object, Array],
  819. timeline: [Object, Array],
  820. graphic: [Object, Array],
  821. series: [Object, Array],
  822. backgroundColor: [Object, String],
  823. textStyle: [Object, Array],
  824. animation: Object,
  825. theme: Object,
  826. themeName: String,
  827. loading: Boolean,
  828. dataEmpty: Boolean,
  829. extend: Object,
  830. judgeWidth: { type: Boolean, default: false },
  831. widthChangeDelay: { type: Number, default: 300 },
  832. tooltipFormatter: { type: Function },
  833. resizeable: { type: Boolean, default: true },
  834. resizeDelay: { type: Number, default: 200 },
  835. changeDelay: { type: Number, default: 0 },
  836. setOptionOpts: { type: [Boolean, Object], default: true },
  837. cancelResizeCheck: Boolean,
  838. notSetUnchange: Array,
  839. log: Boolean
  840. },
  841. watch: {
  842. data: {
  843. deep: true,
  844. handler: function handler(v) {
  845. if (v) {
  846. this.changeHandler();
  847. }
  848. }
  849. },
  850. settings: {
  851. deep: true,
  852. handler: function handler(v) {
  853. if (v.type && this.chartLib) this.chartHandler = this.chartLib[v.type];
  854. this.changeHandler();
  855. }
  856. },
  857. width: 'nextTickResize',
  858. height: 'nextTickResize',
  859. events: {
  860. deep: true,
  861. handler: 'createEventProxy'
  862. },
  863. theme: {
  864. deep: true,
  865. handler: 'themeChange'
  866. },
  867. themeName: 'themeChange',
  868. resizeable: 'resizeableHandler'
  869. },
  870. computed: {
  871. canvasStyle: function canvasStyle() {
  872. return {
  873. width: this.width,
  874. height: this.height,
  875. position: 'relative'
  876. };
  877. },
  878. chartColor: function chartColor() {
  879. return this.colors || this.theme && this.theme.color || constants["a" /* DEFAULT_COLORS */];
  880. }
  881. },
  882. methods: {
  883. dataHandler: function dataHandler() {
  884. if (!this.chartHandler) return;
  885. var data = this.data;
  886. var _data = data,
  887. _data$columns = _data.columns,
  888. columns = _data$columns === undefined ? [] : _data$columns,
  889. _data$rows = _data.rows,
  890. rows = _data$rows === undefined ? [] : _data$rows;
  891. var extra = {
  892. tooltipVisible: this.tooltipVisible,
  893. legendVisible: this.legendVisible,
  894. echarts: this.echarts,
  895. color: this.chartColor,
  896. tooltipFormatter: this.tooltipFormatter,
  897. _once: this._once
  898. };
  899. if (this.beforeConfig) data = this.beforeConfig(data);
  900. var options = this.chartHandler(columns, rows, this.settings, extra);
  901. if (options) {
  902. if (typeof options.then === 'function') {
  903. options.then(this.optionsHandler);
  904. } else {
  905. this.optionsHandler(options);
  906. }
  907. }
  908. },
  909. nextTickResize: function nextTickResize() {
  910. this.$nextTick(this.resize);
  911. },
  912. resize: function resize() {
  913. if (!this.cancelResizeCheck) {
  914. if (this.$el && this.$el.clientWidth && this.$el.clientHeight) {
  915. this.echartsResize();
  916. }
  917. } else {
  918. this.echartsResize();
  919. }
  920. },
  921. echartsResize: function echartsResize() {
  922. this.echarts && this.echarts.resize();
  923. },
  924. optionsHandler: function optionsHandler(options) {
  925. var _this = this;
  926. // legend
  927. if (this.legendPosition && options.legend) {
  928. options.legend[this.legendPosition] = 10;
  929. if (~['left', 'right'].indexOf(this.legendPosition)) {
  930. options.legend.top = 'middle';
  931. options.legend.orient = 'vertical';
  932. }
  933. }
  934. // color
  935. options.color = this.chartColor;
  936. // echarts self settings
  937. constants["c" /* ECHARTS_SETTINGS */].forEach(function (setting) {
  938. if (_this[setting]) options[setting] = _this[setting];
  939. });
  940. // animation
  941. if (this.animation) animation(options, this.animation);
  942. // marks
  943. if (this.markArea || this.markLine || this.markPoint) {
  944. var marks = {
  945. markArea: this.markArea,
  946. markLine: this.markLine,
  947. markPoint: this.markPoint
  948. };
  949. var series = options.series;
  950. if (Object(external_utils_lite_["isArray"])(series)) {
  951. series.forEach(function (item) {
  952. mark(item, marks);
  953. });
  954. } else if (Object(external_utils_lite_["isObject"])(series)) {
  955. mark(series, marks);
  956. }
  957. }
  958. // change inited echarts settings
  959. if (this.extend) modules_extend(options, this.extend);
  960. if (this.afterConfig) options = this.afterConfig(options);
  961. var setOptionOpts = this.setOptionOpts;
  962. // map chart not merge
  963. if ((this.settings.bmap || this.settings.amap) && !Object(external_utils_lite_["isObject"])(setOptionOpts)) {
  964. setOptionOpts = false;
  965. }
  966. // exclude unchange options
  967. if (this.notSetUnchange && this.notSetUnchange.length) {
  968. this.notSetUnchange.forEach(function (item) {
  969. var value = options[item];
  970. if (value) {
  971. if (Object(external_utils_lite_["isEqual"])(value, _this._store[item])) {
  972. options[item] = undefined;
  973. } else {
  974. _this._store[item] = Object(external_utils_lite_["cloneDeep"])(value);
  975. }
  976. }
  977. });
  978. if (Object(external_utils_lite_["isObject"])(setOptionOpts)) {
  979. setOptionOpts.notMerge = false;
  980. } else {
  981. setOptionOpts = false;
  982. }
  983. }
  984. if (this._isDestroyed) return;
  985. if (this.log) console.log(options);
  986. console.log('options------->', options);
  987. console.log('setOptions----->', setOptionOpts);
  988. // 设置一些基本参数
  989. options.legend.textStyle = {
  990. color: '#FFF'
  991. };
  992. this.echarts.setOption(options, setOptionOpts);
  993. this.$emit('ready', this.echarts, options, echarts_default.a);
  994. if (!this._once['ready-once']) {
  995. this._once['ready-once'] = true;
  996. this.$emit('ready-once', this.echarts, options, echarts_default.a);
  997. }
  998. if (this.judgeWidth) this.judgeWidthHandler(options);
  999. if (this.afterSetOption) this.afterSetOption(this.echarts, options, echarts_default.a);
  1000. if (this.afterSetOptionOnce && !this._once['afterSetOptionOnce']) {
  1001. this._once['afterSetOptionOnce'] = true;
  1002. this.afterSetOptionOnce(this.echarts, options, echarts_default.a);
  1003. }
  1004. },
  1005. judgeWidthHandler: function judgeWidthHandler(options) {
  1006. var _this2 = this;
  1007. var widthChangeDelay = this.widthChangeDelay,
  1008. resize = this.resize;
  1009. if (this.$el.clientWidth || this.$el.clientHeight) {
  1010. resize();
  1011. } else {
  1012. this.$nextTick(function (_) {
  1013. if (_this2.$el.clientWidth || _this2.$el.clientHeight) {
  1014. resize();
  1015. } else {
  1016. setTimeout(function (_) {
  1017. resize();
  1018. if (!_this2.$el.clientWidth || !_this2.$el.clientHeight) {
  1019. console.warn(' Can\'t get dom width or height ');
  1020. }
  1021. }, widthChangeDelay);
  1022. }
  1023. });
  1024. }
  1025. },
  1026. resizeableHandler: function resizeableHandler(resizeable) {
  1027. if (resizeable && !this._once.onresize) this.addResizeListener();
  1028. if (!resizeable && this._once.onresize) this.removeResizeListener();
  1029. },
  1030. init: function init() {
  1031. if (this.echarts) return;
  1032. var themeName = this.themeName || this.theme || constants["b" /* DEFAULT_THEME */];
  1033. this.echarts = echarts_default.a.init(this.$refs.canvas, themeName, this.initOptions);
  1034. if (this.data) this.changeHandler();
  1035. this.createEventProxy();
  1036. if (this.resizeable) this.addResizeListener();
  1037. },
  1038. addResizeListener: function addResizeListener() {
  1039. window.addEventListener('resize', this.resizeHandler);
  1040. this._once.onresize = true;
  1041. },
  1042. removeResizeListener: function removeResizeListener() {
  1043. window.removeEventListener('resize', this.resizeHandler);
  1044. this._once.onresize = false;
  1045. },
  1046. addWatchToProps: function addWatchToProps() {
  1047. var _this3 = this;
  1048. var watchedVariable = this._watchers.map(function (watcher) {
  1049. return watcher.expression;
  1050. });
  1051. Object.keys(this.$props).forEach(function (prop) {
  1052. if (!~watchedVariable.indexOf(prop) && !~constants["f" /* STATIC_PROPS */].indexOf(prop)) {
  1053. var opts = {};
  1054. if (~['[object Object]', '[object Array]'].indexOf(Object(external_utils_lite_["getType"])(_this3.$props[prop]))) {
  1055. opts.deep = true;
  1056. }
  1057. _this3.$watch(prop, function () {
  1058. _this3.changeHandler();
  1059. }, opts);
  1060. }
  1061. });
  1062. },
  1063. createEventProxy: function createEventProxy() {
  1064. var _this4 = this;
  1065. // 只要用户使用 on 方法绑定的事件都做一层代理,
  1066. // 是否真正执行相应的事件方法取决于该方法是否仍然存在 events 中
  1067. // 实现 events 的动态响应
  1068. var self = this;
  1069. var keys = Object.keys(this.events || {});
  1070. keys.length && keys.forEach(function (ev) {
  1071. if (_this4.registeredEvents.indexOf(ev) === -1) {
  1072. _this4.registeredEvents.push(ev);
  1073. _this4.echarts.on(ev, function (ev) {
  1074. return function () {
  1075. if (ev in self.events) {
  1076. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  1077. args[_key] = arguments[_key];
  1078. }
  1079. self.events[ev].apply(null, args);
  1080. }
  1081. };
  1082. }(ev));
  1083. }
  1084. });
  1085. },
  1086. themeChange: function themeChange(theme) {
  1087. this.clean();
  1088. this.echarts = null;
  1089. this.init();
  1090. },
  1091. clean: function clean() {
  1092. if (this.resizeable) this.removeResizeListener();
  1093. this.echarts.dispose();
  1094. }
  1095. },
  1096. created: function created() {
  1097. this.echarts = null;
  1098. this.registeredEvents = [];
  1099. this._once = {};
  1100. this._store = {};
  1101. this.resizeHandler = Object(external_utils_lite_["debounce"])(this.resize, this.resizeDelay);
  1102. this.changeHandler = Object(external_utils_lite_["debounce"])(this.dataHandler, this.changeDelay);
  1103. this.addWatchToProps();
  1104. },
  1105. mounted: function mounted() {
  1106. this.init();
  1107. },
  1108. beforeDestroy: function beforeDestroy() {
  1109. this.clean();
  1110. },
  1111. _numerify: external_numerify_default.a
  1112. });
  1113. /***/ }),
  1114. /***/ 5:
  1115. /***/ (function(module, exports, __webpack_require__) {
  1116. "use strict";
  1117. /*
  1118. MIT License http://www.opensource.org/licenses/mit-license.php
  1119. Author Tobias Koppers @sokra
  1120. */
  1121. // css base code, injected by the css-loader
  1122. module.exports = function (useSourceMap) {
  1123. var list = []; // return the list of modules as css string
  1124. list.toString = function toString() {
  1125. return this.map(function (item) {
  1126. var content = cssWithMappingToString(item, useSourceMap);
  1127. if (item[2]) {
  1128. return '@media ' + item[2] + '{' + content + '}';
  1129. } else {
  1130. return content;
  1131. }
  1132. }).join('');
  1133. }; // import a list of modules into the list
  1134. list.i = function (modules, mediaQuery) {
  1135. if (typeof modules === 'string') {
  1136. modules = [[null, modules, '']];
  1137. }
  1138. var alreadyImportedModules = {};
  1139. for (var i = 0; i < this.length; i++) {
  1140. var id = this[i][0];
  1141. if (id != null) {
  1142. alreadyImportedModules[id] = true;
  1143. }
  1144. }
  1145. for (i = 0; i < modules.length; i++) {
  1146. var item = modules[i]; // skip already imported module
  1147. // this implementation is not 100% perfect for weird media query combinations
  1148. // when a module is imported multiple times with different media queries.
  1149. // I hope this will never occur (Hey this way we have smaller bundles)
  1150. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1151. if (mediaQuery && !item[2]) {
  1152. item[2] = mediaQuery;
  1153. } else if (mediaQuery) {
  1154. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1155. }
  1156. list.push(item);
  1157. }
  1158. }
  1159. };
  1160. return list;
  1161. };
  1162. function cssWithMappingToString(item, useSourceMap) {
  1163. var content = item[1] || '';
  1164. var cssMapping = item[3];
  1165. if (!cssMapping) {
  1166. return content;
  1167. }
  1168. if (useSourceMap && typeof btoa === 'function') {
  1169. var sourceMapping = toComment(cssMapping);
  1170. var sourceURLs = cssMapping.sources.map(function (source) {
  1171. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1172. });
  1173. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1174. }
  1175. return [content].join('\n');
  1176. } // Adapted from convert-source-map (MIT)
  1177. function toComment(sourceMap) {
  1178. // eslint-disable-next-line no-undef
  1179. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1180. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1181. return '/*# ' + data + ' */';
  1182. }
  1183. /***/ }),
  1184. /***/ 54:
  1185. /***/ (function(module, exports) {
  1186. module.exports = require("echarts/lib/component/tooltip");
  1187. /***/ }),
  1188. /***/ 55:
  1189. /***/ (function(module, exports) {
  1190. module.exports = require("echarts/lib/component/legend");
  1191. /***/ }),
  1192. /***/ 56:
  1193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1194. "use strict";
  1195. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_loading_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39);
  1196. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_loading_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_loading_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  1197. /* unused harmony reexport * */
  1198. /***/ }),
  1199. /***/ 57:
  1200. /***/ (function(module, exports, __webpack_require__) {
  1201. exports = module.exports = __webpack_require__(5)(false);
  1202. // Module
  1203. exports.push([module.i, "\n.v-charts-component-loading {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(255, 255, 255, .9);\n}\n.v-charts-mask-status {\n filter: blur(1px);\n}\n.v-charts-component-loading .circular {\n width: 42px;\n height: 42px;\n animation: loading-rotate 2s linear infinite;\n}\n.v-charts-component-loading .path {\n animation: loading-dash 1.5s ease-in-out infinite;\n stroke-dasharray: 90,150;\n stroke-dashoffset: 0;\n stroke-width: 2;\n stroke: #20a0ff;\n stroke-linecap: round;\n}\n@keyframes loading-rotate {\n100% {\n transform: rotate(360deg);\n}\n}\n@keyframes loading-dash {\n0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n}\n50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n}\n100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n}\n}\n", ""]);
  1204. /***/ }),
  1205. /***/ 58:
  1206. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1207. "use strict";
  1208. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_data_empty_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
  1209. /* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_data_empty_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_data_empty_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  1210. /* unused harmony reexport * */
  1211. /***/ }),
  1212. /***/ 59:
  1213. /***/ (function(module, exports, __webpack_require__) {
  1214. exports = module.exports = __webpack_require__(5)(false);
  1215. // Module
  1216. exports.push([module.i, "\n.v-charts-data-empty {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(255, 255, 255, .9);\n color: #888;\n font-size: 14px;\n}\n", ""]);
  1217. /***/ }),
  1218. /***/ 6:
  1219. /***/ (function(module, exports, __webpack_require__) {
  1220. /*
  1221. MIT License http://www.opensource.org/licenses/mit-license.php
  1222. Author Tobias Koppers @sokra
  1223. */
  1224. var stylesInDom = {};
  1225. var memoize = function (fn) {
  1226. var memo;
  1227. return function () {
  1228. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1229. return memo;
  1230. };
  1231. };
  1232. var isOldIE = memoize(function () {
  1233. // Test for IE <= 9 as proposed by Browserhacks
  1234. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1235. // Tests for existence of standard globals is to allow style-loader
  1236. // to operate correctly into non-standard environments
  1237. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1238. return window && document && document.all && !window.atob;
  1239. });
  1240. var getTarget = function (target, parent) {
  1241. if (parent){
  1242. return parent.querySelector(target);
  1243. }
  1244. return document.querySelector(target);
  1245. };
  1246. var getElement = (function (fn) {
  1247. var memo = {};
  1248. return function(target, parent) {
  1249. // If passing function in options, then use it for resolve "head" element.
  1250. // Useful for Shadow Root style i.e
  1251. // {
  1252. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1253. // }
  1254. if (typeof target === 'function') {
  1255. return target();
  1256. }
  1257. if (typeof memo[target] === "undefined") {
  1258. var styleTarget = getTarget.call(this, target, parent);
  1259. // Special case to return head of iframe instead of iframe itself
  1260. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1261. try {
  1262. // This will throw an exception if access to iframe is blocked
  1263. // due to cross-origin restrictions
  1264. styleTarget = styleTarget.contentDocument.head;
  1265. } catch(e) {
  1266. styleTarget = null;
  1267. }
  1268. }
  1269. memo[target] = styleTarget;
  1270. }
  1271. return memo[target]
  1272. };
  1273. })();
  1274. var singleton = null;
  1275. var singletonCounter = 0;
  1276. var stylesInsertedAtTop = [];
  1277. var fixUrls = __webpack_require__(12);
  1278. module.exports = function(list, options) {
  1279. if (typeof DEBUG !== "undefined" && DEBUG) {
  1280. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1281. }
  1282. options = options || {};
  1283. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1284. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1285. // tags it will allow on a page
  1286. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1287. // By default, add <style> tags to the <head> element
  1288. if (!options.insertInto) options.insertInto = "head";
  1289. // By default, add <style> tags to the bottom of the target
  1290. if (!options.insertAt) options.insertAt = "bottom";
  1291. var styles = listToStyles(list, options);
  1292. addStylesToDom(styles, options);
  1293. return function update (newList) {
  1294. var mayRemove = [];
  1295. for (var i = 0; i < styles.length; i++) {
  1296. var item = styles[i];
  1297. var domStyle = stylesInDom[item.id];
  1298. domStyle.refs--;
  1299. mayRemove.push(domStyle);
  1300. }
  1301. if(newList) {
  1302. var newStyles = listToStyles(newList, options);
  1303. addStylesToDom(newStyles, options);
  1304. }
  1305. for (var i = 0; i < mayRemove.length; i++) {
  1306. var domStyle = mayRemove[i];
  1307. if(domStyle.refs === 0) {
  1308. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1309. delete stylesInDom[domStyle.id];
  1310. }
  1311. }
  1312. };
  1313. };
  1314. function addStylesToDom (styles, options) {
  1315. for (var i = 0; i < styles.length; i++) {
  1316. var item = styles[i];
  1317. var domStyle = stylesInDom[item.id];
  1318. if(domStyle) {
  1319. domStyle.refs++;
  1320. for(var j = 0; j < domStyle.parts.length; j++) {
  1321. domStyle.parts[j](item.parts[j]);
  1322. }
  1323. for(; j < item.parts.length; j++) {
  1324. domStyle.parts.push(addStyle(item.parts[j], options));
  1325. }
  1326. } else {
  1327. var parts = [];
  1328. for(var j = 0; j < item.parts.length; j++) {
  1329. parts.push(addStyle(item.parts[j], options));
  1330. }
  1331. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1332. }
  1333. }
  1334. }
  1335. function listToStyles (list, options) {
  1336. var styles = [];
  1337. var newStyles = {};
  1338. for (var i = 0; i < list.length; i++) {
  1339. var item = list[i];
  1340. var id = options.base ? item[0] + options.base : item[0];
  1341. var css = item[1];
  1342. var media = item[2];
  1343. var sourceMap = item[3];
  1344. var part = {css: css, media: media, sourceMap: sourceMap};
  1345. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1346. else newStyles[id].parts.push(part);
  1347. }
  1348. return styles;
  1349. }
  1350. function insertStyleElement (options, style) {
  1351. var target = getElement(options.insertInto)
  1352. if (!target) {
  1353. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1354. }
  1355. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1356. if (options.insertAt === "top") {
  1357. if (!lastStyleElementInsertedAtTop) {
  1358. target.insertBefore(style, target.firstChild);
  1359. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1360. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1361. } else {
  1362. target.appendChild(style);
  1363. }
  1364. stylesInsertedAtTop.push(style);
  1365. } else if (options.insertAt === "bottom") {
  1366. target.appendChild(style);
  1367. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1368. var nextSibling = getElement(options.insertAt.before, target);
  1369. target.insertBefore(style, nextSibling);
  1370. } else {
  1371. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  1372. }
  1373. }
  1374. function removeStyleElement (style) {
  1375. if (style.parentNode === null) return false;
  1376. style.parentNode.removeChild(style);
  1377. var idx = stylesInsertedAtTop.indexOf(style);
  1378. if(idx >= 0) {
  1379. stylesInsertedAtTop.splice(idx, 1);
  1380. }
  1381. }
  1382. function createStyleElement (options) {
  1383. var style = document.createElement("style");
  1384. if(options.attrs.type === undefined) {
  1385. options.attrs.type = "text/css";
  1386. }
  1387. if(options.attrs.nonce === undefined) {
  1388. var nonce = getNonce();
  1389. if (nonce) {
  1390. options.attrs.nonce = nonce;
  1391. }
  1392. }
  1393. addAttrs(style, options.attrs);
  1394. insertStyleElement(options, style);
  1395. return style;
  1396. }
  1397. function createLinkElement (options) {
  1398. var link = document.createElement("link");
  1399. if(options.attrs.type === undefined) {
  1400. options.attrs.type = "text/css";
  1401. }
  1402. options.attrs.rel = "stylesheet";
  1403. addAttrs(link, options.attrs);
  1404. insertStyleElement(options, link);
  1405. return link;
  1406. }
  1407. function addAttrs (el, attrs) {
  1408. Object.keys(attrs).forEach(function (key) {
  1409. el.setAttribute(key, attrs[key]);
  1410. });
  1411. }
  1412. function getNonce() {
  1413. if (false) {}
  1414. return __webpack_require__.nc;
  1415. }
  1416. function addStyle (obj, options) {
  1417. var style, update, remove, result;
  1418. // If a transform function was defined, run it on the css
  1419. if (options.transform && obj.css) {
  1420. result = typeof options.transform === 'function'
  1421. ? options.transform(obj.css)
  1422. : options.transform.default(obj.css);
  1423. if (result) {
  1424. // If transform returns a value, use that instead of the original css.
  1425. // This allows running runtime transformations on the css.
  1426. obj.css = result;
  1427. } else {
  1428. // If the transform function returns a falsy value, don't add this css.
  1429. // This allows conditional loading of css
  1430. return function() {
  1431. // noop
  1432. };
  1433. }
  1434. }
  1435. if (options.singleton) {
  1436. var styleIndex = singletonCounter++;
  1437. style = singleton || (singleton = createStyleElement(options));
  1438. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1439. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1440. } else if (
  1441. obj.sourceMap &&
  1442. typeof URL === "function" &&
  1443. typeof URL.createObjectURL === "function" &&
  1444. typeof URL.revokeObjectURL === "function" &&
  1445. typeof Blob === "function" &&
  1446. typeof btoa === "function"
  1447. ) {
  1448. style = createLinkElement(options);
  1449. update = updateLink.bind(null, style, options);
  1450. remove = function () {
  1451. removeStyleElement(style);
  1452. if(style.href) URL.revokeObjectURL(style.href);
  1453. };
  1454. } else {
  1455. style = createStyleElement(options);
  1456. update = applyToTag.bind(null, style);
  1457. remove = function () {
  1458. removeStyleElement(style);
  1459. };
  1460. }
  1461. update(obj);
  1462. return function updateStyle (newObj) {
  1463. if (newObj) {
  1464. if (
  1465. newObj.css === obj.css &&
  1466. newObj.media === obj.media &&
  1467. newObj.sourceMap === obj.sourceMap
  1468. ) {
  1469. return;
  1470. }
  1471. update(obj = newObj);
  1472. } else {
  1473. remove();
  1474. }
  1475. };
  1476. }
  1477. var replaceText = (function () {
  1478. var textStore = [];
  1479. return function (index, replacement) {
  1480. textStore[index] = replacement;
  1481. return textStore.filter(Boolean).join('\n');
  1482. };
  1483. })();
  1484. function applyToSingletonTag (style, index, remove, obj) {
  1485. var css = remove ? "" : obj.css;
  1486. if (style.styleSheet) {
  1487. style.styleSheet.cssText = replaceText(index, css);
  1488. } else {
  1489. var cssNode = document.createTextNode(css);
  1490. var childNodes = style.childNodes;
  1491. if (childNodes[index]) style.removeChild(childNodes[index]);
  1492. if (childNodes.length) {
  1493. style.insertBefore(cssNode, childNodes[index]);
  1494. } else {
  1495. style.appendChild(cssNode);
  1496. }
  1497. }
  1498. }
  1499. function applyToTag (style, obj) {
  1500. var css = obj.css;
  1501. var media = obj.media;
  1502. if(media) {
  1503. style.setAttribute("media", media)
  1504. }
  1505. if(style.styleSheet) {
  1506. style.styleSheet.cssText = css;
  1507. } else {
  1508. while(style.firstChild) {
  1509. style.removeChild(style.firstChild);
  1510. }
  1511. style.appendChild(document.createTextNode(css));
  1512. }
  1513. }
  1514. function updateLink (link, options, obj) {
  1515. var css = obj.css;
  1516. var sourceMap = obj.sourceMap;
  1517. /*
  1518. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1519. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1520. on by default. Otherwise default to the convertToAbsoluteUrls option
  1521. directly
  1522. */
  1523. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1524. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1525. css = fixUrls(css);
  1526. }
  1527. if (sourceMap) {
  1528. // http://stackoverflow.com/a/26603875
  1529. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1530. }
  1531. var blob = new Blob([css], { type: "text/css" });
  1532. var oldSrc = link.href;
  1533. link.href = URL.createObjectURL(blob);
  1534. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1535. }
  1536. /***/ })
  1537. /******/ });